Add w!! command to force sudo writing
This commit is contained in:
parent
59250b2cfe
commit
de3e9adf71
1 changed files with 2 additions and 2 deletions
4
vimrc
4
vimrc
|
@ -146,8 +146,8 @@ inoremap jj <Esc>
|
||||||
"[To move over parenthesis, brackets, quotes in insert-mode]"
|
"[To move over parenthesis, brackets, quotes in insert-mode]"
|
||||||
inoremap kk <Right>
|
inoremap kk <Right>
|
||||||
inoremap hh <Left>
|
inoremap hh <Left>
|
||||||
"[Easy omni-completion with Ctrl-Space]"
|
" http://stackoverflow.com/questions/1005/getting-root-permissions-on-a-file-inside-of-vi
|
||||||
"inoremap <C-Space> <C-X><C-O>
|
cmap w!! w !sudo tee >/dev/null %
|
||||||
"[To disable the arrow keys]"
|
"[To disable the arrow keys]"
|
||||||
for prefix in ['i', 'n', 'v']
|
for prefix in ['i', 'n', 'v']
|
||||||
for key in ['<Up>', '<Down>', '<Left>', '<Right>']
|
for key in ['<Up>', '<Down>', '<Left>', '<Right>']
|
||||||
|
|
Loading…
Reference in a new issue