aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-26 11:31:48 -0800
committerclarkzjw <[email protected]>2023-01-26 11:31:48 -0800
commit0762c34c2bc4c48737926e77732ceeee2fd01ce3 (patch)
tree65c1525649bb6fc357e72415e419c5a03e34ca43
parent988ac8f9cced74176695ab7ea04b0f6105c5d492 (diff)
downloaddotfiles-0762c34c2bc4c48737926e77732ceeee2fd01ce3.tar.gz
vim: add .vimrc
-rw-r--r--dot_vimrc26
-rw-r--r--dot_zshrc2
2 files changed, 28 insertions, 0 deletions
diff --git a/dot_vimrc b/dot_vimrc
new file mode 100644
index 0000000..38cf2b0
--- /dev/null
+++ b/dot_vimrc
@@ -0,0 +1,26 @@
1let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
2if empty(glob(data_dir . '/autoload/plug.vim'))
3 silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
4 autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
5endif
6
7"""""""""""""""""""""""""""""""""
8" Vim-Plug
9call plug#begin('~/.vim/plugged')
10
11" Syntax
12Plug 'scrooloose/syntastic'
13
14" Theme
15Plug 'tomasr/molokai'
16
17" Misc
18Plug 'jiangmiao/auto-pairs'
19Plug 'Yggdroot/indentLine'
20Plug 'kien/rainbow_parentheses.vim'
21Plug 'bronson/vim-trailing-whitespace'
22
23call plug#end()
24"""""""""""""""""""""""""""""""""
25set tabstop=4
26
diff --git a/dot_zshrc b/dot_zshrc
index c1d50a2..17758f0 100644
--- a/dot_zshrc
+++ b/dot_zshrc
@@ -140,5 +140,7 @@ alias m="make -j`nproc --all`"
140alias t="xfce4-terminal" 140alias t="xfce4-terminal"
141alias chez="/usr/bin/chezmoi" 141alias chez="/usr/bin/chezmoi"
142alias xc="xclip -selection clip" 142alias xc="xclip -selection clip"
143alias ledger="vim ~/Documents/code/Ledger/year/`date +%Y`/`date +%Y%m`.beancount"
144alias vimrc="vim ~/.vimrc"
143 145
144eval "$(lua /home/clarkzjw/Documents/code/z.lua/z.lua --init zsh)" 146eval "$(lua /home/clarkzjw/Documents/code/z.lua/z.lua --init zsh)"
Powered by cgit v1.2.3 (git 2.41.0)