-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
73 lines (63 loc) · 1.72 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
" highlight syntax
syntax on
" disable beep for error messages
set noerrorbells
" tabs
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent
set nu
" Disable line wrapping
set nowrap
" ignore case in search
set ignorecase
" override ignorecase option when searching if capital is typed
set smartcase
" disable vim swap files
set noswapfile
" no backup when overwritting files
set nobackup
" director for undo files
set undodir=~/.vim/undodir
" search feedback as you're typing
set incsearch
" highlight all results
set hlsearch
" relative line numbers
set relativenumber!
set number!
" disable left sign column bar
set signcolumn=no
" wildmenu suggestions in vim command mode
set wildmenu
set wildmode=longest:full,full
" set spell spelllang=en_us
" vimwiki prereqs
set nocompatible
filetype plugin on
" python pep8 index prereq
filetype indent on
" retrieve vimplug automatically
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'dylanaraps/wal.vim'
Plug 'christoomey/vim-tmux-navigator'
Plug 'vimwiki/vimwiki'
Plug 'tpope/vim-commentary'
Plug 'Vimjas/vim-python-pep8-indent'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
" vimwiki sync dir
let g:vimwiki_list = [{'path':'$HOME/vimwiki'}]
" Binds
let mapleader = "\<Space>"
nmap <leader>gd <Plug>(coc-definition)
nmap <leader>gr <Plug>(coc-references)
nnoremap <C-p> :GFiles<CR>
" chezmoi auto apply
autocmd BufWritePost ~/.local/share/chezmoi/* ! chezmoi apply --source-path %