Add statusline configuration to .vimrc
This commit is contained in:
parent
c1251ecfc3
commit
1614c7fc2a
1 changed files with 7 additions and 0 deletions
7
vimrc
7
vimrc
|
@ -45,6 +45,13 @@ set incsearch " show search matches as you type
|
|||
set hlsearch " highlight search matches
|
||||
set gdefault " apply searches globally to a line by default
|
||||
|
||||
set laststatus=2 " always show status line
|
||||
|
||||
" This is basically default status line, with a few exceptions:
|
||||
" 1. Show buffer number before filename (b%n:)
|
||||
" 2. Show filetype before ruler
|
||||
set statusline=%<b%n:%f\ %h%m%r%=%y\ %l,%c%V\ \ %P
|
||||
|
||||
" use PCREs for searches
|
||||
nnoremap / /\v
|
||||
vnoremap / /\v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue