.vimrc updates: ignore nimcache in Ctrl-P, <Leader>b mapping

This commit is contained in:
Jonathan Bernard
2017-05-10 10:00:07 -05:00
parent abcaf43e10
commit e63a7a47cb

8
.vimrc
View File

@ -11,7 +11,8 @@ set incsearch
set autochdir
set textwidth=79
set guifont=SimplexMono\ Light\ Condensed\ 10
"set guifont=SimplexMono\ Light\ Condensed\ 10
set guifont=Terminus
filetype plugin on
filetype indent on
@ -24,6 +25,7 @@ autocmd BufRead *.java set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C
"source ~/.vim/.jdb_java.vim
autocmd BufRead /tmp/psql.edit.* set syntax=sql
autocmd BufRead,BufNewFile *.md setlocal filetype=markdown
autocmd BufEnter *.* silent loadview
autocmd BufLeave *.* mkview!
@ -53,7 +55,7 @@ vnoremap <silent> # :<C-U>
let g:solarized_contrast="high"
let g:ctrlp_max_files = 0
let g:ctrlp_custom_ignore = {
\ 'dir': '\v\.git$|\.hg$|\.svn$|build$|target$',
\ 'dir': '\v\.git$|\.hg$|\.svn$|build$|target$|node_modules$|nimcache$',
\ 'file': '\v\.(class|exe|so|dll|sw.)$'
\ }
@ -81,3 +83,5 @@ nmap <Leader>jsf :!java-file-formatter %:p<CR>
" clean_imports.sh should be a filter that reads in a filepath as the first
" argument and prints our the altered file contents on STDOUT.
nmap <Leader>jci :w<CR>:%!clean_imports.sh %<CR>
" Format the file using java-file-formatter. java-file-formatter should be a