Skip to content

Instantly share code, notes, and snippets.

@fumiyas
Created May 21, 2012 08:32
Show Gist options
  • Save fumiyas/2761179 to your computer and use it in GitHub Desktop.
Save fumiyas/2761179 to your computer and use it in GitHub Desktop.
function! GetFilename()
let fname = expand("%")
return (fname == "") ? "[No Name]" : fname
endfunction
let &statusline='%{GetFilename()}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment