Created
January 27, 2011 05:46
-
-
Save eagletmt/798124 to your computer and use it in GitHub Desktop.
stopinsert after narrowing (unite.vim)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:direnter = { | |
\ 'description' : 'enter directory', | |
\ 'is_quit' : 0, | |
\ } | |
function! s:direnter.func(candidate) | |
call unite#take_action('narrow', a:candidate) | |
call unite#redraw() | |
stopinsert | |
3 | |
endfunction | |
call unite#custom_action('directory', 'enter', s:direnter) | |
unlet s:direnter | |
call unite#custom_default_action('directory', 'enter') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment