-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
61 lines (51 loc) · 1.48 KB
/
vimrc
File metadata and controls
61 lines (51 loc) · 1.48 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
" Plugins:
call plug#begin('~/.vim/plugged')
Plug 'zchee/deoplete-jedi'
Plug 'w0rp/ale'
Plug 'pearofducks/ansible-vim'
Plug 'Konfekt/FastFold'
Plug 'posva/vim-vue'
Plug 'scrooloose/nerdtree'
Plug 'tmhedberg/SimpylFold'
Plug 'jacoborus/tender.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'mxw/vim-jsx'
Plug 'pangloss/vim-javascript'
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end()
" Filetypes:
" Python
"au BufRead *.py compiler nose
au FileType python set omnifunc=pythoncomplete#Complete
au FileType python setlocal expandtab shiftwidth=4 tabstop=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with
au BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
au FileType python set foldmethod=indent foldlevel=99
" Javascript
autocmd filetype javascript set sw=2 ts=2 expandtab
" Use deoplete.
let g:deoplete#enable_at_startup = 1
" UI config
set number
set cursorline
set showmatch
" Theme
syntax enable
colorscheme tender
" NERD tree setup
autocmd vimenter * NERDTree
let g:NERDTreeWinSize = 60
" 80 characters line
set colorcolumn=80
map <Leader>p :call InsertPDB()<CR>
function! InsertPDB()
let trace = expand("import pdb; pdb.set_trace()")
execute "normal o".trace
endfunction
" fuzzy finder
nnoremap <C-p> :FZF<cr>