Cameron Matheson wrote on Sat Jun 02, 2001 at 03:45:30PM: > 1. How do I enable c/c++ mode? My friend's computer automatically puts > parenthesis where they're supposed to go, highlights syntax, etc.
in your .vimrc enter / uncomment: " set indent to c indent if editing c-files augroup C autocmd BufRead *.c set cindent augroup END " if vim was compiled with +syntax enable syntax hightlighting by default if has("syntax") syntax on endif > 2. How do I set the tab-spacing? I like to code w/ two-space tab-stops, > but vim defaults to 8 :( set tabstop=2 set expandtabs this expands tabs (which is a good idea IMHO) and sets stop to 2. > 3. Is their an assembler mode? There is a asm.vim - Syntax file. There may be a better asm Mode I don't know about (never been there). hth, Matthias