-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
D1488.vimrc
29 lines (25 loc) · 911 Bytes
/
D1488.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
" Tests for statusline mode-strings
"set noshowmode " This hides the normal mode line
set laststatus=2 " Enables the statusline
" Names for each mode (used for the statusbar)
let g:currentmode={
\ 'n' : '-- NORMAL --',
\ 'v' : '-- VISUAL --',
\ 'V' : '-- V-LINE --',
\ '' : '-- V-BLOQ --',
\ 'i' : '-- INSERT --',
\ 'ic' : '-- INSERT --',
\ 'ix' : '-- INSERT --',
\ 'R' : '-- RPLACE --',
\ 'Rv' : '-- VPLACE --',
\ 'c' : '-- PROMPT --',
\ '!' : '-- !SHELL --',
\ 't' : '-- TSHELL --',
\ 'r' : '-- PROMPT --',
\ 'r?' : '-- ACCEPT --',
\}
" Sets the statusline
set statusline=%{mode()}
"%{g:currentmode[mode()]}
" And unless you wanna go insane when going between modes I recommend this
set ttimeoutlen=0 " Which eliminates the annoying delay when switching modes (This is only for normal Vim)