-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
81 lines (73 loc) · 1.46 KB
/
vimrc
File metadata and controls
81 lines (73 loc) · 1.46 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
" Plug start
call plug#begin('~/.vim/plugged')
" Plugins
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'vim-airline/vim-airline'
Plug 'majutsushi/tagbar'
Plug 'nvie/vim-flake8'
" Plug end
call plug#end()
" Color scheme
set termguicolors
" Editor configs
syntax enable
set number
set ts=4
set autoindent
set si
set wrap
set shiftwidth=4
set showmatch
set mat=2
set showcmd
set incsearch
set hlsearch
set history=500
set wildmenu
set ignorecase
set smartcase
set lazyredraw
set magic
set noerrorbells
set novisualbell
set t_vb=
set tm=500
set nu
set laststatus=2
set showtabline=2
set noshowmode
set backspace=indent,eol,start
set splitbelow splitright
" Folding options
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
" Key mappings
map <M-Right> <c-w>l
map <M-Left> <c-w>h
map <M-Up> <c-w>k
map <M-Down> <c-w>j
imap <M-Right> <ESC><c-w>l
imap <M-Left> <ESC><c-w>h
imap <M-Up> <ESC><c-w>k
imap <M-Down> <ESC><c-w>j
map <F5> :NERDTreeToggle<CR>
nmap <F8> :TagbarToggle<CR>
" Python related configs
let python_highlight_all=1
set encoding=utf-8
" PEP 8
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |