diff options
-rw-r--r-- | vimrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -83,6 +83,7 @@ " * Map <leader>/ to clear search highlighting " * Map gj -> j and gk -> k so we can still skip wrapped lines if we want " * Set ignorecase and smartcase +" * Add file encoding to statusline " @@ -139,6 +140,10 @@ set statusline=%f " Path to file set statusline+=\ " Separator set statusline+=%y " Filetype set statusline+=\ " Separator + " File encoding + " (http://vim.wikia.com/wiki/Show_fileencoding_and_bomb_in_the_status_line) +set statusline+=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\").\"]\ \"} +set statusline+=\ " Separator set statusline+=%m " File modified? flag set statusline+=%r " Readonly? flag set statusline+=\ " Separator |