Last active
September 4, 2016 04:34
-
-
Save robertov8/e6d60039bf7e4a85ff4e6d89a986b010 to your computer and use it in GitHub Desktop.
Configuração do VIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" http://goo.gl/id0yhJ | |
"Configure Vundle | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" Let Vundle manage itself | |
Plugin 'VundleVim/Vundle.vim' | |
" Plugins | |
Plugin 'majutsushi/tagbar' | |
Plugin 'jszakmeister/markdown2ctags' "auxiliar markdown | |
Plugin 'vim-airline/vim-airline' " Linha Flutuante | |
Plugin 'plasticboy/vim-markdown' " Markdown | |
Plugin 'suan/vim-instant-markdown' "Preview Markdown | |
Plugin 'scrooloose/nerdtree' "Explorer | |
Plugin 'jistr/vim-nerdtree-tabs' "Explorer Tabs | |
Plugin 'mzlogin/vim-markdown-toc' "Create Table of Contents Markdown | |
Plugin 'mateusbraga/vim-spell-pt-br' "Corretor ortografico | |
Plugin 'rhysd/wandbox-vim' " Console para executar codigo | |
" Color schemes | |
Plugin 'tomasr/molokai' | |
Plugin 'NLKNguyen/papercolor-theme' | |
" Required, plugins avaiable after | |
call vundle#end() | |
filetype plugin indent on | |
"------------------------------------------------------------------------------ | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => VIM user interface | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
syntax enable | |
set number | |
set cursorline | |
set wildmenu | |
set tabstop=4 | |
set shiftwidth=4 | |
"set softtabstop=4 | |
"set expandtab | |
set colorcolumn=110 | |
highlight ColorColumn ctermbg=darkgray | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Text, Tab and indent related | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set listchars+=eol:¬ | |
set listchars+=tab:→· | |
set listchars+=trail:~ | |
set listchars+=extends:> | |
set listchars+=precedes:< | |
set listchars+=space:· | |
set list | |
" Config themes | |
set t_Co=256 | |
set background=dark | |
colorscheme PaperColor | |
" Linha flutuante | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#left_sep = ' ' | |
let g:airline#extensions#tabline#left_alt_sep = '|' | |
" Atalhos | |
" Tagbar keybinding to F8 | |
nmap <F3> :TagbarToggle<CR> | |
map <F2> :NERDTreeToggle<CR> | |
map <Tab> :bp<CR> | |
map <F8> :set spell<CR> | |
map <F9> :set nospell<CR> | |
" map <C-w> :w<CR> | |
" Corretor ortografico | |
"spell | |
set spelllang=pt_br | |
" Outros | |
" Add support for markdown files in tagbar. | |
let g:tagbar_type_markdown = { | |
\'ctagstype': 'markdown', | |
\ 'ctagsbin' : '~/.vim/bundle/markdown2ctags/markdown2ctags.py', | |
\ 'ctagsargs' : '-f - --sort=yes', | |
\ 'kinds' : [ | |
\ 's:sections', | |
\ 'i:images' | |
\ ], | |
\ 'sro' : '|', | |
\ 'kind2scope' : { | |
\ 's' : 'section', | |
\ }, | |
\ 'sort': 0, | |
\ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment