carrja99
07-12-2004, 09:25 AM
Vim shows it's stregnth through the various configuration options and scripts you can use to configure it. I've seen some people who have 100 line long .vimrc's!
Anyway, just finished installing vim on my freebsd box and did the obligatory
rm -f /usr/bin/vi
ln -s /usr/local/bin/vim /usr/bin/vi
and set about configuring it a little. Anyway, here's my current config:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" General Rules
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype on " Detect the type of the file
set nocompatible " get out of horrible vi-compatible mode
set history=1000 " How many lines of history to remember
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Themes/Colors
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set background=dark
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Visual Cues
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set showmatch " show matching brackets
set mat=5 " how many tenths of a second to blink matching brackets for
set nohlsearch " do not highlight searched for phrases (it's annoying)
set incsearch " BUT do highlight as you type you search phrase
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim UI
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set ai " Set auto-indent
set si " Use smart indent
set cindent " do c-style indenting
set backspace=indent,eol,start " Backspace work right dammit
set noexpandtab " real tabs please!
set tabstop=3 " Make tabs only 3 spaces, not 8!
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Perl
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let perl_extended_vars=1 " highlight advanced perl vars inside strings
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Other useful crap
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
iab xdate <c-r>=strftime("%d/%m/%y %H:%M:%S")<cr>
iab xname James R. Carr
iab xq $result = mysql_query($query) or die(mysql_error());
iab xr $row = mysql_fetch_assoc($result)
So... where's yours?
Anyway, just finished installing vim on my freebsd box and did the obligatory
rm -f /usr/bin/vi
ln -s /usr/local/bin/vim /usr/bin/vi
and set about configuring it a little. Anyway, here's my current config:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" General Rules
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype on " Detect the type of the file
set nocompatible " get out of horrible vi-compatible mode
set history=1000 " How many lines of history to remember
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Themes/Colors
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set background=dark
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Visual Cues
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set showmatch " show matching brackets
set mat=5 " how many tenths of a second to blink matching brackets for
set nohlsearch " do not highlight searched for phrases (it's annoying)
set incsearch " BUT do highlight as you type you search phrase
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim UI
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set ai " Set auto-indent
set si " Use smart indent
set cindent " do c-style indenting
set backspace=indent,eol,start " Backspace work right dammit
set noexpandtab " real tabs please!
set tabstop=3 " Make tabs only 3 spaces, not 8!
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Perl
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let perl_extended_vars=1 " highlight advanced perl vars inside strings
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Other useful crap
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
iab xdate <c-r>=strftime("%d/%m/%y %H:%M:%S")<cr>
iab xname James R. Carr
iab xq $result = mysql_query($query) or die(mysql_error());
iab xr $row = mysql_fetch_assoc($result)
So... where's yours?