Custom status line in vim
Add the following three lines to the end of either /etc/vimrc or ~/.vimrc
set paste set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] set laststatus=2
Will the following to the bottom of your vim session:
~/x.txt [FORMAT=unix] [TYPE=TEXT] [ASCII=000] [HEX=00] [POS=0000,0001][100%] [LEN=1]
You will see
- the current file name
- file format
- file type
- ASCII code for the character that the cursor is on in both decimal and hex
- current position of the cursor in the file – line number and character on that line
- current position of the cursor in the file in percent
- number of linse in the file