# HG changeset patch # User zegervdv # Date 1424640386 -3600 # Node ID 624d06dcf54c82d9a865580407a4c8ddb5479b0e # Parent ca66a7fd5cc9bd21ceb4ce2b23e476b601be8585 Change mapping for Ag diff -r ca66a7fd5cc9 -r 624d06dcf54c vimrc --- 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 v :!open -a /Applications/TeX/TeXShop.app %:r.pdf -" 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 \a :set opfunc=AckMotiong@ -xnoremap \a :call AckMotion(visualmode()) +nnoremap a :set opfunc=AckMotiong@ +xnoremap a :call AckMotion(visualmode()) function! s:CopyMotionForType(type) if a:type ==# 'v'