Skip to content

Instantly share code, notes, and snippets.

@rafaellucio
Forked from guilhermegregio/.vimrc
Last active August 29, 2015 14:07
Show Gist options
  • Save rafaellucio/55a93876a656149cf2cd to your computer and use it in GitHub Desktop.
Save rafaellucio/55a93876a656149cf2cd to your computer and use it in GitHub Desktop.
"......................................................................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 t_Co=256
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