Created
April 26, 2014 01:07
-
-
Save thinca/11308912 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! s:set_window_name(name) | |
let esc = "\<ESC>" | |
silent! execute '!echo -n "' . esc . 'k' . escape(a:name, '%#!') | |
\ . esc . '\\"' | |
redraw! | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment