-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
115 lines (97 loc) · 2.57 KB
/
.vimrc
File metadata and controls
115 lines (97 loc) · 2.57 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'honza/vim-snippets'
Plugin 'tpope/vim-endwise'
Plugin 'morhetz/gruvbox'
Plugin 'tpope/vim-surround'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'raimondi/delimitmate'
Plugin 'tomtom/tcomment_vim'
call vundle#end()
filetype plugin indent on
set expandtab
set smarttab
set backspace=indent,eol,start
set tabstop=2
set shiftwidth=2
set softtabstop=2
set autoindent
set nowrap
" set list
set hlsearch
set scrolloff=2
set sidescrolloff=5
set display+=lastline
if &encoding ==# 'latin1' && has('gui_running')
set encoding=utf-8
endif
if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
set t_Co=16
endif
set nrformats-=octal
set statusline =
set statusline +=%m " modified flag
set statusline +=\ »
set statusline +=\ %f " Relative path to file
set statusline +=\ «
set statusline +=\ %h " [help]
set statusline +=%r " read only flag
set statusline +=%w " preview window flag
set statusline +=%y " filetype
set statusline +=%=%-14.(%l,%c%V%) " Line, column-virtual column"
set statusline +=\ %P]"
function! StatusGitBranch()
let b:s_git_branch_name = FugitiveHead()
if !empty(b:s_git_branch_name)
return " ← ".b:s_git_branch_name
else
return " "
endif
endfunction
set statusline +=%{StatusGitBranch()}
set autoread
set wildignore+=*.o,*.out,*.obj,.git,*.rbc,*.rbo,*.class,.svn,*.gem
set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz
set wildignore+=*/vendor/gems/*,*/vendor/cache/*,*/.bundle/*,*/.sass-cache/*
set wildignore+=*/tmp/librarian/*,*/.vagrant/*,*/.kitchen/*,*/vendor/cookbooks/*
set wildignore+=*/tmp/cache/assets/*/sprockets/*,*/tmp/cache/assets/*/sass/*
set wildignore+=*.swp,*~,._*
set ttyfast
set timeout timeoutlen=800 ttimeoutlen=50
set synmaxcol=300
set ttimeout
set splitbelow
set splitright
let mapleader = ','
let g:mapleader = ','
nnore <leader><CR> :noh<CR>
inoremap jj <ESC>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set mousehide
set ruler
set number
set laststatus=2
set wildmenu
set lazyredraw
set history=500
set ignorecase
set smartcase
set incsearch
set magic
set showmatch
set mat=2
syntax enable
set encoding=utf8
set ffs=unix,dos,mac
set nohlsearch
let g:gruvbox_italic=1
colorscheme gruvbox
set background=dark
let g:ctrlp_custom_ignore = '\v[\/](node_modules|target|dist)|(\.(swp|ico|git|svn|DS_Store))$'