Skip to content

Instantly share code, notes, and snippets.

@guilhermegregio
Created June 12, 2014 15:52
Show Gist options
  • Save guilhermegregio/25b1e368a62d2e8744e1 to your computer and use it in GitHub Desktop.
Save guilhermegregio/25b1e368a62d2e8744e1 to your computer and use it in GitHub Desktop.
.vimrc by gregio.net
"......................................................................ARQUIVO
"" Sai fora na marra!
imap <F12> <esc>:wqa!<cr>
map <F12> :wqa!<cr>
" Abreviacoes uteis para sua sanidade mental
cab W w| cab Q q| cab Wq wq| cab wQ wq| cab WQ wq
" Copy e paste
nmap <F3> :set paste<CR>:r !pbpaste<CR>:set nopaste<CR>
imap <F3> <Esc>:set paste<CR>:r !pbpaste<CR>:set nopaste<CR>
nmap <F2> :.w !pbcopy<CR><CR>
vmap <F2> :w !pbcopy<CR><CR>
set number
set nowrap
set tabstop=4
set shiftwidth=4
set softtabstop=4
set background=dark
set clipboard=unnamed
set nocompatible
set rtp+=~/.vim/bundle/Vundle.vim
filetype off
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
" Adicionar outros plugins
" Plugin ''
Plugin 'maksimr/vim-jsbeautify'
Plugin 'mattn/emmet-vim'
Plugin 'kien/ctrlp.vim'
Plugin 'digitaltoad/vim-jade'
Plugin 'ervandew/supertab'
call vundle#end()
filetype plugin indent on
syn on
" JSBEAUTIFY shorcuts
" for javascript
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
" for html
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
" for css or scss
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment