From 8c09866610e3d2d4fb365f32205876b40fe866b7 Mon Sep 17 00:00:00 2001 From: "Gerardo J. Puerta" Date: Tue, 6 Sep 2022 16:37:44 -0500 Subject: [PATCH] Adding some vim tweaking --- install.sh | 1 + vim/vimrc | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) 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 + +