]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: virtualedit=all is more annoying than helpful
[dotfiles.git] / vim / vimrc
index 6ac05a3380a57e922d5dfd714323a3181001ef89..f4265f44a0351084cca49ac1c3d501957847e806 100644 (file)
--- 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 <C-V> mode
+set virtualedit+=block     " let cursor move past last char in <C-V> 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 <space> <leader>
 
 " make
-nnoremap <leader>r :make<cr>
-nnoremap <leader><cr> :make<cr>
+nnoremap <leader>r :make!<cr>
+nnoremap <leader><cr> :make!<cr>
 
 " unhighlight search
 nnoremap <silent> <Leader>/ :silent nohl<CR>
@@ -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 <silent> [unite]a :<C-u>Unite grep -input=\12\17<CR>
+nnoremap <silent> [unite]a :<C-u>Unite grep:.::\12\17<CR>
 command! -nargs=1 Ag Unite grep -input=<args>
 
 " unite-file_rec {{{3