-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hamu~
executable file
·175 lines (138 loc) · 4.35 KB
/
.hamu~
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
"Molokai theme
let g:pymode_rope = 0
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" The bundles you install will be listed here
Bundle 'klen/python-mode'
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Bundle 'scrooloose/nerdtree'
Bundle 'tpope/vim-fugitive'
Bundle 'kien/ctrlp.vim'
Bundle 'vimux'
Bundle 'tpope/vim-commentary'
Bundle 'jedi-vim'
Bundle 'tomasr/molokai'
"Bundle 'bling/vim-airline'
Bundle 'msanders/snipmate.vim'
Bundle 'SirVer/ultisnips'
"Bundle 'honza/vim-snippets'
"Bundle 'musicbox.vim'
Bundle 'bling/vim-airline'
Bundle 'flazz/vim-colorschemes'
Bundle 'majutsushi/tagbar'
Bundle 'tpope/vim-surround'
Bundle 'garbas/vim-snipmate'
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'honza/vim-snippets'
"Bundle 'scrooloose/syntastic' " Syntax checking Bundle for Vim
"Bundle 'tpope/vim-commentary' " Comment stuff out
"Bundle 'mitsuhiko/vim-sparkup' " Sparkup(XML/jinja/htlm-django/etc.) support
"Bundle 'Rykka/riv.vim' " ReStructuredText Bundle
"-------------------=== Python ===-----------------------------
"Bundle 'klen/python-mode' " Python mode (docs, refactor, lints...)
"Bundle 'davidhalter/jedi-vim' " Jedi-vim autocomplete Bundle
"Bundle 'mitsuhiko/vim-jinja' " Jinja support for vim
"Bundle 'mitsuhiko/vim-python-combined' " Combined Python 2/3 for Vim
"Bundle 'hynek/vim-python-pep8-indent' " PEP8 indent
"Bundle 'jmcantrell/vim-virtualenv' " Virtualenv support in VIM
filetype on
filetype plugin on
set ttyfast " terminal acceleration
nmap <F9> :bprev<CR>
nmap <F10> :bnext<CR>
"=====================================================
"" TagBar settings
"=====================================================
let g:tagbar_autofocus=0
let g:tagbar_width=42
autocmd BufEnter *.py :call tagbar#autoopen(0)
autocmd BufWinLeave *.py :TagbarClose
"filetype Bundle indent on
" The rest of your config follows here
map <F2> :NERDTreeToggle<CR>
" Powerline setup
set guifont=DejaVu\ Sans\ Mono\
set laststatus=2
" Documentation
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'
set term=xterm-256color
let g:pymode_lint_checkers = ["pep8","pyflakes"]
set noswapfile
set nowritebackup
set nobackup
"fancier colors
if has ('gui_running')
highlight Pmenu guibg=#cccccc gui=bold
endif
" Don't autofold code
let g:pymode_folding = 0
" Documentation
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'
" show line numbers
set number
" Change leader to a comma because the backslash is too far away
" That means all \x commands turn into ,x
" The mapleader has to be set before vundle starts loading all
" the Bundles.
let mapleader=","
"isier moving of code blocks
" Try to go into visual mode (v), thenselect several lines of code here and
" then press ``>`` several times.
vnoremap < <gv " better indentation
vnoremap > >gv " better indentation
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc
nnoremap <Leader>l :call NumberToggle()<cr>
:au FocusLost * set number
:au FocusGained * set relativenumber
autocmd InsertEnter * set number
autocmd InsertLeave * set relativenumber
set relativenumber
" center the cursor vertically
:nnoremap <Leader>zz :let &scrolloff=999-&scrolloff<CR>
" Settings for jedi-vim
" =====================
let g:jedi#usages_command = "<leader>n"
let g:jedi#popup_on_dot = 1
let g:jedi#popup_select_first = 0
map <Leader>b Oimport ipdb; ipdb.set_trace() # BREAKPOINT<C-c>
let g:airline_powerline_fonts=1
if !exists('g:airline_symbols')
let g:airline_symbols={}
endif
let g:airline_theme='dark'
let g:airline#extensions#tabline#enabled=1
set t_Co=256
set linespace=0
set encoding=utf-8
colorscheme wombat256
" Auto check on save
let g:pymode_lint_write = 1
" Support virtualenv
let g:pymode_virtualenv = 1
" Enable breakpoints Bundle
let g:pymode_breakpoint = 1
let g:pymode_breakpoint_bind = '<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
" Don't autofold code
let g:pymode_folding = 0
" Documentation
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'