Last active
December 7, 2016 06:29
-
-
Save rianby64/34a44e77d9f1d2f4264e838834979ea9 to your computer and use it in GitHub Desktop.
My Vim RC
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'othree/yajs.vim' | |
Plugin 'othree/html5.vim' | |
Plugin 'sheerun/vim-json' | |
Plugin 'nathanaelkane/vim-indent-guides' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
set smarttab | |
set expandtab | |
set number | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set pastetoggle=<F2> | |
set incsearch | |
set hlsearch | |
set title | |
set visualbell | |
set background=dark | |
let g:indent_guides_auto_colors = 0 | |
hi IndentGuidesOdd ctermbg=236 guifg=#303030 | |
hi IndentGuidesEven ctermbg=240 guifg=#585858 | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
match ExtraWhitespace /\s\+$/ | |
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ | |
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
autocmd InsertLeave * match ExtraWhitespace /\s\+$/ | |
autocmd BufWinLeave * call clearmatches() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment