fix setting &titlestring

This commit is contained in:
Josh Holtrop 2016-07-01 09:37:03 -04:00
parent 3eabe33eeb
commit ace69fef9d

2
vimrc
View File

@ -49,7 +49,6 @@ if has("gui_running")
set nomousehide
hi ColorColumn guibg=#220000
set showtabline=2
let &titlestring=tolower(substitute(v:servername, "\\d$", "", "")) . ": %t%m (%{expand('%:p:h')})"
else
" console-specific settings
set scrolloff=4
@ -132,6 +131,7 @@ if has("autocmd")
autocmd BufEnter * if bufname('%') == '' | set bufhidden=wipe | endif
if has("gui_running")
let &titlestring="%{tolower(substitute(v:servername, '\\d$', '', ''))}: %t%m (%{expand('%:p:h')})"
autocmd WinLeave * set nocursorline nocursorcolumn
autocmd WinEnter * set cursorline cursorcolumn
set cursorline cursorcolumn