Last active
October 19, 2015 08:22
-
-
Save jvmsangkal/7e06c45e1a73523af295 to your computer and use it in GitHub Desktop.
Vim configuration
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
execute pathogen#infect('~/.vim/bundle/{}') | |
filetype plugin indent on | |
syntax on | |
set background=dark | |
colorscheme jellybeans | |
set ruler | |
set number | |
set mouse=a | |
set colorcolumn=80,100,120 | |
set autoread | |
set ttyfast | |
set encoding=utf8 | |
set wildmenu | |
set foldenable | |
set foldmethod=indent | |
set foldlevelstart=99 | |
set foldnestmax=10 | |
set ignorecase | |
set smartcase | |
set splitbelow | |
set showcmd | |
set nowrap | |
set fileformats=unix,dos,mac | |
set clipboard=unnamed | |
set scrolljump=5 | |
set wrap | |
set incsearch | |
set hlsearch | |
set linebreak | |
set nohidden | |
let g:indent_guides_start_level = 2 | |
let g:indent_guides_guide_size = 1 | |
set showmode | |
set undolevels=1000 | |
set history=1000 | |
set shell=/bin/zsh | |
set smarttab | |
set autoindent | |
highlight ExtraWhitespace ctermbg=red | |
autocmd BufWritePre * StripWhitespace | |
" Ignore case when searching | |
set ignorecase | |
" When searching try to be smart about cases | |
set smartcase | |
" Highlight search results | |
set hlsearch | |
" Makes search act like search in modern browsers | |
set incsearch | |
" Don't redraw while executing macros (good performance config) | |
set lazyredraw | |
" For regular expressions turn magic on | |
set magic | |
" Show matching brackets when text indicator is over them | |
set showmatch | |
" How many tenths of a second to blink when matching brackets | |
set mat=2 | |
" show existing tab with 4 spaces width | |
set tabstop=4 | |
set softtabstop=4 | |
" when indenting with '>', use 4 spaces width | |
set shiftwidth=4 | |
" On pressing tab, insert 4 spaces | |
set expandtab | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
map <C-n> :NERDTreeToggle<CR> | |
let g:NERDTreeDirArrows = 1 | |
let g:NERDTreeDirArrowExpandable = '▸' | |
let g:NERDTreeDirArrowCollapsible = '▾' | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_methods = 1 | |
let g:go_highlight_structs = 1 | |
let g:go_highlight_operators = 1 | |
let g:go_highlight_build_constraints = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment