2011-01-11 17:36:49 +08:00
|
|
|
" ============================================================================
|
|
|
|
" File: tagbar.vim
|
|
|
|
" Description: List the current file's tags in a sidebar, ordered by class etc
|
2011-02-16 20:19:24 +08:00
|
|
|
" Author: Jan Larres <jan@majutsushi.net>
|
2011-01-11 17:36:49 +08:00
|
|
|
" Licence: Vim licence
|
2011-02-20 06:04:09 +08:00
|
|
|
" Website: http://majutsushi.github.com/tagbar/
|
2011-05-29 15:19:03 +08:00
|
|
|
" Version: 2.1
|
2011-01-11 17:36:49 +08:00
|
|
|
" Note: This plugin was heavily inspired by the 'Taglist' plugin by
|
2011-02-13 14:20:15 +08:00
|
|
|
" Yegappan Lakshmanan and uses a small amount of code from it.
|
2011-02-14 17:02:44 +08:00
|
|
|
"
|
|
|
|
" Original taglist copyright notice:
|
|
|
|
" Permission is hereby granted to use and distribute this code,
|
|
|
|
" with or without modifications, provided that this copyright
|
|
|
|
" notice is copied with it. Like anything else that's free,
|
|
|
|
" taglist.vim is provided *as is* and comes with no warranty of
|
|
|
|
" any kind, either expressed or implied. In no event will the
|
|
|
|
" copyright holder be liable for any damamges resulting from the
|
|
|
|
" use of this software.
|
2011-01-11 17:36:49 +08:00
|
|
|
" ============================================================================
|
|
|
|
|
2011-06-18 14:46:04 +08:00
|
|
|
if has('multi_byte')
|
|
|
|
scriptencoding utf-8
|
|
|
|
endif
|
|
|
|
|
2011-01-11 17:36:49 +08:00
|
|
|
if &cp || exists('g:loaded_tagbar')
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2011-01-24 17:37:52 +08:00
|
|
|
" Commands {{{1
|
2011-06-29 04:59:49 +08:00
|
|
|
command! -nargs=0 TagbarToggle call tagbar#ToggleWindow()
|
|
|
|
command! -nargs=0 TagbarOpen call tagbar#OpenWindow(0)
|
|
|
|
command! -nargs=0 TagbarOpenAutoClose call tagbar#OpenWindow(1)
|
|
|
|
command! -nargs=0 TagbarClose call tagbar#CloseWindow()
|
|
|
|
command! -nargs=1 TagbarSetFoldlevel call tagbar#SetFoldLevel(<args>)
|
|
|
|
command! -nargs=0 TagbarShowTag call tagbar#OpenParents()
|
2011-01-11 17:36:49 +08:00
|
|
|
|
2011-01-24 17:37:52 +08:00
|
|
|
" Modeline {{{1
|
2011-06-29 04:59:49 +08:00
|
|
|
" vim: ts=8 sw=4 sts=4 et foldenable foldmethod=marker foldcolumn=1
|