Mercurial > dotfiles.old
diff vimrc @ 246:624d06dcf54c
Change mapping for Ag
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 22 Feb 2015 22:26:26 +0100 |
parents | 50379acb4815 |
children | 5199030e3e2c |
line wrap: on
line diff
--- a/vimrc Wed Feb 18 22:41:39 2015 +0100 +++ b/vimrc Sun Feb 22 22:26:26 2015 +0100 @@ -346,7 +346,6 @@ " Latex {{{ " Open pdf nnoremap <leader>v :!open -a /Applications/TeX/TeXShop.app %:r.pdf<CR><CR> -" Set compiler to rubber autocmd FileType tex setlocal makeprg=latexmk\ -pdf\ %:r au BufNewFile,BufRead,BufEnter *.tex setlocal spell spelllang=en_gb au BufNewFile,BufRead,BufEnter *.tex setlocal textwidth=0 @@ -450,8 +449,8 @@ " }}} " Ag {{{ " Ack motions by Steve Losh, adapted for Ag -nnoremap <silent> \a :set opfunc=<SID>AckMotion<CR>g@ -xnoremap <silent> \a :<C-U>call <SID>AckMotion(visualmode())<CR> +nnoremap <silent> <Leader>a :set opfunc=<SID>AckMotion<CR>g@ +xnoremap <silent> <Leader>a :<C-U>call <SID>AckMotion(visualmode())<CR> function! s:CopyMotionForType(type) if a:type ==# 'v'