.vimrc

00001 "
00002 " File:   .vimrc
00003 "
00004 " Author: The original file was taken from Peter John's web site (www.pmade.org)
00005 "         and slightly modified by Sergey Satskiy (satsky.spb.ru)
00006 "
00007 
00008 
00009 " TAB stuff. Change the TABs to 4 spaces
00010 set et
00011 set ts=4
00012 set softtabstop=4
00013 set shiftwidth=4
00014 set textwidth=132
00015 
00016 " Smart indent for C
00017 " set si
00018 " Or even more clever indents
00019 set cindent
00020 
00021 set statusline=%-f\ %-n%=[%Y%R%M][0x%B/L%l/C%c/B%o/%p%%]
00022 
00023 " Sometimes it is required for SunOS
00024 " set t_kb=^H
00025 " set t_kD=^?
00026 
00027 
00028 set showmode
00029 set showcmd
00030 
00031 " Highlight the brackets match
00032 set showmatch
00033 set matchtime=3
00034 
00035 " Ignore case when searching
00036 set ignorecase
00037 
00038 set noerrorbells
00039 set title
00040 
00041 " Do not create ~... files
00042 set nobackup
00043 
00044 abbreviate #i #include
00045 abbreviate #d #define
00046 
00047 filetype on
00048 
00049 
00050 set path+=~/include
00051 
00052 
00053 set tagstack
00054 set nowrap    
00055 set number
00056 
00057 
00058 syntax off
00059 if &t_Co > 2
00060     syntax on
00061     set hlsearch
00062     set incsearch
00063 
00064     hi clear Folded
00065     hi clear FoldColumn
00066 
00067     hi Search       ctermfg=grey        ctermbg=darkblue
00068     hi IncSearch    ctermfg=darkgreen   ctermbg=black
00069     hi Visual       ctermfg=grey        ctermbg=darkblue
00070     hi StatusLine   ctermfg=darkblue    ctermbg=grey
00071     hi StatusLineNC ctermfg=darkred     ctermbg=grey
00072     hi Comment      ctermfg=red
00073 "    hi Constant        ctermfg=yellow
00074     hi Constant     ctermfg=magenta
00075     hi PreProc      ctermfg=darkgreen
00076     hi Statement    ctermfg=lightblue   cterm=bold
00077     hi Identifier   ctermfg=darkgreen
00078     hi Folded       ctermfg=magenta
00079     hi FoldColumn   ctermfg=grey
00080     hi Cursor       ctermfg=grey        ctermbg=black
00081     hi ErrorMsg     ctermfg=white       ctermbg=darkred
00082     hi VertSplit    ctermfg=brown
00083 "    hi LineNr      ctermfg=brown
00084     hi LineNr       ctermfg=lightblue
00085     hi ModeMsg      ctermfg=cyan
00086     hi NonText      ctermfg=cyan
00087 endif
00088 
00089 
00090 "# Cheat Sheet
00091 "#
00092 "#  F1 - Turn off search highlighting
00093 "#  F2 - ctags generation
00094 "#  F3 -
00095 "#  F4 - Open fist mentioned header file
00096 "#  F5 - 
00097 "#  F6 - 
00098 "#  F7 - 
00099 "#  F8 -
00100 "#  F9 - Grow current window
00101 "# F10 - Shrink current window
00102 "# F11 - Maximize current window
00103 "# F12 - Change to next window
00104 nmap <F1> :nohls<cr>
00105 nmap <F2> :!ctags *<cr>
00106 imap <F2> <Esc><F2>
00107 nmap <F4> mzgg/include \"<cr>wl<c-w>f15<c-w>_<c-w>w:nohls<cr>`z
00108 imap <F4> <Esc><F4>
00109 nmap <F9> <c-w>+
00110 imap <F9> <Esc><F9>
00111 nmap <F10> <c-w>-
00112 imap <F10> <Esc><F10>
00113 nmap <F11> <c-w>_
00114 imap <F11> <Esc><F11>
00115 nmap <F12> <c-w>w
00116 imap <F12> <Esc><F12>
00117 

Generated on Mon Aug 15 02:31:37 2005 for .vimrc by  doxygen 1.4.4 and manually modified by Sergey Satskiy