From 614cbc4891c63652312abf0f7cf8916295f323fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 27 Aug 2020 22:20:14 +0200 Subject: [PATCH] Updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .vimrc | 2 +- .vimrc-gentoo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index a636a13..1f3da5b 100644 --- a/.vimrc +++ b/.vimrc @@ -82,4 +82,4 @@ nnoremap :tabnew nnoremap :tabprevious nnoremap :tabnext -command W :execute ':silent w !sudo tee % > /dev/null' | :edit! +cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! diff --git a/.vimrc-gentoo b/.vimrc-gentoo index ebf4a0a..5fa6717 100644 --- a/.vimrc-gentoo +++ b/.vimrc-gentoo @@ -97,7 +97,7 @@ nnoremap :tabprevious nnoremap :tabnext nnoremap :GoRun -command W :execute ':silent w !sudo tee % > /dev/null' | :edit! +cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! " latex autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw!