From ea245563e7e528a9a72ec3d787e541cc144ab3b6 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 4 May 2010 20:16:09 +0200 Subject: [PATCH] Small fix for annoying interfering taglisttoo window with opening file via FufFile --- .vimrc | 4 ++-- plugin/taglisttoo.vim | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index fd26b34..dc43bf5 100644 --- a/.vimrc +++ b/.vimrc @@ -208,7 +208,7 @@ map wp VimwikiPrevWord map ]b :call OpenInFirefox() "make displaying tags easy -nmap t :Tlist +nmap t :TlistToo "aswell minibufexplorer "map b :TMiniBufExplorer "eclim Buffer shortcut @@ -220,7 +220,7 @@ nmap ,cn :silent call CopyFileName(1) nmap ,cs :silent call CopyFileName(0) "FuzzyFinder plugin. Keys for file fuf -map :FufFile **/ +map :TlistToo!:FufFile **/ " }}} " FUNCTIONS: usefull functions for all of th files {{{ "Sessions diff --git a/plugin/taglisttoo.vim b/plugin/taglisttoo.vim index c820ed4..e85089b 100644 --- a/plugin/taglisttoo.vim +++ b/plugin/taglisttoo.vim @@ -92,7 +92,12 @@ endif " Command Declarations {{{ if !exists(":Tlist") && !exists(":TlistToo") - command TlistToo :call s:Taglist() + "command TlistToo :call s:Taglist() + "I want to have possibility to explicit close the taglist by passing bang to + "the command. gryf + command! -bang -nargs=? TlistToo :call s:Taglist(-1) + "And also have a command for explicit close + command! TlistTooOpen :call s:Taglist(1) endif " }}}