diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-21 00:18:15 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-21 00:19:05 +1200 |
commit | 02f55116721a31118f202c21af5913c6b50e39ab (patch) | |
tree | 777e753a468ab75d025ba94953e2562d39986d63 /vim/vimrc | |
parent | Use literal leaders in mappings (diff) | |
download | dotfiles-02f55116721a31118f202c21af5913c6b50e39ab.tar.gz dotfiles-02f55116721a31118f202c21af5913c6b50e39ab.zip |
Greatly expand 'wildignore'
This probably needs to be a little plugin.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 29 |
1 files changed, 25 insertions, 4 deletions
@@ -171,12 +171,33 @@ if has('wildmenu') set wildmode=list:longest " Don't complete certain files that I'm not likely to want to manipulate - " from within Vim: + " from within Vim if has('wildignore') + + " Archives + set wildignore+=*.7z,*.bz2,*.gz,*.rar,*.tar,*.xz,*.zip + set wildignore+=*.7Z,*.BZ2,*.GZ,*.RAR,*.TAR,*.XZ,*.ZIP + " Binary + set wildignore+=*.bin,*.iso + set wildignore+=*.BIN,*.ISO + " Documents + set wildignore+=*.djvu,*.pdf,*.xls,*.xlsx + set wildignore+=*.DJVU,*.PDF,*.XLS,*.XLSX + " Images + set wildignore+=*.bmp,*.gif,*.ico,*.jpeg,*.jpg,*.png,*.xcf + set wildignore+=*.BMP,*.GIF,*.ICO,*.JPEG,*.JPG,*.PNG,*.XCF + " Mac OS X junk + set wildignore+=.DS_Store + " Media + set wildignore+=*.gifv,*.mid,*.m4a,*.mp3,*.mp4,*.ogg,*.opus,*.ogv,*.webm + set wildignore+=*.GIFV,*.MID,*.M4A,*.MP3,*.MP4,*.OGG,*.OPUS,*.OGV,*.WEBM + " Object formats set wildignore+=*.a,*.o - set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png - set wildignore+=.DS_Store,.git,.hg,.svn - set wildignore+=*~,*.swp,*.tmp + " Version control + set wildignore+=.git,.hg,.svn, + " Vim metadata + set wildignore+=*~,*.swp + endif " Complete files without case sensitivity, if the option is available |