From 8db0ee83a3a9067c25f0fb39c82d02d55dac4420 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Tue, 12 Nov 2019 17:35:37 +0200 Subject: [PATCH] Add sudo write command to vim --- .config/nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index acae49a..f007249 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -11,3 +11,8 @@ highlight CursorLine guibg=#303000 ctermbg=234 " configure reasonable swap file " https://begriffs.com/posts/2019-07-19-history-use-vim.html?hn=3#backups-and-undo runtime swap.vim + +let g:deoplete#enable_at_startup = 1 + +" Allow saving of files as sudo when I forgot to start vim using sudo. +cmap w!! w !sudo tee > /dev/null %