Skip to content

Instantly share code, notes, and snippets.

@kxzk
Created January 8, 2018 04:16
Show Gist options
  • Save kxzk/3ac53ae3caf593ef5c12d9b0c98eb40a to your computer and use it in GitHub Desktop.
Save kxzk/3ac53ae3caf593ef5c12d9b0c98eb40a to your computer and use it in GitHub Desktop.
set statusline=
" file encoding
set statusline+=\ %{(&fenc!=''?&fenc:&enc)}
" current time, when buffer saved
set statusline+=\ %{strftime('%R', getftime(expand('%')))}
set statusline+=\ %{&fileformat}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment