Skip to content

Instantly share code, notes, and snippets.

@zblach
Created September 11, 2014 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zblach/4e486b3d7c39f28c70c4 to your computer and use it in GitHub Desktop.
Save zblach/4e486b3d7c39f28c70c4 to your computer and use it in GitHub Desktop.
" less-style ampersand filter
call unite#custom#profile('source/line', 'context', {
\ 'buffer_name' : 'filter',
\ 'prompt_direction' : 'below',
\ 'split' : 1,
\ 'tab' : 0,
\ 'prompt' : '&/',
\ 'toggle' : 1,
\ })
call unite#custom#source('source/line', 'matchers', 'matcher_regexp')
nnor <silent> <leader>& :<C-u>UniteWithInput line:backward<cr>
nnor <silent> <leader>w& :<C-u>UniteWithCursorWord line:backward<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment