-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_vimrc
58 lines (45 loc) · 1.36 KB
/
dot_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
set hidden
set nocp
set showcmd
set relativenumber number
inoremap <expr> <Tab> coc#pum#visible() ? coc#_select_confirm() : "\<C-g>u\<Tab>"
nnoremap <Leader>b :ls<CR>:b<Space>
syntax on
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'junegunn/fzf.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'vim-airline/vim-airline'
Plug 'christoomey/vim-tmux-navigator'
Plug 'vim-scripts/indentpython.vim'
Plug 'sonph/onehalf', { 'rtp': 'vim' }
Plug 'Vimjas/vim-python-pep8-indent'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'psf/black', { 'branch': 'stable' }
Plug 'vim-autoformat/vim-autoformat'
call plug#end()
if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
set t_Co=256
let g:airline_theme = 'onehalfdark'
colorscheme onehalfdark
nnoremap <silent> <C-f> :Files<CR>
nnoremap <silent> <Leader>f :Rg<CR>
set grepprg=rg\ --vimgrep\ --smart-case\ --follow
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
inoremap <C-e> <ESC>A
au BufNewFile,BufRead *.py
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
let g:autoformat_autoindent = 0
au BufWrite *.py :Autoformat
autocmd BufWritePost ~/.local/share/chezmoi/* ! chezmoi apply --source-path "%"