Skip to content

Instantly share code, notes, and snippets.

@manelvf
Created October 5, 2009 15:33
Show Gist options
  • Save manelvf/202191 to your computer and use it in GitHub Desktop.
Save manelvf/202191 to your computer and use it in GitHub Desktop.
My Vimrc
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
map! <S-Insert> <MiddleMouse>
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
map <S-Insert> <MiddleMouse>
iabbr ms Microsoft
let &cpo=s:cpo_save
unlet s:cpo_save
set background=dark
set backspace=indent,eol,start
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=gl
set history=50
set nomodeline
set mouse=a
set printoptions=paper:a4
set ruler
set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim71,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set termencoding=utf-8
" vim: set ft=vim :
colorscheme desert
syntax on
imap [ []<Esc>i
map <C-t> :TlistToggle<CR>
cab W w
cab Wq wq
cab wQ wq
cab WQ wq
cab Q q
cab X x
cab Tabe tabe
set showmatch
set ignorecase smartcase
" sw = shiftwidth, ts = tabstop
set expandtab
set sw=4
set ts=4
set number
set ai
set wildmode=longest,list
" ----------------------------------------------------------------------------
" Auto Update da lista de tags
" ----------------------------------------------------------------------------
let Tlist_Auto_Update = 1
" ----------------------------------------------------------------------------
" Habilitando o menu tags no gvim
" ----------------------------------------------------------------------------
let Tlist_Show_Menu = 1
" ----------------------------------------------------------------------------
",v brings up my .vimrc
",V reloads it -- making all changes active (have to save first)
map ,v :sp $MYVIMRC<CR><C-W>_
map <silent> ,V :source $MYVIMRC<CR>:filetype detect<CR>:exe ":echo 'vimrc reloaded'"<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment