diff options
| author | jdhao <jdhao@hotmail.com> | 2020-05-05 21:26:12 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-05-05 21:33:55 +0800 |
| commit | 1c6833c7746dc2e561498fedad2e48856d527633 (patch) | |
| tree | 0769069b2309fb9fe113168b9d13dc6ecc4fb504 /options.vim | |
| parent | 3e5aaa79725108374b55a17f696392c63fc70e10 (diff) | |
update titlestring style
Diffstat (limited to 'options.vim')
| -rw-r--r-- | options.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/options.vim b/options.vim index 53934b3..d30e65c 100644 --- a/options.vim +++ b/options.vim @@ -112,8 +112,10 @@ set autowrite " lastmod time is drawn from https://stackoverflow.com/q/8426736/6064933 set title set titlestring= -set titlestring+=%(%{hostname()}\ \ %) -set titlestring+=%(%{expand('%:p')}\ \ %) +if g:is_linux + set titlestring+=%(%{hostname()}\ \ %) +endif +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 |
