cahenan /.vimrc

Python Ready!
"Para remover os finais de linha com ^M:
":set ff=unix
"Se não funcionar:
":%s///g
"vai parecer:
":%s/^M//g
"
autocmd BufRead,BufNewFile * syntax on
" set noautoindent
autocmd BufRead,BufNewFile * set noai
" autocmd FileType * set tabstop=3|set shiftwidth=3|set noexpandtab
set background=dark
map  :let &background = ( &background == "dark"? "light" : "dark" )

" , #python # comments
map  :s/^/#/
map  :s/^#//
set ff=unix
set autoindent
set smartindent
"Tecla Backspace volta 4 espaços quando estiver numa identação.
set softtabstop=4
"Tabs são convertidos para espaços
set et
set showmatch
"Quando o "autoindent" faz um tab, ele é do tamanho de 4 espaços.
set sw=4
"Tabs são do tamanho de 4 espaços
set ts=4
syntax on
set laststatus=2
"Mostra no rodape da tela a posição horizontal e vertical do cursor.
set ruler
"Envia mais caracteres ao terminal, melhorando o redraw de janelas.
set ttyfast
"Não compatível com o VI
set nocompatible
filetype plugin on
filetype plugin indent on
"Ativa o Folding
"set fdm=syntax
"Barra lateral onde aparece as guias para dobras
"set fdc=2
set nofoldenable
"Busca Incremental
set incsearch
set hlsearch
"Sempre mostra o menu, melhora o autocompletion
set completeopt=menuone,longest
"Set auto quando a arquivo é modificado por outro aplicativo
set autoread
"Ativa quebra na palavra
set lbr

let python_hightlight_all = 1

function InsertTabWrapper()
    let col = col('.') - 1
    if !col || getline('.')[col - 1] !~ '\k'
        return "\"
    else
        return "\"
    endif
endfunction
inoremap  =InsertTabWrapper()

au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif

"if has("autocmd")
"    autocmd FileType python set "complete+=k/home/thiago/pydiction-0.5/pydiction iskeyword+=.,(
"endif " has("autocmd")

"Fechamento automático de parênteses, chaves e colchetes
"imap { {}
"imap ( ()
"imap [ []