diff options
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -84,6 +84,9 @@ if executable('rg') set grepprg=rg\ --color=never\ --vimgrep endif +" From Practical Vim p101 - Easy expansion of Active File Directory +cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%' + " i don't bother with folding, but it's here if i need it. if has('folding') set foldmethod=marker @@ -91,6 +94,9 @@ if has('folding') set viewoptions=folds,options,cursor,unix,slash endif +" Check whether any buffers have been updated outside of vim +nnoremap <F5> :checktime<CR> + " clear search highlights nnoremap <leader><space> :noh<cr>:call clearmatches()<cr> |