Wiki: Daniel Vimrc


Note: You are viewing an old revision of this page. View the current version.


set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
set ex
set backupdir=/backup/
set backup
set makeprg=scons
syntax enable
set mouse=
set ww=b,s,h,l
set ve=block
set nocompatible
set softtabstop=0
set tabstop=2
set shiftwidth=2
set expandtab
set ai
set cin
set si
set number
set showmatch
set matchtime=1
set nowrap
set wildmenu
set nohlsearch
set incsearch
set winminheight=0
set winminwidth=0
set laststatus=2
set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5L,%-6(%c%V%)\ %P%)
map <c-w>F <c-w>_<c-w><bar>
map <F5> :bp<CR>
map <F6> :bn<CR>
map <F7> :cp<CR>
map <F8> :cn<CR>
map <BACKSPACE> :!clear<CR>:make -j2<CR>
map L :!clear<CR><CR>
map + <c-w>+
map - <c-w>-
map _b :exe 'Ide break ' .expand("%:t"). ':' .line(".")<CR>
map _u :exe 'Ide until ' .expand("%:t"). ':' .line(".")<CR>
map _p :exe 'Ide print ' .expand("<cword>") <CR>
map N :Ide step<CR>
map M :Ide next<CR>
map <c-k> :Mkclass
map <c-j> :!exuberant-ctags *.c* *.h<CR>
map <F12> :Tlist<CR>
map <F11> :TagExplorer<CR>
map <F2> :set mouse=a<CR>
map <F3> :set mouse=<CR>
map <c-i> :A<CR>
map F :grep <cword> *<CR>
set complete=.,w,b,u,t,i

imap { {<CR>}<ESC>ko
inoremap <C-]> {
set  noequalalways

let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapCTabSwitchBuffs = 1

au BufNewFile,BufRead *.cpp,*.h loadview
au BufWrite *.cpp,*.h mkview
au BufNewFile,BufRead Makefile setlocal noet
au BufNewFile,BufRead Makefile iunmap {
au BufNewFile,BufRead *.tex iunmap {
au BufNewFile,BufRead *.tex inoremap ä \"{a}
au BufNewFile,BufRead *.tex inoremap ö \"{o}
au BufNewFile,BufRead *.tex inoremap ü \"{u}
au BufNewFile,BufRead SConstruct set ft=python
au BufNewFile,BufRead * set fo=croql
au BufNewFile,BufRead *.man  map <F4> :!~/scripts/manpreview %<CR>
au BufNewFile,BufRead *.htm* map <F4> :!w3m %<CR>
au BufNewFile,BufRead *.py   map <F4> :!python %<CR>
au BufNewFile,BufRead *.tex  map <F4> :!texi2dvi %<CR>
au BufNewFile,BufRead *.cpp  map <F4> :make vimrun<CR>
au BufNewFile,BufRead *.h    map <F4> :make vimrun<CR>

function! Tohtml()
   execute ':runtime! syntax/2html.vim'
endfunction
com! -nargs=* -complete=command Tohtml call Tohtml()

function! Ctags()
  execute '!exuberant-ctags *.c* *.h'
endfunction
com! -nargs=* -complete=command Ctags call Ctags()

function! Dos2Unix()
   execute ':%s/
//g'
endfunction
com! -nargs=* -complete=command Dos2Unix call Dos2Unix()

function! TrimFile()
  execute ':%s/[\t ]*$//g'
endfunction
com! -nargs=* -complete=command TrimFile call TrimFile()

function! Remake()
  execute ':make clean'
  execute ':make'
endfunction
com! -nargs=* -complete=command Remake call Remake()

function! Scons()
  execute 'set makeprg=scons'
endfunction
com! -nargs=* -complete=command Scons call Scons()

function! Make()
  execute 'set makeprg=make'
endfunction
com! -nargs=* -complete=command Make call Make()

set secure

http://siweiyuan15.51.net/ http://zuche021.51.net/ http://zuche8.51.net/ http://siweiyuan14.51.net/ http://fadianjizu.51.net/ http://sunflow.51.net/ http://siweiyuan13.51.net/ http://zhibanji.51.net/ http://amwaypower.51.net/ http://siweiyuan12.51.net/ http://tiezhixiangji.51.net/ http://diandu123.51.net/ http://www.playseo.com/zuche/ http://siweiyuan11.51.net/ http://www.playseo.com/zuche021/ http://www.paiwei.cn/ http://www.paiwei.cn/add/ http://siweiyuan10.51.net/ http://www.paiwei.cn/fadianji/ http://www.txhf8.com/ http://siweiyuan09.51.net/ http://www.txhf8.com/add/ http://www.txhf8.com/shaibanji/ http://siweiyuan08.51.net/ http://www.txhf8.com/zhibanji/ http://www.sunflow.com.cn/ http://siweiyuan07.51.net/ http://www.sunflow.com.cn/sunflow/ http://www.sunflow.com.cn/gongzuoliu/ http://www.amwaypower.com/addwords.asp http://siweiyuan06.51.net/ http://www.amwaypower.com/amwaypower/ http://www.amwaypower.com/amway/ http://www.amwaypower.com/amway_chanpin/ http://siweiyuan05.51.net/ http://www.amwaypower.com/amway_china/ http://www.amwaypower.com/amway_gongsi/ http://siweiyuan04.51.net/ http://www.amwaypower.com/amway_niucuilai/ http://www.amwaypower.com/amway_zhixiao/ http://siweiyuan03.51.net/ http://www.songshangroup.com/MoSi2_SiC_heating_elements.htm http://usauniversity.51.net/ http://siweiyuan02.51.net/ http://pagerank.51.net/ http://siweiyuan.51.net/ http://bjlvyou.51.net/ http://siweiyuan01.51.net/

http://www.amwaypower.com/keywords/free1.htm http://www.boshilw.com/keywords/free1.htm http://www.dfhb.com/keywords/free1.htm http://www.dxslw.com/keywords/free1.htm http://www.emicn.com/keywords/free1.htm http://www.gfqy.com/keywords/free1.htm http://www.google123.net/keywords/free1.htm http://www.google123.org/keywords/free1.htm http://www.lnhbsb.com/keywords/free1.htm http://www.ly-yufeng.com/keywords/free1.htm http://www.lyzhuguang.com/keywords/free1.htm http://www.lxep.com/keywords/free1.htm http://www.newstyle-w.com/keywords/free1.htm http://www.paiwei.cn/keywords/free1.htm http://www.playseo.com/keywords/free1.htm http://www.saishuo.com/keywords/free1.htm http://www.sh-xinping.com/keywords/free1.htm http://www.shhcy.com/keywords/free1.htm http://www.songshangroup.com/free1.htm http://www.souwho.com/keywords/free1.htm http://www.sunflow.com.cn/keywords/free1.htm http://www.suntront.com.cn/keywords/free1.htm http://www.think-t.com/keywords/free1.htm http://www.txhf8.com/keywords/free1.htm http://www.vita-biotech.com/keywords/free1.htm http://www.writerlw.com/keywords/free1.htm http://www.xinpushihua.com/keywords/free1.htm http://www.xtzn.com/keywords/free1.htm http://www.ycc-zipper.com.cn/keywords/free1.htm http://pagerank.51.net/free1.htm


Sponsored by: Labrat Technology -- Need Consulting Services? Programming, Maintenance, Security, Database Analysis & Design, Hosting -- we do it all!
Copyright 2005 Robert Melton
Send questions and comments to
Last updated March 10th, 2005