dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 114a68109b0ffc6ca727b5bd7f1e5018d758328f
parent 52ccc7f5cfee4aa09e470089b5c81f6119a72306
Author: Chris Noxz <chris@noxz.tech>
Date:   Sun, 13 Oct 2019 11:40:23 +0200

[vim] Make autocompile silent, and add 'save as root'

Diffstat:
Mvim/.config/vim/vimrc | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/vim/.config/vim/vimrc b/vim/.config/vim/vimrc @@ -130,7 +130,7 @@ nnoremap <silent> <leader>f :LiteDFMToggle<CR> " }}} " auto compile {{{ -map <leader>c :w! \| !compile <c-r>%<CR> +map <leader>c :w! \| silent !compile <c-r>%<CR>:redraw!<CR> "}}} " tab settings {{{ @@ -217,6 +217,12 @@ elseif (&ft == 'make') endif " }}} +" save as root {{{ +command W + \ :execute ':silent w !sudo tee % > /dev/null' + \ | :edit! +" }}} + function! ExpandOrEmpty(name) try return expand(a:name)