If I open a file in vi like:
vi /etc/httpd/conf/httpd.conf
Then vi shows in the bottom left corner of the window:
"/etc/httpd/conf/httpd.conf" 1009L, 34418C
But when I edit the file with a or i then this line disappears.
And even when pressing Esc to exit the editing mode it wont come back.
How do I get this line back after editing?
Ctrl+g
for this:file
:-) I wanted to give that as an answer, but is doesn't show the amount of characers. I'm not sure how to get exactly that line...let &statusline = '"%f" %{line("$")}L, %{line2byte(line("$"))}C'
. You can also make a mapping to echo this:nnoremap <Leader>fi :echo '"' . expand("%") . '" ' . line("$") . "L, " . line2byte(line("$")) . "C"<CR>
wc -c
, not fromwc -m
.