Permalink
Browse files

Nice window title

  • Loading branch information...
Andrey Paramonov
Andrey Paramonov committed Oct 23, 2012
1 parent 9df48a6 commit ceac8731d46747484acfb602b37727b8fa408a2b
Showing with 9 additions and 0 deletions.
  1. +9 −0 .vimrc
View
9 .vimrc
@@ -154,3 +154,12 @@ else
colorscheme koehler
endif
+" Nice window title
+if has('title') && (has('gui_running') || &title)
+ set titlestring=
+ set titlestring+=%f\ " file name
+ set titlestring+=%h%m%r%w " flags
+ set titlestring+=\ -\ %{v:progname} " program name
+ set titlestring+=\ -\ %{substitute(getcwd(),\ $HOME,\ '~',\ '')} " working directory
+endif
+

0 comments on commit ceac873

Please sign in to comment.