X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/485933001d2f0ec0b99fb70e6e7d053e5da16123..87dbb61de15b388761bed6d81592c57f27b08c2c:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 6ac05a3..f4265f4 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -264,7 +264,8 @@ set makeprg=make\ -w " print changing directories 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 +327,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 +619,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