commit ce56db4cf447dc3938585e81c6582fed2a48d727 Author: Thomas Gideon Date: Fri Mar 20 13:16:03 2015 -0400 Break up vimrc into files for specific purposes. Add some logic to work with a local, non-version controlled rc file whose only job is to configure where the local git repo is and source in those separate files without killing the current working directory from which vim was launched, in case there is a project specific .vimrc as well. diff --git a/gvimrc b/gvimrc new file mode 100644 index 0000000..a7f0a7b --- /dev/null +++ b/gvimrc @@ -0,0 +1,4 @@ +set guifont=Monaco:h14 +set lines=60 +set columns=200 +colorscheme desert diff --git a/java.vim b/java.vim new file mode 100644 index 0000000..9931bb3 --- /dev/null +++ b/java.vim @@ -0,0 +1,9 @@ +let g:JavaImpDataDir = $HOME . "/.vim/JavaImp" + +" F7 to call clean redundant Java imports and sort them +function JavaImpClean() + %!~/bin/clean_imports.sh % + :JavaImpSort +endfunction +:command JavaImpClean exec JavaImpClean() +:nnoremap :JavaImpClean diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..a7fb60a --- /dev/null +++ b/vimrc @@ -0,0 +1,31 @@ +" set the directory where my vimrc git project is located +source ~/.vimrc_local + +" source aux files also under git control +let oldwd = getcwd() +exec "cd " . vimrc_git +source vundle.vim +source java.vim +exec "cd " . oldwd + +filetype plugin indent on +syntax on + +set exrc +set secure +set incsearch +set wildmode=longest:full +set wildmenu +set nocp +set lbr +set sbr=+ +set laststatus=2 +set stl=%-0.100f\ %r\ %m%=line\ %l\ of\ %L\ --%p%%--\ +set fde=1 +set fdm=syntax +set backspace=start,indent,eol +set textwidth=80 +set anti enc=utf-8 +set listchars+=nbsp:¬ + +color desert diff --git a/vundle.vim b/vundle.vim new file mode 100644 index 0000000..88e4368 --- /dev/null +++ b/vundle.vim @@ -0,0 +1,20 @@ +set nocompatible " be iMproved, required +filetype off " required + +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +" alternatively, pass a path where Vundle should install plugins +"call vundle#begin('~/some/path/here') + +" let Vundle manage Vundle, required +Plugin 'gmarik/Vundle.vim' +Plugin 'rustushki/JavaImp.vim' +Plugin 'Tagbar' +Plugin 'vim-misc' +Plugin 'easytags.vim' +Plugin 'editorconfig-vim' + + +" All of your Plugins must be added before the following line +call vundle#end() " required