-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·110 lines (89 loc) · 2.98 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
set mouse=a
set expandtab
set textwidth=79
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set background=dark
set modeline
set foldmethod=indent
set foldlevel=99
set colorcolumn=79
set number
call pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
filetype on
syntax on
runtime macros/matchit.vim
nnoremap <leader>v <Plug>TaskList
map <leader>td <Plug>TaskList
map <leader>g :GundoToggle<CR>
let g:pep8_map='<leader>8'
au FileType python set omnifunc=pythoncomplete#Complete
let g:SuperTabDefaultCompletionType = "context"
map <leader>j :RopeGotoDefinition<CR>
map <leader>r :RopeRename<CR>
nmap <leader>a <Esc>:Ack!
"%{fugitive#statusline()}
" Powerline settings
map <leader>dt :set makeprg=python\ manage.py\ test\|:call MakeGreen()<CR>
set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (only if your terminal supports it)
set t_Co=256
let g:gitgutter_enabled=1
if exists('&signcolumn') " VIM 7.4.2201
set signcolumn=yes
else
let g:gitgutter_sign_volumn_always = 1
endif
set showcmd
set runtimepath^=~/.vim/bundle/ctrlp.vim
" ropevim settings
" https://github.com/python-rope/ropevim
" let ropevim_vim_completion=1
let g:rbpt_colorpairs = [
\ ['brown', 'RoyalBlue3'],
\ ['Darkblue', 'SeaGreen3'],
\ ['darkgray', 'DarkOrchid3'],
\ ['darkgreen', 'firebrick3'],
\ ['darkcyan', 'RoyalBlue3'],
\ ['darkred', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['brown', 'firebrick3'],
\ ['gray', 'RoyalBlue3'],
\ ['black', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['Darkblue', 'firebrick3'],
\ ['darkgreen', 'RoyalBlue3'],
\ ['darkcyan', 'SeaGreen3'],
\ ['darkred', 'DarkOrchid3'],
\ ['red', 'firebrick3'],
\ ]
au VimEnter * RainbowParenthesesToggle
let g:pymode_rope_regenerate_on_write = 0
"autopep8
let g:autopep8_disable_show_diff=1
let g:autopep8_ignore=""
let g:autopep8_max_line_length=79
if has("user_commands")
command! -bang -nargs=? -complete=file E e<bang> <args>
command! -bang -nargs=? -complete=file W w<bang> <args>
command! -bang -nargs=? -complete=file Wq wq<bang> <args>
command! -bang -nargs=? -complete=file WQ wq<bang> <args>
command! -bang Wa wa<bang>
command! -bang WA wa<bang>
command! -bang Q q<bang>
command! -bang QA qa<bang>
command! -bang Qa qa<bang>
endif
if &shell =~# 'fish$'
set shell=sh
endif
autocmd BufEnter /hammer/ set et | let g:syntastic_python_checkers=["flake8"] | let g:syntastic_python_pyflakes_exec="pyflakes3" | let g:syntastic_python_flake8_exec="python3" | let g:syntastic_python_flake8_args=["-m", "flake8", "--max-line-length=120", "--ignore=E402,E741"]
autocmd BufEnter /cinder/ let g:syntastic_python_checkers=['flake8'] | let g:syntastic_python_flake8_exec='.tox/pep8/bin/flake8'
au BufNewFile,BufRead .xonshrc set filetype=python
au BufNewFile,BufRead *.xsh set filetype=python