summaryrefslogtreecommitdiffstats
path: root/shell/_vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'shell/_vimrc')
-rw-r--r--shell/_vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/_vimrc b/shell/_vimrc
index f91c575..2123c9b 100644
--- a/shell/_vimrc
+++ b/shell/_vimrc
@@ -61,6 +61,9 @@ colorscheme distinguished
" remove trailing whitespaces on save
autocmd BufWritePre * :%s/\s\+$//e
+" save file with root permissions
+cmap w!! w !sudo tee % >/dev/null
+
" Markdown
autocmd BufRead,BufNew *.md set filetype=markdown
@@ -80,3 +83,5 @@ vmap <Enter> <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
+
+