96 |
96 |
97 " Select last paste |
97 " Select last paste |
98 map gV `[v`] |
98 map gV `[v`] |
99 |
99 |
100 " Use ltag over tselect |
100 " Use ltag over tselect |
101 nmap g<C-]> :ltag <C-r><C-w><CR> |
101 nmap g<C-]> :call vimrc#Ltag(expand('<cword>'))<CR> |
102 |
102 |
103 " clear all interestingwords with \\k since \K is ri.vim |
103 " clear all interestingwords with \\k since \K is ri.vim |
104 nmap <silent> <leader><leader>k :call UncolorAllWords()<CR> |
104 nmap <silent> <leader><leader>k :call UncolorAllWords()<CR> |
105 |
105 |
106 " use Ag for a recursive * |
106 " use Ag for a recursive * |
274 \ exe "normal! g`\"" | |
274 \ exe "normal! g`\"" | |
275 \ endif |
275 \ endif |
276 |
276 |
277 " double-click to edit in vimfiler |
277 " double-click to edit in vimfiler |
278 autocmd FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_edit_file) |
278 autocmd FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_edit_file) |
|
279 |
|
280 " Simplify noisy ltag output |
|
281 autocmd BufReadPost quickfix |
|
282 \ if w:quickfix_title =~ '^:ltag' | |
|
283 \ setl modifiable | |
|
284 \ silent exe ':%s/\^\\V\s*\|\\\$|.*//g' | |
|
285 \ setl nomodifiable | |
|
286 \ endif |
|
287 |
|
288 autocmd BufReadPost quickfix nmap <buffer> q <C-w>c |
279 |
289 |
280 augroup END |
290 augroup END |
281 |
291 |
282 " Make paths when writing, as necessary |
292 " Make paths when writing, as necessary |
283 augroup AutoMkdir |
293 augroup AutoMkdir |