-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
60 lines (50 loc) · 1.56 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
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-syntastic/syntastic'
Plugin 'kien/ctrlp.vim' " Ctrl+p
" All of your Plugins must be added before the following lind
call vundle#end() " required
filetype plugin indent on " required
" airline
let g:airline_theme='fruit_punch'
let g:airline_powerline_fonts = 0
let g:airline#extensions#tabline#enabled = 1
let g:airline_symbols_ascii = 1
let g:airline#extensions#ale#error_symbol = 'E:'
let g:airline#extensions#warning_symbol = 'W:'
" nerdtree
nmap <F1> :NERDTreeToggle<CR>
" python syntastic
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_python_checkers = ['pylint']
let g:syntastic_quiet_messages = { "type": "style" }
" personal
set number
set relativenumber
set tabstop=4
set shiftwidth=4
set encoding=utf-8
set autoindent
set expandtab
set showmatch
set clipboard=unnamed
let python_highlight_all=1
syntax on
" move among buffers with CTRL
map <C-L> :bnext<CR>
map <C-H> :bprev<CR>
vnoremap <silent> # :s/^/#/<cr>:noh<cr>
vnoremap <silent> -# :s/^#//<cr>:noh<cr>