diff --git a/install.sh b/install.sh index 8ea156f..71bc13a 100755 --- a/install.sh +++ b/install.sh @@ -78,6 +78,7 @@ then echo "Installing vim configuration ..." rm -rf ~/.vimrc mkdir -p ~/.vim/bundle + mkdir -p ~/.vimundo if [[ ! -d ~/.vim/bundle/Vundle.vim ]] then git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim diff --git a/vim/vimrc b/vim/vimrc index 02d0010..9317ffa 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -19,7 +19,7 @@ Plugin 'jnurmine/Zenburn' Plugin 'altercation/vim-colors-solarized' Plugin 'kien/ctrlp.vim' Plugin 'tpope/vim-fugitive' - +Plugin 'itchyny/lightline.vim' " add all your plugins here (note older versions of Vundle " used Bundle instead of Plugin) @@ -97,3 +97,18 @@ call togglebg#map("") " Line numbers set nu + +" Needed for lightline +set laststatus=2 + +" Draw a margin in the 81th column +set colorcolumn=81 + +" Use vim settings rather than vi settings +set nocompatible + +" Persistent undo +set undodir=~/.vimundo +set undofile + +