Browse Source

Add w!! command to force sudo writing

merge-requests/1/merge
lhark 8 years ago
parent
commit
de3e9adf71
  1. 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…
Cancel
Save