hi Search ctermfg=black ctermbg=white " Turn on line numbering. Turn it off with "set nonu" set nu syntax on set history=50 filetype on " Vimrc file, http://phuzz.org set nocompatible " use vim defaults set ls=2 " allways show status line set tabstop=4 " numbers of spaces of tab character set shiftwidth=4 " numbers of spaces to (auto)indent set scrolloff=3 " keep 3 lines when scrolling set showcmd " display incomplete commands set hlsearch " highlight searches set incsearch " do incremental searching set ruler " show the cursor position all the time set visualbell t_vb= " turn off error beep/flash set novisualbell " turn off visual bell set nobackup " do not keep a backup file set number " show line numbers set ignorecase " ignore case when searching " set noignorecase " don't ignore case set title " show title in console title bar set ttyfast " smoother changes " set ttyscroll=0 " turn off scrolling, didn't work well with PuTTY set modeline " last lines in document sets vim mode set modelines=3 " number lines checked for modelines set shortmess=atI " Abbreviate messages set nostartofline " don't jump to first character when paging set whichwrap=b,s,h,l,<,>,[,] " move freely between files " set viminfo='20,<50,s10,h "set autoindent " always set autoindenting on "set smartindent " smart indent "set cindent " cindent set noautoindent set nosmartindent set nocindent " set autowrite " auto saves changes when quitting and swiching buffer " set expandtab " tabs are converted to spaces, use only when required " set sm " show matching braces, somewhat annoying... " set nowrap " don't wrap lines " syntax on " syntax highlighing if has("gui_running") " See ~/.gvimrc set guifont=Monospace\ 10 " use this font set lines=50 " height = 50 lines set columns=100 " width = 100 columns set background=light " adapt colors for background set selectmode=mouse,key,cmd set keymodel= else colorscheme delek " use this color scheme set background=dark " adapt colors for background endif if has("autocmd") " Restore cursor position au BufReadPost * if line("'\"")> 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif " Filetypes (au = autocmd) au FileType helpfile set nonumber " no line numbers when viewing help au FileType helpfile nnoremap " Enter selects subject au FileType helpfile nnoremap " Backspace to go back " When using mutt, text width=72 au FileType mail,tex set textwidth=72 au FileType cpp,c,java,sh,pl,php,asp set autoindent au FileType cpp,c,java,sh,pl,php,asp set smartindent au FileType cpp,c,java,sh,pl,php,asp set cindent endif " added from other sources by zubin - dimaag lagaake basically thoda sa... let perl_extended_vars=1 " highlight advanced perl vars inside strings