diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 674c7fc..af26985 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -23,7 +23,6 @@ let g:easyescape_chars = { "j": 1, "k": 1 } let g:easyescape_timeout = 100 inoremap jk inoremap kj -map :NERDTreeToggle set ignorecase set smartcase set mouse=a @@ -35,3 +34,8 @@ set shiftwidth=4 " number of spaces to use for autoindent set expandtab " tabs are space set autoindent set copyindent " copy indent from the previous line + +map :NERDTreeToggle + +" Allow saving of files as sudo when I forgot to start vim using sudo. +cmap w!! w !sudo tee > /dev/null %