Created
October 10, 2018 12:51
-
-
Save lucascebertin/e2d995ed8f60926de3b92f0e0a0bf237 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| " Instale ctags via chocolatey on Windows | |
| " choco install ctags | |
| if has("gui_running") | |
| set guioptions-=m "remove menu bar | |
| set guioptions-=T "remove toolbar | |
| set guioptions-=r "remove right-hand scroll bar | |
| set guioptions-=L "remove left-hand scroll bar | |
| " set guifont=Noto_Mono_for_Powerline:h11:cANSI | |
| set guifont=Fira_Code:h11:cANSI | |
| " set guifont=Inconsolata\ for\ Powerline:h15 | |
| set renderoptions=type:directx | |
| set encoding=utf8 | |
| nnoremap <C-F9> :browse confirm e<CR> | |
| endif | |
| if has("windows") | |
| set shell=C:\Windows\Sysnative\wsl.exe | |
| set shellpipe=| | |
| set shellredir=> | |
| set shellcmdflag= | |
| endif | |
| au GUIEnter * simalt ~x " ENTRA EM MODO TELA CHEIA | |
| filetype plugin on | |
| syntax on | |
| set rnu | |
| set clipboard=unnamed | |
| set number | |
| set tabstop=4 | |
| set ai | |
| set showcmd | |
| set cursorline | |
| set hlsearch | |
| set ignorecase | |
| set novisualbell | |
| set noerrorbells | |
| set showmatch | |
| set nobackup | |
| set nowritebackup | |
| set backspace=2 " make backspace work like most other apps | |
| set shiftwidth=4 | |
| set nowrap | |
| set tags=tags; | |
| set colorcolumn=80 | |
| set list | |
| set listchars=tab:>- " > is shown at the beginning, - throughout | |
| set expandtab | |
| set path+=** | |
| set wildmenu | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'junegunn/vim-plug' | |
| Plug 'kadekillary/Turtles' | |
| Plug 'tpope/vim-commentary' | |
| Plug 'tomasiser/vim-code-dark' | |
| Plug 'dracula/vim', { 'as': 'dracula' } | |
| Plug 'terryma/vim-multiple-cursors' | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' | |
| Plug 'kien/rainbow_parentheses.vim' | |
| Plug 'tpope/vim-surround' | |
| Plug 'cohama/lexima.vim' | |
| Plug 'vim-scripts/ZoomWin' | |
| Plug 'Chiel92/vim-autoformat' | |
| Plug 'junegunn/gv.vim' | |
| Plug 'wellle/targets.vim' | |
| Plug 'bkad/CamelCaseMotion' | |
| Plug 'Shougo/deoplete.nvim' | |
| Plug 'roxma/nvim-yarp' | |
| Plug 'roxma/vim-hug-neovim-rpc' | |
| Plug 'ludovicchabant/vim-gutentags' | |
| Plug 'jeetsukumaran/vim-buffergator' | |
| Plug 'Lokaltog/powerline' " Powerline fonts plugin | |
| call plug#end() | |
| colorscheme turtles | |
| imap jj <ESC> | |
| nnoremap <Leader>a :noh<CR> | |
| " VIM Airline | |
| set laststatus=2 | |
| "let g:airline_theme='jellybeans' | |
| let g:airline_theme='turtles' | |
| let g:airline#extensions#tabline#enabled = 1 | |
| let g:airline_powerline_fonts = 1 | |
| " CTRLP Config | |
| set runtimepath^=~/.vim/bundle/ctrlp.vim | |
| let g:ctrlp_map = '<c-p>' | |
| let g:ctrlp_cmd = 'CtrlP' | |
| let g:ctrlp_working_path_mode = 'c' | |
| nnoremap <leader>. :CtrlPTag<cr> | |
| " NERDTree | |
| nnoremap <Leader>n :NERDTreeToggle<CR> | |
| autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
| let g:NERDTreeDirArrowExpandable = '>' | |
| let g:NERDTreeDirArrowCollapsible = 'v' | |
| let NERDTreeShowHidden=1 | |
| let NERDTreeMapOpenInTab='<C-ENTER>' | |
| function! StartUp() | |
| if 0 == argc() | |
| NERDTree | |
| end | |
| endfunction | |
| function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg) | |
| exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg | |
| exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#' | |
| endfunction | |
| autocmd VimEnter * call StartUp() | |
| call NERDTreeHighlightFile('cs', 'green', 'none', 'green', '#151515') | |
| call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515') | |
| call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515') | |
| call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515') | |
| call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515') | |
| call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515') | |
| call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515') | |
| call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515') | |
| call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515') | |
| call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515') | |
| call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515') | |
| call NERDTreeHighlightFile('ts', 'Red', 'none', 'red', '#151515') | |
| call NERDTreeHighlightFile('js', 'Red', 'none', '#ffa500', '#151515') | |
| call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#151515') | |
| " Rainbow parenthesis | |
| au VimEnter * RainbowParenthesesToggle | |
| au Syntax * RainbowParenthesesLoadRound | |
| au Syntax * RainbowParenthesesLoadSquare | |
| au Syntax * RainbowParenthesesLoadBraces | |
| " CTags | |
| command! MakeTags !ctags -R . | |
| " Multiple Cursors | |
| let g:multi_cursor_use_default_mapping=0 | |
| let g:multi_cursor_start_word_key = '<C-n>' | |
| let g:multi_cursor_select_all_word_key = '<A-n>' | |
| let g:multi_cursor_start_key = 'g<C-n>' | |
| let g:multi_cursor_select_all_key = 'g<A-n>' | |
| let g:multi_cursor_next_key = '<C-n>' | |
| let g:multi_cursor_prev_key = '<C-p>' | |
| let g:multi_cursor_skip_key = '<C-x>' | |
| let g:multi_cursor_quit_key = '<Esc>' | |
| nnoremap <F12> :tag <c-r><c-w><cr> | |
| nnoremap <S-F12> :tn <cr> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment