Skip to content

Commit c574994

Browse files
authored
Merge pull request #635 from ychin/guitablabel_defaults
'guitablabel' should only be set if user hasn't set it in vimrc.
2 parents deba1d8 + c1128c1 commit c574994

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

runtime/doc/gui_mac.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ strings like "((3) of 2)" to appear in the window title.
106106
*macvim-tablabel*
107107
Tab labels only show the tail of the file name to make the tabs more readable
108108
when editing files in deeply nested folders. Add the line "set guitablabel="
109-
to your .gvimrc file to revert back to the default Vim tab label.
109+
to your vimrc file to revert back to the default Vim tab label.
110110

111111
*macvim-options*
112112
These are the non-standard options that MacVim supports:

src/MacVim/gvimrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ endif
3131

3232
" To make tabs more readable, the label only contains the tail of the file
3333
" name and the buffer modified flag.
34-
set guitablabel=%M%t
34+
if empty(&guitablabel)
35+
set guitablabel=%M%t
36+
endif
3537

3638
" Send print jobs to Preview.app. This does not delete the temporary ps file
3739
" that is generated by :hardcopy.

0 commit comments

Comments
 (0)