Last active
June 8, 2017 01:19
-
-
Save vinicio/3bd17e36749d26fecb169659bb8be0ac 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
| call plug#begin('~/.vim/plugged') | |
| Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' } | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' | |
| Plug 'evanmiller/nginx-vim-syntax' | |
| Plug 'fatih/vim-go' | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'pangloss/vim-javascript' | |
| Plug 'mxw/vim-jsx' | |
| Plug 'tpope/vim-surround' | |
| Plug 'mustache/vim-mustache-handlebars' | |
| Plug 'editorconfig/editorconfig-vim' | |
| Plug 'ajh17/spacegray.vim' | |
| Plug 'godlygeek/tabular' | |
| Plug 'terryma/vim-multiple-cursors' | |
| Plug 'Valloric/YouCompleteMe' | |
| call plug#end() | |
| imap jj <esc> | |
| set wildignore=*.o,*~,*.pyc | |
| set number | |
| " Search | |
| set ignorecase | |
| set smartcase | |
| "set hlsearch " Highlight search | |
| set incsearch " Incremental search | |
| " => Text, tab and indent related | |
| set expandtab " Use spaces instead of tabs | |
| set smarttab | |
| set shiftwidth=4 | |
| set tabstop=4 | |
| set ai "Auto indent | |
| set si "Smart indent | |
| set clipboard=unnamedplus " System clipboard | |
| set bg=dark | |
| set guifont=Monaco | |
| set completeopt-=preview | |
| map <C-n> :NERDTreeToggle<CR> | |
| map <C-p> :FZF<CR> | |
| " Turn backup off, since most stuff is in SVN, git et.c anyway... | |
| set nobackup | |
| set nowb | |
| set noswapfile | |
| " Set syntax for specific files | |
| autocmd BufRead,BufNewFile Dockerfile set syntax=Dockerfile | |
| autocmd BufRead,BufNewFile *.jet.html set syntax=mustache | |
| autocmd BufRead,BufNewFile *.conf set syntax=nginx | |
| " airline | |
| set noshowmode | |
| set laststatus=2 | |
| "let g:airline_theme='base16_spacemacs' | |
| let g:airline_theme='base16_grayscale' | |
| " vim-go | |
| let g:go_fmt_command = "goimports" | |
| let g:go_highlight_functions = 1 | |
| let g:go_highlight_methods = 1 | |
| let g:go_highlight_fields = 1 | |
| let g:go_highlight_types = 1 | |
| let g:go_highlight_operators = 1 | |
| let g:go_highlight_build_constraints = 1 | |
| " YouCompleteMe | |
| let g:ycm_server_python_interpreter = '/usr/bin/python' | |
| " vim-jsx | |
| let g:jsx_ext_required = 0 | |
| " Colorscheme | |
| colorscheme spacegray | |
| let g:spacegray_underline_search = 1 | |
| let g:spacegray_italicize_comments = 1 | |
| " Tabular.vim | |
| nmap <Leader>a= :Tabularize /=<CR> | |
| vmap <Leader>a= :Tabularize /=<CR> | |
| nmap <Leader>a: :Tabularize /:\zs<CR> | |
| vmap <Leader>a: :Tabularize /:\zs<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment