Skip to content

Instantly share code, notes, and snippets.

@kannokanno
Last active August 29, 2015 13:57
Show Gist options
  • Save kannokanno/9633576 to your computer and use it in GitHub Desktop.
Save kannokanno/9633576 to your computer and use it in GitHub Desktop.
ctrlp + dwm
function! OpenWithDWM(action, line)
call ctrlp#acceptfile(a:action, a:line)
if winnr() !=# 1 && exists('*DWM_Focus')
call DWM_Focus()
endif
endfunction
let g:ctrlp_open_func = {
\ 'files' : 'OpenWithDWM',
\ 'buffers' : 'OpenWithDWM',
\ 'mru files' : 'OpenWithDWM',
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment