Skip to content

Instantly share code, notes, and snippets.

@paulohrpinheiro
Created October 13, 2014 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulohrpinheiro/7dc61a4182efee01695f to your computer and use it in GitHub Desktop.
Save paulohrpinheiro/7dc61a4182efee01695f to your computer and use it in GitHub Desktop.
My .vimrc file, to program in C and Python.
" cada tab vira quatro espaços em branco
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
" deixa seu arquivo colorido, realçando a sintaxe de
" acordo com a linguagem usada
syntax on
" mostra linha e coluna atuais
set ruler
" mostra o status do documento
set laststatus=2
" se você tiver problemas com as setas, habilite isso
"set nocompatible
" porque ficar dando tab, se o vim faz isso pra você?
set autoindent
" automaticamente quebra a linha
set wrap
" nunca mais sofra com o alucinante e ofuscante azul
" invisível da morte, em terminais X
set bg=light
" cores legais
colorscheme delek
" lembra a última linha editada de um arquivo
" http://vim.wikia.com/wiki/Restore_cursor_to_file_position_in_previous_editing_session
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment