-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
104 lines (85 loc) · 2.22 KB
/
vimrc
File metadata and controls
104 lines (85 loc) · 2.22 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
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
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" plugins below here
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'rdnetto/YCM-Generator'
"Plugin 'scrooloose/nerdtree'
"Plugin 'jistr/vim-nerdtree-tabs'
" Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'nvie/vim-flake8'
Plugin 'jmcantrell/vim-virtualenv'
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
" Plugin 'kien/ctrlp.vim' "Super search
Plugin 'Lokaltog/powerline', {'trp': 'powerline/bindings/vim/'}
" Activate plugins
call vundle#end()
filetype plugin indent on
" set splitting
set splitbelow
set splitright
"split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" code folding
set foldmethod=indent
set foldlevel=99
" map folding to space
nnoremap <space> za
" folded docstring
let g:SimpylFold_docstring_preview=1
" Indent line configuration
let g:intentLine_char = '|'
let g:indentLine_setColors = 0
let python_highlight_all=1
syntax on
" Set up indentation
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
" \ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |
\ set colorcolumn=80
let g:ycm_python_binary_path = 'python'
au BufNewFile,BufRead *.cpp,*.h,*.c,*.hpp
\ set tabstop=2 |
\ set autoindent |
\ set shiftwidth=2 |
\ set expandtab |
\ set t_Co=256 |
\ set showmatch |
\ set colorcolumn=80
" Set encoding
set encoding=utf-8
" customization
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinition<CR>
" select the theme based on the modality
set background=dark
colorscheme solarized
call togglebg#map("<F5>")
"Enable line numbering
set nu
set statusline+=%F
set laststatus=2
" Nerdtree ignore files
" let NERDTreeIgnore=['\.pyc$', '\~$']
" Enable system clipboard
set clipboard=unnamed
" Activate nerdtree
" autocmd vimenter * NERDTree
" ESC as jj
imap jj <ESC>