Tag Archives: _vimrc

Using Vim w/ .vimrc and .gvimrc Configuration Files

Vim is a programming interface built on vi that I have been wanting to try out for about a month now. I have heard it has great features. Plus, moving in and out of Linux/Windows/Mac environments I wanted to enhance my vi skills and use vi exclusively for programming HTML, CSS and Javascript.

But, I had to fool around with it a little. I was a little frustrated with having to customize it with no clear help on the issue. After Googling for about an hour, I finally have Vim (gVim) configured to use the proper colorschemes, handle tabs, and features I like properly. I thought I would post my _vimrc and _gvimrc files so you can tweak them and customize them.


set gfn=Consolas "this is the font I like (on Windows)
set guifont=consolas:h10.5:cDEFAULT "This modifies the font size
syntax on "auto Syntax Highlighting

set autoindent
set smartindent "If it can be smarter, what the hey
set shiftwidth=4
set tabstop=4
set cindent

cd %:h "changes the working directory to the directory of the file (use to open other files in splits/etc)

set number "Line numbers
set nowrap "No like wrapping
set ignorecase "ignore case on search, etc (I think)
set vb " turns off visual bell
set bs=2 "Make sure that the backspace key deletes like (normal)
set incsearch
set ignorecase
set smartcase
set spell "spell checker
set spelllang=en
set spellsuggest=9 " show only 9 suggestions for misspelled words
set guioptions-=T "Hide the toolbar
set guioptions+=b "Show the horz. scroll bar
set lines=30 columns=140 " default size of window when it opens.


colorscheme desert "My fav color scheme on Vim