-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
189 lines (146 loc) · 3.79 KB
/
Copy pathvimrc
File metadata and controls
189 lines (146 loc) · 3.79 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Vundle package
Plugin 'gmarik/vundle'
" Ack
Plugin 'mileszs/ack.vim'
" Close tags
Plugin 'docunext/closetag.vim'
" Command-T
Plugin 'wincent/Command-T.git'
" DelimitMate
Plugin 'Raimondi/delimitMate'
" Fugitive
Plugin 'tpope/vim-fugitive'
" Vim-git
Plugin 'tpope/vim-git'
" Gundo
Plugin 'sjl/gundo.vim'
" Jedi-vim
Plugin 'davidhalter/jedi-vim'
" Makegreen
Plugin 'reinh/vim-makegreen'
" Minibufexpl
Plugin 'fholgado/minibufexpl.vim'
" pep8
Plugin 'vim-scripts/pep8'
" Surround
Plugin 'tpope/vim-surround'
" TagBar
Plugin 'majutsushi/tagbar'
" Tasklist
Plugin 'vim-scripts/TaskList.vim'
" ultisnips
Plugin 'SirVer/ultisnips'
" Vim-jinja
Plugin 'mitsuhiko/vim-jinja'
" vim-solarized
Plugin 'altercation/vim-colors-solarized'
" Jellybeans
Plugin 'nanotech/jellybeans.vim'
" vim-airline
Plugin 'bling/vim-airline'
" supertab
Plugin 'ervandew/supertab'
" Youcompleteme
Plugin 'Valloric/YouCompleteMe'
" Syntaxtic
Plugin 'scrooloose/syntastic'
" PyFlakes
Plugin 'kevinw/pyflakes-vim'
" Plugins scala related
Plugin 'derekwyatt/vim-scala'
Plugin 'ktvoelker/sbt-vim'
Plugin 'mpollmeier/vim-scalaConceal'
Plugin 'gre/play2vim'
Plugin 'fatih/vim-go'
Plugin 'StanAngeloff/php.vim'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'gorodinskiy/vim-coloresque'
Plugin 'hail2u/vim-css3-syntax'
" 256 Colors
set t_Co=256
" colorscheme jellybeans
syntax enable
set background=dark
let g:solarized_termcolors=256
let g:solarized_termtrans = 1
colorscheme solarized
set hidden
set foldmethod=indent
set foldnestmax=10
set nofoldenable
set foldlevel=1
set ruler
set tabstop=4
set shiftwidth=4
set expandtab
set nu
filetype indent on
filetype on
filetype plugin on
au FileType py set autoindent
au FileType py set smartindent
au FileType py set textwidth=79
noremap <leader>v <Plug>TaskList
let g:pep8_map='<leader>8'
let g:pyflakes_use_quickfix = 0
set laststatus=2
let mapleader=','
let maplocalleader='\\'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
let g:airline_theme = 'solarized'
let g:airline_powerline_fonts = 1
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
"
" " better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
let g:scala_sort_across_groups=1
" let g:php_syntax_extensions_enabled
" let b:php_syntax_extensions_enabled
noremap <leader>a :Ack
noremap <leader>A :AckFromSearch<CR>
noremap <leader>u :GundoToggle<CR>
" Split management
nnoremap <leader>w <C-w>v<C-w>l
nnoremap <leader>W <C-w>s
" " nnoremap <leader>Th :set ft=htmljinja<CR>
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>
nnoremap <leader>s :new<CR>
nnoremap <leader>q :q<CR>
set enc=utf-8
nnoremap <leader><space> :nohlsearch<cr>
set pastetoggle=<F2>
"
" Window size management {
nnoremap <silent> + :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <silent> - :exe "resize " . (winheight(0) * 2/3)<CR>
nnoremap <silent> . :exe "vertical resize +20"<CR>
nnoremap <silent> m :exe "vertical resize -20"<CR>
nnoremap <silent> > :exe "resize +10"<CR>
nnoremap <silent> < :exe "resize -10"<CR>
" quicker window switching
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" Put at the very end of your .vimrc file.
"
function! PhpSyntaxOverride()
hi! def link phpDocTags phpDefine
hi! def link phpDocParam phpType
endfunction
augroup phpSyntaxOverride
autocmd!
autocmd FileType php call PhpSyntaxOverride()
augroup END