From 954af9179665457b40453a0417ddf5b3949a0449 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 4 Mar 2007 18:35:36 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches. --- dotrc/_vimrc | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 dotrc/_vimrc (limited to 'dotrc/_vimrc') diff --git a/dotrc/_vimrc b/dotrc/_vimrc new file mode 100644 index 0000000..fcda293 --- /dev/null +++ b/dotrc/_vimrc @@ -0,0 +1,82 @@ +version 4.0 +set compatible +set cpo-=< +set sw=4 +" set expandtab +set ai +set report=2 +set more +set history=50 +set visualbell +set noshowmatch +set modeline + +:if &term =~ "linux" +: syntax on +:endif + +set background=dark +syntax on + +set wildchar=^I +set wildmode=list,longest +set wildignore=*.o,core,*~,*.bak,*.a,*.obj +set wildmenu + +" set fileformats=unix,dos,mac + +" For quickfix +" set mp=make\ \\\|&\ egrep\ ^cc:\ \\\|&\ egrep\ error +set mp=make\ \\\|&\ egrep\ ^cc: + +" +" This should work, but doesn't... +" set errorformat=cc:\ \"%f\"\,\ line\ %l:\ error\ %n:\ %m\. + +" Map error commands +map _a :cn +map _s :cp +map __ :cc + +" Map buffer cycling +map :bnext +map! :bnext + +" Try and set color for xterm +" +" :if &term =~ "xterm" +" : if has("terminfo") +" : set t_Co=16 +" : set t_AB=[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm +" : set t_AF=[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm +" : else +" : set t_Co=16 +" : set t_Sf=[3%dm +" : set t_Sb=[4%dm +" : endif +" :endif + + +" Autocommands for skeletons and the such +" +:if !exists("autocommands_loaded") +: let autocommands_loaded = 1 +": autocmd BufNewFile *.c 0r /devel/proformas/proforma.c +": autocmd BufNewFile *.h 0r /devel/proformas/proforma.h +": autocmd BufNewFile *.htm,*.html 0r $HOME/.skeleton/skeleton.html +": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Bold `>a` +": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Italic `>a` +": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Header.1 `>a` +": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Header.2 `>a` +": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Header.3 `>a` +": autocmd BufNewFile,BufReadPost *.htm,*.html syntax on +": autocmd BufNewFile,BufReadPost *.css syntax on +": autocmd BufNewFile,BufReadPost *.h syntax on +": autocmd BufNewFile,BufReadPost *.c syntax on +": autocmd BufNewFile,BufReadPost *.cpp syntax on +": autocmd BufNewFile,BufReadPost *.sql syntax on +": autocmd BufNewFile,BufReadPost *.pc syntax on +": autocmd BufNewFile,BufReadPost *.pc set syntax=cpp +": autocmd BufNewFile,BufReadPost *.pkg syntax on +": autocmd BufNewFile,BufReadPost *.pkg set syntax=plsql +:endif -- cgit v1.2.3