diff options
author | Karel Kočí <karel.koci@nic.cz> | 2020-06-16 13:13:29 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2020-06-16 13:13:29 +0200 |
commit | 05744280dea215cd9df8350b6e192ae4027ca81b (patch) | |
tree | e34c75694b5351c4fd425165eb2644386ec3958c | |
parent | 866858b6e114686774d1034d6af3040b928c97e3 (diff) | |
download | myconfigs-05744280dea215cd9df8350b6e192ae4027ca81b.tar.gz myconfigs-05744280dea215cd9df8350b6e192ae4027ca81b.tar.bz2 myconfigs-05744280dea215cd9df8350b6e192ae4027ca81b.zip |
vimrc: Add GitIgnore to load .gitignore file to vim
-rw-r--r-- | vimrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 <C-C><CR> :Explore<CR> nnoremap <C-C>l :bnext<CR> |