aboutsummaryrefslogtreecommitdiff
path: root/options.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-11-03 15:09:47 +0800
committerjdhao <jdhao@hotmail.com>2019-11-03 15:09:47 +0800
commit5a327a2244f1ddc18cda29fb7fe31f3f6916f387 (patch)
treeb5b02d2facb17212b90a86d1f7da86d0cdaf5e07 /options.vim
parentfd92f486770fd4dfe95e6d45d0093dd01a7f708f (diff)
Split titlestring for easier interpretation
Diffstat (limited to 'options.vim')
-rw-r--r--options.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/options.vim b/options.vim
index 5fe0ae9..370e92b 100644
--- a/options.vim
+++ b/options.vim
@@ -108,7 +108,10 @@ set autowrite
" http://tinyurl.com/l9nuj4a. The function to get lastmod time is drawn from
" http://tinyurl.com/yxd23vo8
set title
-set titlestring=%{hostname()}\ \ %{expand('%:p')}\ \ %{strftime('%Y-%m-%d\ %H:%M',getftime(expand('%')))}
+set titlestring=
+set titlestring+=%(%{hostname()}\ \ %)
+set titlestring+=%(%{expand('%:p')}\ \ %)
+set titlestring+=%{strftime('%Y-%m-%d\ %H:%M',getftime(expand('%')))}
" Persistent undo even after you close a file and re-open it
set undofile
@@ -151,4 +154,7 @@ set tildeop
" Do not add two space after a period when joining lines or formatting texts,
" see https://tinyurl.com/y3yy9kov
set nojoinspaces
+
+" Text after this column number is not highlighted
+set synmaxcol=200
"}