From 0762c34c2bc4c48737926e77732ceeee2fd01ce3 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 26 Jan 2023 11:31:48 -0800 Subject: vim: add .vimrc --- dot_vimrc | 26 ++++++++++++++++++++++++++ dot_zshrc | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 dot_vimrc diff --git a/dot_vimrc b/dot_vimrc new file mode 100644 index 0000000..38cf2b0 --- /dev/null +++ b/dot_vimrc @@ -0,0 +1,26 @@ +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif + +""""""""""""""""""""""""""""""""" +" Vim-Plug +call plug#begin('~/.vim/plugged') + +" Syntax +Plug 'scrooloose/syntastic' + +" Theme +Plug 'tomasr/molokai' + +" Misc +Plug 'jiangmiao/auto-pairs' +Plug 'Yggdroot/indentLine' +Plug 'kien/rainbow_parentheses.vim' +Plug 'bronson/vim-trailing-whitespace' + +call plug#end() +""""""""""""""""""""""""""""""""" +set tabstop=4 + 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`" alias t="xfce4-terminal" alias chez="/usr/bin/chezmoi" alias xc="xclip -selection clip" +alias ledger="vim ~/Documents/code/Ledger/year/`date +%Y`/`date +%Y%m`.beancount" +alias vimrc="vim ~/.vimrc" eval "$(lua /home/clarkzjw/Documents/code/z.lua/z.lua --init zsh)" -- cgit v1.2.3