" jeffr's vimrc, gvimrc " " $Author: jeffr $ " $Date: 2026-02-15 09:01:47 -0500 (Sun, 15 Feb 2026) $ " $Revision: 5 $ " Common elements set nocp " Turn off compatibility with VI set nu " Turn line-numbering on set ru " Turn the ruler on set ai " Turn auto-indent on set hlsearch " Highlight strings that I search for set showmode " Always show the mode set visualbell " Use visual bell instead of audible bell set showmatch " Show matching brackets set matchtime=5 " Show matching brackets for this amount of time syntax on " Turn syntax highlighting on set backspace=indent,eol,start " Allow backspacing set tabstop=4 " Set tab width set spell spelllang=en_us " Spell checking set laststatus=2 " Always show the status line set report=0 " Tell me when anything has changed " Set swap directory if system('uname') =~ 'Linux' set directory=$HOME/.vim/swap// elseif system('uname') =~ 'CYGWIN*' set directory=$HOME/.vim/swap// else set directory=$HOME\\vimfiles\\swap// endif " gvim specific items if has('gui_running') set mousehide " Hide the mouse cursor while I type set columns=130 " Size window columns set lines=55 " Size window lines winpos 1 1 " Window position (top left) set guioptions-=T " Remove the useless toolbar set guioptions+=m " Add the menubar " Try my preferred color scheme try colorscheme oceandeep " My favorite color scheme catch /^Vim\%((\a\+)\)\=:E185/ colorscheme desert " A nice alternative endtry " GUI font if system('uname') =~ 'Linux' set guifont=Monospace\ Regular\ 10 " Set GUI font for Linux elseif system('uname') =~ 'CYGWIN*' set guifont=Free\ Mono\ 10 " Set GUI font for Cygwin X else set guifont=Consolas:h9 " Set GUI font Windows endif endif