These are the current Vim settings I'm using.
If you're lazy and want to use what I'm using, feel free to. For anyone else, I would actually recommend configuring your own Vim from scratch or from some minimal template online.
- Clone this repository:
git clone https://github.com/EvanQuan/.vim ~/.vim
- Run
pull.sh
:
cd ~/.vim
bash pull.sh
Hooray, that's it!
Or you can do it all manually:
- Update the submodules:
cd ~/.vim
git submodule update --init --remote --recursive
- For Vim versions 7.4 (or late versions of 7.3) onwards, Vim automatically detects
~/.vim/vimrc
as a secondary vimrc so nothing needs to be done. For earlier versions of Vim, create a dummy~/.vimrc
file in your home directory that links to~/.vim/vimrc
:
echo "source ~/.vim/vimrc" > ~/.vimrc
- If you are on Windows and are using gVim, clone for corresponding
vimfiles
and_vimrc
:
git clone https://github.com/EvanQuan/.vim ~/vimfiles
echo "source ~/vimfiles/vimrc" > ~/_vimrc
cd ~/vimfiles
git submodule update --init --remote --recursive
-
(Optional) Install powerline and powerline fonts here.
-
If for some reason your terminal does not support italics, try this:
echo "xterm-256color|xterm with 256 colors and italic,
sitm=\E[3m, ritm=\E[23m,
use=xterm-256color," >> xterm-256color.terminfo.txt
tic -o ~/.terminfo xterm-256color.terminfo.txt
The vimrc
file requires an external settings.vim
file in order to
work properly. Consider changing the values in settings.vim
if there are
problems with how the color scheme or lightline is rendering.
Create a settings.vim
file into your ~/.vim
directory by copying the template.
cp ~/.vim/version/templates/settings.vim ~/.vim/settings.vim
It will NOT be tracked by git, allowing its settings to be specific to each machine:
To update everthing, run pull.sh
. If there is a new version of settings.vim
your local copy will be replaced with a template of the newer version.
Otherwise, your local settings will be maintained.
cd ~/.vim
bash pull.sh
Alternatively, you can manually update stuff yourself.
cd ~/.vim
git pull origin master
git submodule update --init --remote --recursive
cp ~/.vim/template_settings.vim ~/.vim/settings.vim
- ale
- arm-syntax-vim
- auto-pairs
- ctrlp.vim
- haskell-vim
- html5.vim
- indentLine
- jedi-vim
- lightline-buffer
- lightline.vim
- nerdcommenter
- nerdtree
- nerdtree-git-plugin
- powerline
- quick-scope
- tabular
- syntastic
- vim-closetag
- vim-fugitive
- vim-gitbranch
- vim-gitgutter
- vim-javacomplete2
- vim-mkdir
- vim-multiple-cursors
- vim-prolog
- vim-repeat
- vim-sensible
- vim-surround
- vim-togglecursor
- vim-workspace