aboutsummaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-06-17 19:12:14 +0200
committerAdrian Kummerlaender2017-06-17 19:12:14 +0200
commit56b97fb8259dc4d8bd84157ef053f08f8c85604e (patch)
tree07619677f6bf97d26d0528d8625d59e960123f4a /vim/.vimrc
parent9ce9647ec9e5ffc93cedc4d85720cd37f31b0c27 (diff)
downloaddotfiles-56b97fb8259dc4d8bd84157ef053f08f8c85604e.tar
dotfiles-56b97fb8259dc4d8bd84157ef053f08f8c85604e.tar.gz
dotfiles-56b97fb8259dc4d8bd84157ef053f08f8c85604e.tar.bz2
dotfiles-56b97fb8259dc4d8bd84157ef053f08f8c85604e.tar.xz
dotfiles-56b97fb8259dc4d8bd84157ef053f08f8c85604e.zip
Add C++ highlighting plugin to Vim
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc39
1 files changed, 20 insertions, 19 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 818ffd2..09da609 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -1,23 +1,24 @@
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 'godlygeek/tabular' " text alignment helper
-Plug 'MarcWeber/vim-addon-local-vimrc' " folder specific vim configuration
-Plug 'nathanaelkane/vim-indent-guides' " pretty indentations
+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
+Plug 'nathanaelkane/vim-indent-guides' " pretty indentations
+Plug 'octol/vim-cpp-enhanced-highlight' " better C++ highlighting
call plug#end()
@@ -72,7 +73,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 BufReadPre,FileReadPre,BufNewFile * :SourceLocalVimrc
autocmd FileType scheme setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType lisp setlocal shiftwidth=2 tabstop=2 expandtab