Hey I've been reading somewhat about these files and tried to edit one myself but it didn't work. For example i set the tab to be 4 spaces and such. Also i wanted to know if anyone had a good vimrc file for c++ programming they could share with me. Sorry for the incoherent thoughts just to sum it up real fast;
can someone tell me how to get the file working and
does anyone have a good vimrc file for c++ coding they could share with me.
A brief explanation of the sets:
set ts=3 sw=3 cindent ruler expandtab fo=cql fileformat=unix bg=dark
- source $VIM/_vimrc - Avoid skipping the default vimrc
- ts=3 sw=3 - Sets my tabs to 3 spaces big.
- cindent - Uses C-style indenting for C-type files
- ruler - shows a little position information at the bottom of the window
- expandtab - Convert tabs to spaces.
- bg = dark - Affects colors.
- color darkblue - To see all the possible colors, ls $VIMRUNTIME/colors
- syn on - Enables syntax highlighting
In general, vim looks for a directory specified by the environment variable $HOME (or %HOME%), and looks for the vimrc file in that directory. If you have trouble getting your vimrc file to work, you should definately give :help vimrc a read.
can someone specifically tell me where to put this file, as well as the entire file that you might have for c++ programming
It depends largely on your system.
Windows or Linux?
gvim (windowed mode) or vim (console mode)?
the gvim color scheme you might not have
set scrolloff=3 "space between cursor and terminal bottom
set nocompatible "VIM over Vi
set undolevels=1500 "how many times the user can undo
set sidescrolloff=3 "space between cursor and terminal side
set ic! "ignore case for searching
set title "sets terminal title
set tabstop=4 "tab width
set nowrap "no wrapping
set number "line number
set nobackup "no default backup
map <End> G "<End> brings vim to the end of the file
map <Home> gg "<Home> brings vim to the beggining of file
set gfn=Bitstream\ Vera\ Sans\ Mono\ 9