sistema_progs

Programas para customizar o meu entorno de traballo nos meus equipos persoais
Log | Files | Refs

D1488.vimrc (911B)


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