X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/485933001d2f0ec0b99fb70e6e7d053e5da16123..5f9a3de3258ad159991509ff7d8e48bcb6e9012b:/vim/vimrc?ds=sidebyside diff --git a/vim/vimrc b/vim/vimrc index 6ac05a3..831fa8b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -257,14 +257,17 @@ set wildignore+=*.luac " Lua byte code set wildignore+=*.pyc " Python byte code set wildignore+=*.orig " Merge resolution files -" running make and jumping to errors +" running make and jumping to errors {{{2 set makeprg=make\ -w " print changing directories +set grepprg=ag\ --vimgrep\ $* + " language specific {{{2 set isfname-== " don't treat `=` as being part of filenames " various {{{2 -set virtualedit=all " let cursor move past last char in mode +set virtualedit+=block " let cursor move past last char in mode +set virtualedit+=onemore " allow the cursor to move just past the end of the line set viminfo='100,<50,s10,h,n$XDG_CACHE_HOME/vim/viminfo " viminfo defaults but save file in .cache set viewdir=$XDG_CACHE_HOME/vim/view// @@ -326,8 +329,8 @@ command! ToggleAutoChecktime let b:autochecktime=!get(b:, 'autochecktime', 0) | map " make -nnoremap r :make -nnoremap :make +nnoremap r :make! +nnoremap :make! " unhighlight search nnoremap / :silent nohl @@ -618,7 +621,7 @@ if executable('ag') let g:unite_source_grep_default_opts = '--smart-case -w --vimgrep --hidden --ignore ''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr''' let g:unite_source_grep_recursive_opt = '' end -nnoremap [unite]a :Unite grep -input= +nnoremap [unite]a :Unite grep:.:: command! -nargs=1 Ag Unite grep -input= " unite-file_rec {{{3