]> git.rmz.io Git - dotfiles.git/blobdiff - vimrc
zsh: use XDG_{CONFIG,CACHE}_HOME
[dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 2c3eba7d8b42f1b60f2e44e3d4b7b3088525d9cb..db95efec73ff7dbc17d9c6dc91e1ea23eafffe45 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -18,6 +18,8 @@ Bundle 'surround.vim'
 Bundle 'Syntastic'
 Bundle 'Tagbar'
 Bundle 'tComment'
 Bundle 'Syntastic'
 Bundle 'Tagbar'
 Bundle 'tComment'
+Bundle 'Valloric/YouCompleteMe'
+Bundle 'elzr/vim-json'
 
 filetype plugin indent on
 
 
 filetype plugin indent on
 
@@ -200,6 +202,9 @@ set undodir=$HOME/.vim/backupdir
 
 set autowrite                   " automatically write a file when leaving a modified buffer
 
 
 set autowrite                   " automatically write a file when leaving a modified buffer
 
+" save with sudo
+cmap w!! w !sudo tee % > /dev/null
+
 " command line editing {{{1
 set history=500                 " how many command lines are remembered
 set wildmode=longest:full       " specifies how command line completion works
 " command line editing {{{1
 set history=500                 " how many command lines are remembered
 set wildmode=longest:full       " specifies how command line completion works
@@ -258,6 +263,9 @@ let g:tagbar_iconchars = ['+', '-']
 " YouCompleteMe {{{2
 let g:ycm_extra_conf_globlist = ['/mnt/data/src/*']
 
 " YouCompleteMe {{{2
 let g:ycm_extra_conf_globlist = ['/mnt/data/src/*']
 
+" vim-json {{{2
+let g:vim_json_syntax_conceal = 0
+
 " functions {{{1
 " Convenient command to see the difference between the current buffer and the
 " file it was loaded from, thus the changes you made.
 " functions {{{1
 " Convenient command to see the difference between the current buffer and the
 " file it was loaded from, thus the changes you made.