mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-28 10:21:07 +02:00
Add sudo write command to vim
This commit is contained in:
parent
79ae99f8cf
commit
8db0ee83a3
@ -11,3 +11,8 @@ highlight CursorLine guibg=#303000 ctermbg=234
|
|||||||
" configure reasonable swap file
|
" configure reasonable swap file
|
||||||
" https://begriffs.com/posts/2019-07-19-history-use-vim.html?hn=3#backups-and-undo
|
" https://begriffs.com/posts/2019-07-19-history-use-vim.html?hn=3#backups-and-undo
|
||||||
runtime swap.vim
|
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 %
|
||||||
|
Loading…
Reference in New Issue
Block a user