diff options
author | Adrian Kummerlaender | 2017-05-18 22:07:54 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2017-05-18 22:13:47 +0200 |
commit | e9ac2dcfc39970c2cab9bb35e8c4f95404a00605 (patch) | |
tree | f6ec0d155573e39730477242e78648a5c39ac75b /vim | |
parent | 8cbd4237a72c4a35cce9189e84ef8090bd486b22 (diff) | |
download | dotfiles-e9ac2dcfc39970c2cab9bb35e8c4f95404a00605.tar dotfiles-e9ac2dcfc39970c2cab9bb35e8c4f95404a00605.tar.gz dotfiles-e9ac2dcfc39970c2cab9bb35e8c4f95404a00605.tar.bz2 dotfiles-e9ac2dcfc39970c2cab9bb35e8c4f95404a00605.tar.lz dotfiles-e9ac2dcfc39970c2cab9bb35e8c4f95404a00605.tar.xz dotfiles-e9ac2dcfc39970c2cab9bb35e8c4f95404a00605.tar.zst dotfiles-e9ac2dcfc39970c2cab9bb35e8c4f95404a00605.zip |
Add support for folder specific vim configuration
e.g. enabling different whitespace settings depending on the project
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vimrc | 34 |
1 files changed, 19 insertions, 15 deletions
@@ -1,20 +1,22 @@ call plug#begin('~/.vim/plugins') -Plug 'ctrlpvim/ctrlp.vim' " fuzzy file, ctag search -Plug 'scrooloose/nerdtree' " nicer file browser with sidebar support -Plug 'simnalamburt/vim-mundo' " visualize undo tree -Plug 'vim-airline/vim-airline' " better status bar -Plug 'vim-airline/vim-airline-themes' " airline themes -Plug 'tpope/vim-unimpaired' " bracket mappings -Plug 'airblade/vim-gitgutter' " display git diffs alongside line numbers -Plug 'qpkorr/vim-renamer' " file renaming utility -Plug 'vim-pandoc/vim-pandoc' " `pandoc` integration -Plug 'vim-pandoc/vim-pandoc-syntax' " `pandoc` syntax module -Plug 'junegunn/goyo.vim' " distraction free writing mode -Plug 'elmanuelito/vim-matlab-behave' " add basic matlab support -Plug 'vim-latex/vim-latex' " latex integration, main usecase for me is the concealment of math expressions -Plug 'Chiel92/vim-autoformat' " autoformatting integration -Plug 'majutsushi/tagbar' " display ctag tree in sidebar +Plug 'ctrlpvim/ctrlp.vim' " fuzzy file, ctag search +Plug 'scrooloose/nerdtree' " nicer file browser with sidebar support +Plug 'simnalamburt/vim-mundo' " visualize undo tree +Plug 'vim-airline/vim-airline' " better status bar +Plug 'vim-airline/vim-airline-themes' " airline themes +Plug 'tpope/vim-unimpaired' " bracket mappings +Plug 'airblade/vim-gitgutter' " display git diffs alongside line numbers +Plug 'qpkorr/vim-renamer' " file renaming utility +Plug 'vim-pandoc/vim-pandoc' " `pandoc` integration +Plug 'vim-pandoc/vim-pandoc-syntax' " `pandoc` syntax module +Plug 'junegunn/goyo.vim' " distraction free writing mode +Plug 'elmanuelito/vim-matlab-behave' " add basic matlab support +Plug 'vim-latex/vim-latex' " latex integration, main usecase for me is the concealment of math expressions +Plug 'Chiel92/vim-autoformat' " autoformatting integration +Plug 'majutsushi/tagbar' " display ctag tree in sidebar +Plug 'godlygeek/tabular' " text alignment helper +Plug 'MarcWeber/vim-addon-local-vimrc' " folder specific vim configuration call plug#end() @@ -32,6 +34,7 @@ set mouse=a set t_Co=256 set background=dark set shell=/bin/sh +set sessionoptions-=options colorscheme jellybeans @@ -68,6 +71,7 @@ autocmd InsertLeave * :setlocal hlsearch " redraw wiki instance when managed via e.g. _i3wm scratch buffer_ autocmd FocusGained *.wiki :redraw! autocmd BufRead,BufNewFile *.wiki set filetype=pandoc +autocmd BufReadPre,FileReadPre * :SourceLocalVimrc autocmd FileType scheme setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType lisp setlocal shiftwidth=2 tabstop=2 expandtab |