mirror of
1
0
Fork 0

Add override command for sudo save.

This commit is contained in:
Maksim Pecherskiy 2014-10-27 10:50:52 -07:00
parent 1c7abcd59e
commit bcbbdb653e
1 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ nmap <leader>w :w!<cr>
" :W sudo saves the file
" (useful for handling the permission-denied error)
command W w !sudo tee % > /dev/null
command! W w !sudo tee % > /dev/null
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@ -73,7 +73,7 @@ command W w !sudo tee % > /dev/null
set so=7
" Avoid garbled characters in Chinese language windows OS
let $LANG='en'
let $LANG='en'
set langmenu=en
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
@ -317,7 +317,7 @@ autocmd BufWrite *.coffee :call DeleteTrailingWS()
vnoremap <silent> gv :call VisualSelection('gv', '')<CR>
" Open Ack and put the cursor in the right position
map <leader>g :Ack
map <leader>g :Ack
" When you press <leader>r you can search and replace the selected text
vnoremap <silent> <leader>r :call VisualSelection('replace', '')<CR>