-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
48 lines (39 loc) · 1.28 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
set nocompatible
if has('nvim')
if empty(glob("$XDG_DATA_HOME/nvim/site/autoload/plug.vim"))
silent !curl -fLo "$XDG_DATA_HOME/nvim/site/autoload/plug.vim" --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | UpdateRemotePlugins
endif
call plug#begin("$XDG_DATA_HOME/nvim/plugged")
else
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
call plug#begin('~/.vim/plugged')
endif
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-vinegar'
" IDE
Plug 'airblade/vim-gitgutter' " Show git status in gutter
Plug 'vim-scripts/bufkill.vim', {'on': 'BD'} " Kill buffer but not window
Plug 'tpope/vim-fugitive'
Plug '[email protected]:github/copilot.vim.git'
Plug 'ledger/vim-ledger'
Plug 'hashivim/vim-terraform'
call plug#end()
set ignorecase
set smartcase
set number
" tabs
set tabstop=4
set shiftwidth=4
set expandtab
set listchars=tab:>·,trail:~,extends:>,precedes:<,space:·
set list
" ledger
au FileType ledger noremap { ?^\d<CR>
au FileType ledger noremap } /^\d<CR>
let g:ledger_align_at = 58