colo default set ts=4 set nocompatible set ww=l,h set mouse=n set showmatch set shiftwidth=4 "set paste set expandtab set report=1 set ruler set rulerformat=%24([\ %03c\ %.5l/%.5L\ %03p%%\ ]%) set autoindent set smartindent set incsearch if has("autocmd") " Enable file type detection. " Use the default filetype settings, so that mail gets 'tw' set to 72, " 'cindent' is on in C files, etc. "Also indent files, to automatically do language-dependent indenting. filetype plugin indent on " For all text files set 'textwidth' to 78 characters. """autocmd FileType text setlocal textwidth=78 " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif endif " has("autocmd") "custom commands com RMS %s/\s\+$//g "mapping map 4l map O5C :bn map O5D :bp map [ ^ map ] $ map ; : map m % "map [15~ 0i// "map [17~ 0xx "map [18~ 0i "map [3;5~ x "map  X map z $a // "abbreviation ab #d #define ab #i #include :if has("terminfo") : set t_Co=2 : set t_Sf=[3%p1%dm : set t_Sb=[4%p1%dm :else : set t_Co=2 : set t_Sf=[3%dm : set t_Sb=[4%dm :endif :if &t_Co > 1 : syntax enable :endif "my own hilighting "1-red 2-green 3-orange 4-blue 5-pink 6-cyan highlight Constant ctermfg=3 " highlight Comment ctermfg=6 " highlight PreProc ctermfg=5 " highlight Statement ctermfg=2 " highlight Type ctermfg=1 " highlight Special ctermfg=3