Skip to content

Instantly share code, notes, and snippets.

@ujihisa
Created June 7, 2011 07:21
Show Gist options
  • Save ujihisa/1011818 to your computer and use it in GitHub Desktop.
Save ujihisa/1011818 to your computer and use it in GitHub Desktop.

Revisions

  1. ujihisa created this gist Jun 7, 2011.
    11 changes: 11 additions & 0 deletions is-cmdwin.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    function! s:is_cmdwin()
    try
    wincmd n
    wincmd q
    catch
    return 1
    endtry
    return 0
    endfunction

    " nnoremap \c :<C-u>echomsg <SID>is_cmdwin()<Cr>