vimrc: wgit branch write sudo

This commit is contained in:
Théophile Bastian 2017-03-12 01:04:51 +01:00
parent 881d274080
commit 2ca5df989b
1 changed files with 8 additions and 1 deletions

View File

@ -49,6 +49,7 @@ Plugin 'itchyny/vim-haskell-indent'
Plugin 'junegunn/goyo.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'davidhalter/jedi-vim'
call vundle#end() " required
filetype plugin indent on " required
@ -88,9 +89,14 @@ let g:syntastic_ocaml_checkers = ['merlin']
"""" Ocp-indent (OCaml indentation)
set rtp^=g:opamshare."/ocp-indent/vim"
""""""""""""""""" Python
let g:jedi#goto_definitions_command = "<LocalLeader>l"
let g:jedi#completions_enabled = 0
""""""""""""""""" Airline
set laststatus=2
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
set noshowmode
""""""""""""""""" Trailing whitespaces
@ -112,10 +118,11 @@ nnoremap __ :lprev<CR>
nnoremap ++ :lnext<CR>
nnoremap _+ :ll<CR>
nnoremap <Leader>w :call TrimWhitespace()<CR>
nnoremap K <Esc>i<CR><Esc>
xnoremap <Leader>x <esc>:'<,'>:w !xclip -selection clipboard<CR><esc>
cmap w!! w !sudo tee % > /dev/null
set tw=79
" Disable arrow keys - use hjkl, ffs.