-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
48 lines (38 loc) · 1.06 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
set encoding=utf-8
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'preservim/nerdtree'
Plugin 'airblade/vim-gitgutter'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'tpope/vim-fugitive'
Plugin 'altercation/vim-colors-solarized'
Plugin 'davidhalter/jedi-vim'
call vundle#end()
filetype plugin indent on
syntax on
" Start nerdtree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" 80 marker
highlight ColorColumn ctermbg=gray
set colorcolumn=80
" Enable line numbers
set number
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" Warp text
set linebreak
" Allow some mouse action
set mouse=nvi
" Fix colors in vim diff
hi DiffAdd ctermfg=LightGreen ctermbg=DarkGreen
hi DiffDelete ctermfg=LightRed ctermbg=Red
hi DiffText ctermfg=LightMagenta ctermbg=DarkMagenta
hi DiffChange ctermfg=None ctermbg=None