]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
vim: unite configuration updates
authorR. Steve McKown <rsmckown@gmail.com>
Mon, 5 Oct 2015 01:42:05 +0000 (19:42 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Mon, 5 Oct 2015 03:35:41 +0000 (21:35 -0600)
* Allow <CR> to select a file when in insert mode
* Comment turning off undo in unite files.  This seems to break undo for
  all files.

vim/vimrc

index b4ea160860614eb93cf03956f483eb7d05b4ae8d..563a6cc7cf8612a0f5c0f034eeb947a92a01fa4c 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -422,11 +422,12 @@ nnoremap <leader>uo :<C-u>Unite -no-split -start-insert -buffer-name=outline out
 " Custom mappings for the unite buffer
 autocmd FileType unite call s:unite_settings()
 function! s:unite_settings()
-  setlocal noswapfile undolevels=-1
+  "setlocal noswapfile undolevels=-1
   " Play nice with supertab
   let b:SuperTabDisabled=1
   " Enable navigation with control-j and control-k in insert mode
   imap <buffer> <C-n> <Plug>(unite_select_next_line)
   imap <buffer> <C-p> <Plug>(unite_select_previous_line)
+  imap <buffer> <CR> <Plug>(unite_do_default_action)
   nmap <buffer> <ESC> <Plug>(unite_exit)
 endfunction