" pretty... " colorscheme torte " torte + autodetect sucks...*sigh*...so: command -nargs=0 -bar Darken set background=|set background=dark " programming let Tlist_Inc_Winwidth = 0 " tell TagList that window width cannot be adjusted let TE_Adjust_Winwidth = 0 " tell TagExplorer that window width cannot be adjusted set tags=./tags " , other_tag_files... use ^X^] to match tags while typing set showfulltag " shows prototype heads.. filetype plugin indent on " automatic file type detection/plugin " loading/indent file loading syntax enable " syntax high-lighting let g:load_doxygen_syntax=1 " auto-load doxygen for C, C++, and IDL(?) " C/C++ indenting options... set cinoptions=e-2sn-2sg0b1p-2st.5sc1sC1/-.5s(0u0w1 " WOW!! see :help cinoptions " use the = command to format code rather than gq syntax sync fromstart "set cindent " smartindent duplicates most of cindent, " ...cindent is just pickier set smartindent " generalized cindent (but NOT for code...; " see autocmds below) set cinwords='' " this is evil incarnate...it sucks... if !exists("my_autocommands_loaded") let my_autocommands_loaded = 1 autocmd BufRead *.inc,*.def,*.[cCh],*.cpp,*.cc,*.hpp,*.hh set nosmartindent|set cindent autocmd BufRead *.info,*.tpq,*.quest,*.txt,*.html set nocindent|set smartindent endif " the evil tabs!!! set expandtab " makes tab keystrokes turn into spaces set shiftwidth=4 " when hitting tab, how far to go? set softtabstop=0 " none of that tab-space mix crap... set tabstop=4 " when hitting tab, how far to go? set autoindent " re-use current line indent when starting new line set copyindent " copy last line's indent-space to next line for autoindent set smarttab " affects tab use at beginning and during backsp " general display/content set ruler " line, column, and %/top/bot/all set display=uhex " display codes instead of ^C or ~C set fileformat=unix " not really working...it resets when loading a binary " transferred DOS file...so I have to set it again before saving to fix " \r\n pairs... " general text formatting set formatoptions=2rq " 2nd line controls formatting (allows first line indent " to differ), repeat the comment marker on , and " gq can format comments normally even in cindent mode set textwidth=78 " sets maximum line length for file set nowrap " sets up for a scrollbar in gvim -- i.e. it doesn't 'wrap' " on screen but instead allows lines to scroll left and right set nohlsearch " don't show the ~last~ search results!!! " X and GUI settings (that is, for gvim) set title set titlelen=125 " this may need to change for your local font settings... set guifont=Monospace\ 20 " Courier\ 20 ? set guioptions+=ebh " horizontal scrollbar, tab pages set showtabline=2 " always show the tab line set tabpagemax=25 " normally limits to 10 when -p opens pages at command-line " *shrug* someone online (cygwin mailing list) said it would be good... " ...even though I don't do backup files...*shrug* Doesn't seem to hurt... set backupcopy=yes