commit cd43b676391beff7e6ae558831aa0a3d86599df7
parent 9d94e6a48d7152afd85445de64f0f74641edfdae
Author: oscarbenedito <oscar@oscarbenedito.com>
Date:   Sat,  9 May 2020 12:58:35 +0200

Change netrw behaviour for better :Ex experience

Diffstat:
Mdot_config/nvim/init.vim | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/dot_config/nvim/init.vim b/dot_config/nvim/init.vim @@ -17,6 +17,12 @@ Plug 'tpope/vim-fugitive' " git wrapper Plug 'vimwiki/vimwiki' call plug#end() +" netrw +let g:netrw_liststyle=3 " tree structure +let g:netrw_banner=0 " get rid of banner +" adds 'number' and 'relativenumber', other options are the default ones +let g:netrw_bufsettings="nomodifiable nomodified number nobuflisted nowrap readonly relativenumber" + " vimwiki let g:vimwiki_list=[{ 'path': '~/Documents/wiki', 'path_html': '~/Documents/wiki/build/html', 'custom_wiki2html': '~/Documents/wiki/build/build.py', 'syntax': 'markdown', 'ext': '.md' }] let g:vimwiki_folding='expr' @@ -98,6 +104,10 @@ nnoremap U <C-r> nmap <silent> <Leader>ev :e $MYVIMRC<CR> nmap <silent> <Leader>sv :so $MYVIMRC<CR> +" edit file +nmap <Leader>ee :Explore<CR> +nmap <Leader>ev :Vexplore<CR> + " save with sudo privileges using w!! cmap w!! w !sudo tee % >/dev/null