Skip to content

Instantly share code, notes, and snippets.

@adilsoncarvalho
Created January 1, 2012 03:23
Show Gist options
  • Save adilsoncarvalho/1546134 to your computer and use it in GitHub Desktop.
Save adilsoncarvalho/1546134 to your computer and use it in GitHub Desktop.
my vim rc file
" orgulhosamente copiado de http://blog.myhro.info/2011/11/instalando-e-configurando-o-vim-no-windows/
" Desabilitar o mouse:
set mouse=a
" Desabilitar menus:
"set guioptions-=m
"set guioptions-=r
"set guioptions-=T
" Desabilitar backups:
set nobackup
set noswapfile
set nowritebackup
" Cores e tema:
colorscheme slate
filetype on
syntax on
" Clipboard do sistema:
set clipboard=unnamed
" Tabs por espaços:
set expandtab
set shiftwidth=2
set tabstop=2
" Indentação:
filetype plugin indent on
set autoindent
" Régua, quebra e número de linhas:
set linebreak
set number
set ruler
" Navegação entre abas:
map <C-Tab> :tabnext<CR>
map <S-Tab> :tabprevious<CR>
" Busca:
set hlsearch
set ignorecase
set incsearch
" Limpar os resultados destacados:
nmap <silent> <C-C> :silent noh<CR>
" Fonte e janela:
set guifont=consolas:h10
set encoding=utf-8
set lines=36 columns=142
set wildmenu
" Salvar:
nmap <silent> <C-S> :silent w<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment