Just clone this repository into $HOME/dotfiles. Then create the following .vimrc in $HOME:
" `~/.vimrc' that source all dependencies in `~/dotfiles/vim-config'.
" set runtime path
set runtimepath+=~/dotfiles/vim-config
" load pathogen first to enable plugins
try
source ~/dotfiles/vim-config/infect.vim
catch
endtry
" load vim configs (main config file)
try
source ~/dotfiles/vim-config/configs.vim
catch
endtryThere are three to things to consider:
-
There might be absolute file paths in
vim-config/configs.vimthat I have overlooked and that need to be fixed. A pull request would be awesome because then I could fix the issue permanently in this repository. -
Some plugins need to be compiled from source and/or have dependencies that need to be installed for the plugin to function properly (especially
YouCompleteMeandracer, everything else should work without any problems). See the respective documentation of any plugin that does not work for installation instructions. It is likely that you have to delete the respective plugin invim-config/plugins/and re-install it from scratch. -
Linting with
alerequires the respective linters to be installed. Some documentation is provided in thealesection inconfigs.vim.
To add additional syntax files, create ~/.vim/syntax/ and ~/.vim/ftdetect/ if these directories don't exist. Syntax files go into the first directory, a one-line file in the second directory ensures that the filetype is detected correctly. An Oberon example:
cp ~/dotfiles/vim_config/syntax/oberon.vim ~/.vim/syntax/oberon.vim
cp ~/dotfiles/vim_config/syntax/ft.vim ~/.vim/ftdetect/oberon.vimInstall in $HOME/dotfiles/ and modify $HOME/.bashrc as follows:
# source .bashrc from $HOME/dotfiles
source $HOME/dotfiles/.bashrcMake sure you have tmux version >=2.9 installed (i.e. the first version that uses the new configuration file syntax). Then, put the config file in $HOME/dotfiles/ and modify $HOME/.tmux.conf as follows:
# source config file
source-file ~/dotfiles/.tmux.confPut the following line in your .xinitrc:
xrdb ~/dotfiles/.XresourcesA bash alias exists, too. $xup will load changes in .Xresources without restarting the xserver.