duragezic

Lifer
Oct 11, 1999
11,234
4
81
I've been looking to customize GVIM 6.3 better with my _gvimrc file.

Right now I have:

set softtabstop=4
set tabstop=8
set shiftwidth=4


I like my idents to be 4 spaces. I'm not sure what tabstop=8 means though.

I'm on the VIM Docs/Tips site, but most of the stuff is all these intense tips I could care less about.

What I'd like to do is be able to set the color scheme so I don't have to change it every time I load a new Vim window. I'd also like to be able to have parenthesis that match to flash when I close off one. The lab computers at school with Gvim do this. However the .gvimrc from the lab computers looks like the attached code. I can't see any of those commands that make matched parenthesis flash.

I also seen mention of noexpandtab. Is that something I want True or False?

edit: Also I want my brackets to auto-ident C-style.
void blah()
{
....
}

What does smartident do? I don't want them to be Java-like (even tho I only write java) like
void blah() {
...
}

 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
tabstop means the amount of spaces it will take when you tab.
In your case, tabstop=8 translates to 8 spaces for 1 tab.

Also, colorscheme schemename is what you want to auto set the color scheme when you loads gvim up.


Mine looks something like this:
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set nohls
set nobackup
set ts=3
filetype plugin indent off
set columns=125
set lines=45
winpos 0 0
colorscheme koehler

I don't know all of what those means. But a few that I do know:
set nohls - turn off search highlighting (it's more of an annoyance to me than helpful)
set nobackup - do not create myFile~ files because I don't like stray files in my computer. Chances of crashing and losing my work is there, but that's why I :w from time to time.

set ts=3 - shorthand for set tabstop=3
set columns=125 and set lines=45 - The amount of space I want the gvim window to take when I edit a particular file. This is the only way I know that will have my gvim window 'maximized' whenever I open a file.
winpos 0 0 to go along the above, so the window starts at position 0 0 (top left) of my screen

colorscheme koehler - The pre-defined color scheme I like, which is bright text over dark background.

Others, I have no clue what they mean. I just take things for granted ,p
 

Red and black

Member
Apr 14, 2005
152
0
0
set modelines=0
set timeoutlen=100
set showmatch
set report=1
set showcmd
set ttyscroll=0
set backspace=2
set incsearch
set laststatus=2
set statusline=\ %n\ %t%m%r%=L%l\ C%c%V\ \ %P\

... and then map and imap to your heart's content.

Edit: I use a superset of these setting with regular vim. I don't ever use gvim. I imagine that gvim will accept the above settings just fine, though.