mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Document how to use relative sizes in g:tagbar_width (#689)
This commit is contained in:
@@ -539,11 +539,15 @@ g:tagbar_width~
|
||||
Default: 40
|
||||
|
||||
If |g:tagbar_position| does include a 'vertical' options, then this value is
|
||||
used to determine the width of the Tagbar window in characters.
|
||||
used to determine the width of the Tagbar window in characters. This value can
|
||||
also be set using the |winwidth(0)| function call to calculate a dynamic value
|
||||
to make the tagbar width relative to a percentage of the vim window size as
|
||||
seen in the example below that will open the tagbar window to 20 percent of
|
||||
the window width with a limit of no less than 25 characters.
|
||||
|
||||
Example:
|
||||
>
|
||||
let g:tagbar_width = 30
|
||||
let g:tagbar_width = max([25, winwidth(0) / 5])
|
||||
<
|
||||
|
||||
*g:tagbar_zoomwidth*
|
||||
|
||||
Reference in New Issue
Block a user