From: R. Steve McKown Date: Mon, 5 Oct 2015 01:42:05 +0000 (-0600) Subject: vim: unite configuration updates X-Git-Url: https://oss.titaniummirror.com/gitweb?p=smckown%2Fdotfiles.git;a=commitdiff_plain;h=d5c748a7d183f26fd1be1d68b4b50cc07f48de83 vim: unite configuration updates * Allow to select a file when in insert mode * Comment turning off undo in unite files. This seems to break undo for all files. --- diff --git a/vim/vimrc b/vim/vimrc index b4ea160..563a6cc 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -422,11 +422,12 @@ nnoremap uo :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 (unite_select_next_line) imap (unite_select_previous_line) + imap (unite_do_default_action) nmap (unite_exit) endfunction