"/* " * Copyright (C) 2007 Lincoln de Sousa " * Copyright (C) 2007 Gabriel Falcão " * " * This program is free software; you can redistribute it and/or " * modify it under the terms of the GNU General Public License as " * published by the Free Software Foundation; either version 2 of the " * License, or (at your option) any later version. " * " * This program is distributed in the hope that it will be useful, " * but WITHOUT ANY WARRANTY; without even the implied warranty of " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU " * General Public License for more details. " * " * You should have received a copy of the GNU General Public " * License along with this program; if not, write to the " * Free Software Foundation, Inc., 59 Temple Place - Suite 330, " * Boston, MA 02111-1307, USA. " */ syntax on set mouse= set showmatch set nowrap set nu set backspace=indent,eol,start set ts=4 set sw=4 set et set statusline=%F%m%r%h%w\ [Formato=%{&ff}]\ [Tipo=%Y]\ [Ascii=\%03.3b]\ [Hex=\%02.2B]\ [Posicao\ atual=%04v]\ [Linha\ atual=%04l]\ [%p%%]\ [Tamanho=%L\ linhas] set laststatus=2 "set autoindent set nobackup set completeopt=menu set autoread "set autoindent " habilitar plugin de comentarios: " source $HOME/.vimplugins/comments.vim " habilitar plugin de capitalizacao: source $HOME/.vimplugins/cream-capitalization.vim " sempre utf-8! set fileencoding=utf-8 let g:explVertical=1 let g:explWinSize=35 let g:explSplitLeft=1 let g:explSplitBelow=1 let g:explHideFiles='^\.,.*\.class$,.*\.swp$,.*\.pyc$,.*\.swo$,\.DS_Store$' let g:explDetailedHelp=0 " python let python_highlight_numbers=1 let python_highlight_builtins=1 let python_highlight_exceptions=1 let python_highlight_space_errors=1 autocmd FileType python filetype indent on "autocmd FileType python set textwidth=79 " gajim "autocmd BufNewFile,BufRead */work/gajim/* set noexpandtab "autocmd BufNewFile,BufRead */work/gajim/* set shiftwidth=8 " C, js autocmd FileType c,cpp,javascript setlocal cindent "autocmd FileType c,cpp,javascript setlocal ts=2 "autocmd FileType c,cpp,javascript setlocal sw=2 "autocmd FileType html setlocal tw=2 " tab config :nmap :tabnew :nmap :tabnext :nmap :tabprevious ":nmap :tabprevious " code folding "autocmd FileType python set foldmethod=indent "autocmd FileType python :%foldopen! "autocmd BufNewFile,BufRead *.c,*.cpp set foldmethod=indent "autocmd BufNewFile,BufRead *.c,*.cpp :%foldopen! " adicao de tipos do zopao autocmd BufNewFile,BufRead *.zcml setf xml autocmd BufNewFile,BufRead *.pt,*.[cj]pt, setf xhtml autocmd BufNewFile,BufRead *.css.dtml setf css autocmd BufNewFile,BufRead *.js.dtml setf javascript autocmd BufNewFile,BufRead *.metadata setf dosini " tab para o make e ChangeLog "autocmd FileType changelog set textwidth=79 autocmd FileType changelog set noet autocmd FileType make set noet " Salvar a posicao do cursor em arquivos recem editados autocmd BufRead *,.* :normal '" " mostra a side bar com um file explorer " ah esquerda do vim function! ShowSideBar() " pra alterar o tema descomente a linha abaixo " colorscheme elflord vertical split vertical resize 22 set nonu :Explore endfun " permite recarregar o vim para que as modificacoes no .vimrc sejam ativadas nmap :source $HOME/.vimrc echo "Vimrc recarregado!"