Note: You are viewing an old revision of this page. View the current version.
" " ~~/.vimrc " Otávio Corrêa Cordeiro " cordeiro@exatas.unisinos.br " Brazil, 30 de junho de 2004 " versão 0.9 " " Seta o tamanho do TAB e redefine a statusbar set ts=4 sts=4 sw=4 smarttab noexpandtab set statusline=[%n]\ %f\ %(\ %M%R%H)%)\=Pos=<%l\,%c%V>\ ASCII=%b\ HEX=%B " Não tirar esta linha: set nocompatible " " POPUP com o mouse, no Linux set mousemodel=popup " " Faz o Backspace funcionar corretamente "imap <BackSpace> <Left><Del> set backspace=indent,eol,start " " Desabilita Backup ;) set nobackup set nowritebackup " " Sintaxe Colorida syntax enable " " Reconhece os tipos de arquivos. filetype plugin indent on " " Destaca os paranteses/chaves/colchetes quando sao fechados set showmatch " " Lembra do diretório do último arquivo aberto set browsedir=buffer " " No Windows adiciona o colar com clique em dois botões ou botão do meio. map <S-Insert> <MiddleMouse> map~! <S-Insert> <MiddleMouse> " " Muda arquivos do formato Windows para o Linux e vice versa. map ,w2u1 :se ff=unix map ,w2u2 :1,$s/^M//g " " Avançar pelas palavras nnoremap <C-Left> b vnoremap <C-S-Left> b nnoremap <C-S-Left> gh<C-O>b inoremap <C-S-Left> <C-O>gh<C-O>b nnoremap <C-Right> w vnoremap <C-S-Right> w nnoremap <C-S-Right> gh<C-O>w inoremap <C-S-Right> <C-O>gh<C-O>w " " Procurar funcao... map ,~* :grep "\<<cword>\>" `find -name '*.[ch]'`<CR> " " Como deveria funcionar o TAB :-) vmap <tab> >gv vmap <s-tab> <gv " " Esconde o ponteiro do mouse quando se está digitando. set mousehide " " Visual Bell set visualbell " " Espaçoes e Tabulções set listchars=tab:»·,trail:· set list~! function MostrarEspacos() <pre> set listchars=tab:»·,trail:· set list~! </pre> endfunction imap <F12> <Esc>:call MostrarEspacos()<Cr> vmap <F12> <Esc>:call MostrarEspacos()<Cr> map <F12> :call MostrarEspacos()<Cr> " " Auto Completar function Texfunctions() <pre> imap ( ()<Left> imap [ []<Left> imap { {}<Left> </pre> endfunction au FileType tex,bib call Texfunctions() function Cfuncoes() <pre> imap ( ()<Left> imap [ []<Left> imap { {<CR>}<Up><End><CR> </pre> endfunction au FileType c,cpp,java,perl call Cfuncoes() function~! InsertTabWrapper(direction) <pre> let col = col('.') - 1 if ~!col || getline('.')[col - 1] ~!~~ '\k' return "\<tab>" elseif "backward" =~= a:direction return "\<c-p>" else return "\<c-n>" endif </pre> endfunction inoremap <tab> <c-r>=InsertTabWrapper ("forward")<cr> inoremap <s-tab> <c-r>=InsertTabWrapper ("backward")<cr> " " Redimensiona o tamanho da janela do buffer atual. if bufwinnr(1) <pre> map + <C-W>+ map - <C-W>- </pre> endif " " Seta tamanho da Janela do gVIM if has('gui') " set lines=45 " set columns=100 <pre> set mouse=a </pre> endif " " Seta posição para a Janela "if has('gui') " winpos 50 0 "endif " " Seta o esquema de cor colorscheme darkblue " " Seta fonte "set guifont=Monospace 12 " " Numera as linhas set number set ruler " " Seta auto-indent set autoindent " " Tira o menu do modo gráfico (gVIM) "set guioptions-=T " " Não deixa quebrar as linhas (odeio linhas quebradas) set nowrap " " No Linux if has("unix") <pre> " Dicionário set dictionary+=$HOME/.vim/pt_BR.dic set complete-=k complete+=k " " Seta a fonte no Linux set guifont=Monospace " " For Taglist nnoremap <silent> <F8> :Tlist<CR> nnoremap <silent> <F9> :TlistSync<CR> let Tlist_Ctags_Cmd = '/home/rcsd/cordeiro/.vim/bin/ctags' let Tlist_Use_Right_Window = 0 let Tlist_Sort_Type = "name" " </pre> endif " No Windows deixar essas linhas .... if has("win32") <pre> source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin set diffexpr=MyDiff() function MyDiff() let opt = '' if &diffopt =~~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~~ 'iwhite' | let opt = opt . '-b ' | endif silent execute '~!C:\PROGRAMAS\VIM\VIM62\diff -a ' . opt . '"' . v:fname_in . '" "' . v:fname_new . '" > "' . v:fname_out . '"' endfunction </pre> endif "
http://www.amwaypower.com/amwaypower/ http://www.amwaypower.com/amway_china/ http://www.amwaypower.com/amway_gongsi/ http://www.amwaypower.com/amway_chanpin/ http://www.amwaypower.com/amway_niucuilai/ http://www.amwaypower.com/amway_usa/ http://www.amwaypower.com/amway_zhixiao/ http://www.paiwei.cn/add/ http://www.playseo.com/bjlvyou/ http://www.playseo.com/zuche021/ http://www.playseo.com/zuche8/ http://www.playseo.com/zuche/ http://www.saishuo.com/tiezhixiangji/ http://www.sunflow.com.cn/sunflow/ http://www.txhf8.com/add/ http://diandu123.51.net/ http://usauniversity.51.net/ http://pagerank.51.net/ http://amwaypower.51.net/ http://amwaypower.51.net/amway_china/ http://amwaypower.51.net/amway_gongsi/ http://amwaypower.51.net/amway_chanpin/ http://amwaypower.51.net/ay_niucuilai/ http://amwaypower.51.net/amway_usa/ http://amwaypower.51.net/amway_zhixiao/ http://fadianjizu.51.net/ http://bjlvyou.51.net/index.htm http://zuche021.51.net/ http://zuche8.51.net/ http://tiezhixiangji.51.net/ http://sunflow.51.net/ http://zhibanji.51.net/ http://siweiyuan15.51.net/ http://siweiyuan14.51.net/ http://siweiyuan13.51.net/ http://siweiyuan12.51.net/ http://siweiyuan11.51.net/ http://siweiyuan10.51.net/ http://siweiyuan09.51.net/ http://siweiyuan08.51.net/ http://siweiyuan07.51.net/ http://siweiyuan06.51.net/ http://siweiyuan05.51.net/ http://siweiyuan04.51.net/ http://siweiyuan03.51.net/ http://siweiyuan02.51.net/ http://siweiyuan01.51.net/ http://siweiyuan.51.net/
http://www.playseo.com/somewebpage.htm http://www.souwho.com/somewebpage.htm http://pagerank.51.net/somewebpage.htm 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