-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
71 lines (50 loc) · 1.63 KB
/
Copy pathvimrc
File metadata and controls
71 lines (50 loc) · 1.63 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
" enable syntax highlighting
syntax enable
" show line numbers
set number
" set tabs to have 4 spaces
set ts=4
" indent when moving to the next line while writing code
set autoindent
" expand tabs into spaces
set expandtab
" when using the >> or << commands, shift lines by 4 spaces
set shiftwidth=4
" show a visual line under the cursor's current line
set cursorline
" show the matching part of the pair for [] {} and ()
set showmatch
" enable all Python syntax highlighting features
let python_highlight_all = 1
" Pathogen load
filetype off
call pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
syntax on
set foldmethod=indent
set foldlevel=99
" Override go-to.definition key shortcut to Ctrl-Shift-g
let g:pymode_rope_goto_definition_bind = "<C-S-G>"
" Override run current python file key shortcut to Ctrl-Shift-e
let g:pymode_run_bind = "<C-S-E>"
" Override view python doc key shortcut to Ctrl-Shift-d
let g:pymode_doc_bind = "<C-S-D>"
set wildmode=longest,list,full
set wildmenu
set background=dark
" solarized options
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
let g:solarized_termcolors=16
colorscheme solarized
" Set a colored column at 120
autocmd FileType python set colorcolumn=120
" highlight non-ascii character
syntax match nonascii "[^\x00-\x7F]"
highlight nonascii guibg=Red ctermbg=6*
" configure the warning in python for lines longer than 120 columns
let g:pymode_lint_options_pep8 = {'max_line_length': 120}
" Complete keywords from not imported modules (could make completion slower)
" Enable autoimport used modules
" call pymode#default('g:pymode_rope_autoimport', 0)