diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -98,7 +98,7 @@ nmap gB :ls:b map gV `[v`] " Use ltag over tselect -nmap g :ltag +nmap g :call vimrc#Ltag(expand('')) " clear all interestingwords with \\k since \K is ri.vim nmap k :call UncolorAllWords() @@ -277,6 +277,16 @@ augroup vimrc " double-click to edit in vimfiler autocmd FileType vimfiler nmap <2-LeftMouse> (vimfiler_edit_file) + " Simplify noisy ltag output + autocmd BufReadPost quickfix + \ if w:quickfix_title =~ '^:ltag' | + \ setl modifiable | + \ silent exe ':%s/\^\\V\s*\|\\\$|.*//g' | + \ setl nomodifiable | + \ endif + + autocmd BufReadPost quickfix nmap q c + augroup END " Make paths when writing, as necessary