Skip to content

Instantly share code, notes, and snippets.

@eagletmt
Created January 27, 2011 05:46
Show Gist options
  • Save eagletmt/798124 to your computer and use it in GitHub Desktop.
Save eagletmt/798124 to your computer and use it in GitHub Desktop.
stopinsert after narrowing (unite.vim)
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