Difference between revisions of "Working .vimrc"
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
set showmode | set showmode | ||
" set showcmd | " set showcmd | ||
+ | |||
+ | " Comment noautoindent out if you like autoindent. | ||
+ | " I've gotten used to being without it, and it throws | ||
+ | " me off now. | ||
+ | set noautoindent | ||
+ | |||
+ | " This makes a triple left brace into a fold marker. | ||
+ | " That can be changed. | ||
+ | set foldmethod=marker | ||
set ts=4 sw=4 | set ts=4 sw=4 |
Revision as of 11:18, 2 June 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 " Comment noautoindent out if you like autoindent. " I've gotten used to being without it, and it throws " me off now. set noautoindent " This makes a triple left brace into a fold marker. " That can be changed. set foldmethod=marker 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