-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
143 lines (107 loc) · 3.04 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
set nocompatible
filetype off
set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Always show line numbers
set number
"Deadly-Sin
set mouse=a
set t_Co=256
colorscheme mustang
set encoding=utf-8
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" The bundles you install will be listed here
filetype plugin indent on
" The rest of your config follows here
augroup vimrc_autocmds
autocmd!
" highlight characters past column 120
autocmd FileType python hi Normal guifg=White guibg=Black
autocmd FileType python match Normal /\%120v.*/
autocmd FileType python set nowrap
augroup END
"Powerline
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
" Powerline setup
set guifont=Ubuntu\ Mono\ for\ VimPowerline\ 11.5
set laststatus=2
"Fugitive
Bundle 'tpope/vim-fugitive'
"NerdTree
Bundle 'scrooloose/nerdtree'
"Python-mode
Bundle 'klen/python-mode'
"Jedi-vim
Bundle 'davidhalter/jedi-vim'
"Color-scheme
Bundle 'flazz/vim-colorschemes'
"YouCompleteMe
Bundle 'Valloric/YouCompleteMe'
"Indent-guide
"Bundle 'Yggdroot/indentLine'
"Scala
Bundle 'derekwyatt/vim-scala'
"Scala sbt
Bundle 'ktvoelker/sbt-vim'
"Javascript syntax
Plugin 'jelera/vim-javascript-syntax'
Plugin 'pangloss/vim-javascript'
Plugin 'Raimondi/delimitMate'
Plugin 'marijnh/tern_for_vim'
" Python-mode
" Activate rope
" Keys:
" K Show python docs
" <Ctrl-Space> Rope autocomplete
" <Ctrl-c>g Rope goto definition
" <Ctrl-c>d Rope show documentation
" <Ctrl-c>f Rope find occurrences
" <Leader>b Set, unset breakpoint (g:pymode_breakpoint enabled)
" [[ Jump on previous class or function (normal, visual, operator modes)
" ]] Jump on next class or function (normal, visual, operator modes)
" [M Jump on previous class or method (normal, visual, operator modes)
" ]M Jump on next class or method (normal, visual, operator modes)
map <F2> :NERDTreeToggle<CR>
let g:pymode_rope = 0
" Documentation
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'
"Linting
let g:pymode_lint = 1
let g:pymode_lint_checker = "pyflakes,pep8"
" Auto check on save
let g:pymode_lint_write = 1
" Support virtualenv
let g:pymode_virtualenv = 1
" Enable breakpoints plugin
let g:pymode_breakpoint = 1
let g:pymode_breakpoint_key = '<leader>b'
" syntax highlighting
let g:pymode_syntax = 1
let g:pymode_syntax_all = 1
let g:pymode_syntax_indent_errors = g:pymode_syntax_all
"let g:pymode_syntax_space_errors = g:pymode_syntax_all
let g:pymode_options_colorcolumn = 0
" Don't autofold code
let g:pymode_folding = 0
"Powerline
let g:Powerline_symbols = 'fancy'
"IndentLine char
"let g:indentLine_char = ''
" Use <leader>l to toggle display of whitespace
nmap <leader>l :set list!<CR>
" automatically change window's cwd to file's dir
set autochdir
" I prefer spaces to tabs
set tabstop=4
set shiftwidth=4
set expandtab
" more subtle popup colors
if has ('gui_running')
highlight Pmenu guibg=#cccccc gui=bold
endif