Skip to content

Commit

Permalink
adding a useful statusline
Browse files Browse the repository at this point in the history
  • Loading branch information
Elger Postema committed Jul 28, 2018
1 parent a283fdd commit 33c1772
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ title: Set the window’s title, reflecting the file currently being edited.
> set visualbell
> set title
## statusline ##
statusline: Set all kinds usefull info in the statusline
It can be a kind of rabbithole, for now the result is:
[FileName: ~/.vim/vimrc[+]] [FileType: unix] [FileFormat: [vim]] - [Line: 0043 Column: 003 Pos: 75%] - [Char: ASCII=000 HEX=00]
> set statusline=[FileName:\ %F%m%r%h%w]\ [FileType:\ %{&ff}]\ [FileFormat:\ %y]
> set statusline+=\ \ -\ \
> set statusline+=[Line:\ %04l\ Column:\ %03v\ Pos:\ %p%%]
> set statusline+=\ \ -\ \
> set statusline+=[Char:\ ASCII=\%03.3b\ HEX=\%02.2B]

## nonumber ##
Do not show numbers on the left side of the window (it is horrible when copy-paste by mouse selection)
> set nonumber
Expand Down
9 changes: 9 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ set cursorline
set visualbell
set title

" statusline: Set all kinds usefull info in the statusline
" It can be a kind of rabbithole, for now the result is:
" [FileName: ~/.vim/vimrc[+]] [FileType: unix] [FileFormat: [vim]] - [Line: 0043 Column: 003 Pos: 75%] - [Char: ASCII=000 HEX=00]
set statusline=[FileName:\ %F%m%r%h%w]\ [FileType:\ %{&ff}]\ [FileFormat:\ %y]
set statusline+=\ \ -\ \
set statusline+=[Line:\ %04l\ Column:\ %03v\ Pos:\ %p%%]
set statusline+=\ \ -\ \
set statusline+=[Char:\ ASCII=\%03.3b\ HEX=\%02.2B]

" Do not show numbers on the left side of the window (it is horrible when
" copy-paste by mouse selection)
set nonumber
Expand Down

0 comments on commit 33c1772

Please sign in to comment.