-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
157 lines (111 loc) · 3.89 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
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
" get out of horrible vi-compatible mode
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'vim-scripts/indentpython.vim'
Bundle 'Valloric/YouCompleteMe'
Plugin 'nvie/vim-flake8'
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'tomasr/molokai'
Plugin 'scrooloose/syntastic'
Plugin 'mfukar/robotframework-vim'
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Proper PEP8 indentation
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |
" For full stack development
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |
set encoding=utf-8
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
" Invoke ctrlp with opentas_ft as starting directory
let g:ctrlp_cmd = 'CtrlPCurWD'
" Search in regexp (not fuzzy) mode by default (can be toggled with <c-r>)
let g:ctrlp_regexp = 1
let python_highlight_all=1
"set wrapmargin=120
set laststatus=2
" 256 color mode
set t_Co=256
" Zenburn colorscheme
"colorscheme zenburn
" Molokai colorscheme settings
"let g:rehash256 = 1
"let g:molokai_original = 1
colorscheme molokai
" Solarized colorscheme. Remember to set solarized colorscheme in Konsole too
" colorscheme solarized
syntax on
set wildmode=longest,list
"autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd BufRead,BufNewFile *.robot set filetype=robot
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" none of these should be word dividers, so make them not be
set iskeyword+=_,$,@,%,#,-
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim UI
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" command-line completion operates in an enhanced mode
set wildmenu
" Show the line and column number of the cursor position
set ruler
" Print the line number in front of each line
set number
" do not redraw while running macros (much faster) (LazyRedraw)
set lazyredraw
" use mouse everywhere
set mouse=a
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Visual Cues
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" show matching brackets for a moment
set showmatch
" how many tenths of a second to blink matching brackets for
set matchtime=5
" do not highlight searched phrases
set nohlsearch
" but do highlight as you type you search phrase
set incsearch
" When nonempty, this option determines the content of the status line
set statusline=%{fugitive#statusline()}\ %F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
" Syntastic recommended settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_loc_list_height = 5
" always show the status line
set laststatus=2
" Show the cursor
set cursorline
set cursorcolumn
set ignorecase
" Custom bindings
"nnoremap <silent> <F8> :TlistOpen<CR>
nnoremap <silent> <F9> :Gblame<CR>
nnoremap gp :tabp<CR>