Difference between revisions of "Working .vimrc"
Jump to navigation
Jump to search
Line 32: | Line 32: | ||
" set showcmd | " set showcmd | ||
− | set ts= | + | set ts=4 sw=4 |
" Cycle tab stops | " Cycle tab stops | ||
Line 50: | Line 50: | ||
" Use a much more readable color scheme as default | " Use a much more readable color scheme as default | ||
− | colorscheme | + | colorscheme elflord |
</nowiki> | </nowiki> |
Revision as of 07:45, 26 May 2005
version 5.0 set nocompatible let cpo_save=&cpo set cpo=B map! <xHome> <Home> map! <xEnd> <End> map! <S-xF4> <S-F4> map! <S-xF3> <S-F3> map! <S-xF2> <S-F2> map! <S-xF1> <S-F1> map! <xF4> <F4> map! <xF3> <F3> map! <xF2> <F2> map! <xF1> <F1> map <xHome> <Home> map <xEnd> <End> map <S-xF4> <S-F4> map <S-xF3> <S-F3> map <S-xF2> <S-F2> map <S-xF1> <S-F1> map <xF4> <F4> map <xF3> <F3> map <xF2> <F2> map <xF1> <F1> let &cpo=cpo_save unlet cpo_save set ruler set backspace=2 syntax on set showmode " set showcmd set ts=4 sw=4 " Cycle tab stops function! Toggle_Tab_Width() if &ts == 2 set ts=4 sw=4 elseif &ts == 4 set ts=8 sw=8 else set ts=2 sw=2 endif endfunction " Assign this function to :TG command! TG call Toggle_Tab_Width() command! TS call Toggle_Tab_Width() " Use a much more readable color scheme as default colorscheme elflord