Skip to content

Instantly share code, notes, and snippets.

@josezambrana
Last active June 15, 2022 14:26
Show Gist options
  • Select an option

  • Save josezambrana/1360784 to your computer and use it in GitHub Desktop.

Select an option

Save josezambrana/1360784 to your computer and use it in GitHub Desktop.
my vim config
" Installation
" ---------------------------
" 1. `git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim`
" 2. Open vim and run :PluginInstall
" Bundle set up
" ---------------------------
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
" Plugins
" ---------------------------
call vundle#begin()
Plugin 'gmarik/vundle'
Plugin 'tpope/vim-sensible' " Defaults for vim
Plugin 'leafgarland/typescript-vim'
" TOP
Plugin 'tpope/vim-fugitive'
Plugin 'scrooloose/nerdtree' " Tree files view
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdcommenter'
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-surround'
Plugin 'bling/vim-airline'
Plugin 'airblade/vim-gitgutter'
Plugin 'godlygeek/tabular'
Plugin 'terryma/vim-multiple-cursors'
" Others
Plugin 'mbriggs/mark.vim'
Plugin 'mattn/webapi-vim'
Plugin 'mattn/gist-vim'
Plugin 'mattn/emmet-vim'
Plugin 'tpope/vim-markdown'
"Plugin 'qstrahl/vim-matchmaker'
Plugin 'rrethy/vim-illuminate'
Plugin 'django.vim'
Plugin 'othree/html5.vim'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'burnettk/vim-angular'
Plugin 'hashivim/vim-terraform'
" Color themes
Plugin 'morhetz/gruvbox'
Plugin 'altercation/vim-colors-solarized'
call vundle#end() " required
filetype plugin indent on " required
" Vim Conf
" ---------------------------
let mapleader = ","
let maplocalleader = ","
" Scheme
set background=dark
let g:gruvbox_contrast_dark='hard'
set t_Co=256
set encoding=utf8
colorscheme gruvbox
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set showmatch
set number
set lines=60
set columns=120
set colorcolumn=80
" Plugins Conf
" ---------------------------
map <F12> :NERDTreeToggle<CR>
let g:vim_markdown_folding_disabled=1
let NERDTreeIgnore = ['\.pyc$', '__pycache__']
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_javascript_checkers = ['jshint']
let g:syntastic_python_checkers=['flake8']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_html_tidy_ignore_errors = [
\ " proprietary attribute \"ng-",
\ '<html> attribute "lang" lacks value',
\ '<a> attribute "href" lacks value',
\ 'trimming empty <'
\ ]
" let g:matchmaker_enable_startup = 1
let g:matchmaker_ignore_single_match = 1
let g:matchmaker_matchpriority = 0
set foldmethod=indent
set foldnestmax=2
nnoremap <space> za
vnoremap <space> zf
set nofoldenable
set foldlevel=1
let g:Illuminate_delay = 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment