|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# cat ~/.vimrcset nocompatible
filetype indent onfiletype plugin onset tabstop=4
set shiftwidth=4
set autoindent
set cindent
set smartindent
set hlsearch
syntax enable
set dict=/usr/share/dict/words
if has('statusline')
set laststatus=2
"Broken down into easily includeable segments
set statusline=%<%f\ " Filename
set statusline+=%w%h%m%r " Options
set statusline+=\ [%{&ff}/%Y] " filetype
"ASCII/Hexadecimal value of under current cursor
set statusline+=\ [ASCII=\%03.3b/HEX=\%02.2B]
"Right aligned file nav info
set statusline+=%=%-14.(%l,%c%V%)\ %p%%
endif |
效果为:
版权声明:原创作品,如需转载,请注明出处。否则将追究法律责任