From 05744280dea215cd9df8350b6e192ae4027ca81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 16 Jun 2020 13:13:29 +0200 Subject: vimrc: Add GitIgnore to load .gitignore file to vim --- vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 1178710..1078432 100644 --- a/vimrc +++ b/vimrc @@ -113,7 +113,12 @@ cmap w!! w !sudo tee >/dev/null % cabbrev E Explore let g:netrw_banner=0 let g:netrw_liststyle=1 -let g:netrw_list_hide='\(^\|\s\s\)\zs\.\S\+' +function GitIgnore() + " Possibly find and include all lower .gitignore files? + let g:netrw_list_hide='\(^\|\s\s\)\zs\.\S\+,' . netrw_gitignore#Hide() +endfunction +command GitIgnore call GitIgnore() +GitIgnore " Some fast buffer switching and opening of new files nnoremap :Explore nnoremap l :bnext -- cgit v1.2.3