Skip to content

'guitablabel' should only be set if user hasn't set it in vimrc. #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/doc/gui_mac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ strings like "((3) of 2)" to appear in the window title.
*macvim-tablabel*
Tab labels only show the tail of the file name to make the tabs more readable
when editing files in deeply nested folders. Add the line "set guitablabel="
to your .gvimrc file to revert back to the default Vim tab label.
to your vimrc file to revert back to the default Vim tab label.

*macvim-options*
These are the non-standard options that MacVim supports:
Expand Down
4 changes: 3 additions & 1 deletion src/MacVim/gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ endif

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

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