diff options
| author | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
| commit | 9931e0888b2419326ae10ebbfae532261c5c125f (patch) | |
| tree | 7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/vim-addon-mw-utils/autoload/buf_utils.vim | |
| parent | e573b3020c032400eed60b649a2cbf55266e6bb0 (diff) | |
| download | myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2 myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip | |
Fix submodules
Diffstat (limited to 'vim/bundle/vim-addon-mw-utils/autoload/buf_utils.vim')
| -rw-r--r-- | vim/bundle/vim-addon-mw-utils/autoload/buf_utils.vim | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/vim/bundle/vim-addon-mw-utils/autoload/buf_utils.vim b/vim/bundle/vim-addon-mw-utils/autoload/buf_utils.vim deleted file mode 100644 index d14d404..0000000 --- a/vim/bundle/vim-addon-mw-utils/autoload/buf_utils.vim +++ /dev/null @@ -1,24 +0,0 @@ -" buf_identifier is either a buf_nr or a filename -" If any window shows the buffer move to the buffer -" If not show it in current window (by c-w s c^ you can always -" reshow the last buffer -" -" Example: buf_utils#GotoBuf("/tmp/tfile.txt", {'create': 1}) -" returns: The command which was used to switch to the buffer -fun! buf_utils#GotoBuf(buf_identifier, opts) - let buf_nr = bufnr(a:buf_identifier) - if buf_nr == -1 && ( get(a:opts, 'create', 0) || has_key(a:opts, 'create_cmd')) - exec get(a:opts,'create_cmd','e').' '.fnameescape(a:buf_identifier) - return "e" - else - let win_nr = bufwinnr(buf_nr) - if win_nr == -1 - exec 'b '.buf_nr - return "b" - else - exec win_nr.'wincmd w' - return "w" - endif - wincmd w" - endif -endf |
