diff --git a/.vim/startup/vundle_vimrc b/.vim/startup/vundle_vimrc index 0efabee..2dd934e 100644 --- a/.vim/startup/vundle_vimrc +++ b/.vim/startup/vundle_vimrc @@ -35,7 +35,7 @@ Plug 'scrooloose/nerdcommenter' " 目录树美化 " Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'davidhalter/jedi-vim' -Plug 'ervandew/supertab' +" Plug 'ervandew/supertab' Plug 'Raimondi/delimitMate' Plug 'tomasr/molokai' Plug 'terryma/vim-multiple-cursors' @@ -50,28 +50,28 @@ Plug 'WolfgangMehner/vim-plugins' " plugin from http://vim-scripts.org/vim/scripts.html Plug 'vim-scripts/L9' -Plug 'vim-scripts/perl-support.vim' Plug 'christoomey/vim-tmux-navigator' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' " syntax highlight for Dockerfile -Plug 'ekalinin/Dockerfile.vim' +" Plug 'ekalinin/Dockerfile.vim' Plug 'hotoo/pangu.vim' -Plug 'chr4/nginx.vim' +" Plug 'chr4/nginx.vim' Plug 'mileszs/ack.vim' " Plug 'jlanzarotta/bufexplorer' -Plug 'mikelue/vim-maven-plugin' +" Plug 'mikelue/vim-maven-plugin' " Plug 'w0rp/ale' Plug 'mattn/emmet-vim', { 'for': ['html', 'javascript'] } Plug 'MarcWeber/vim-addon-mw-utils' Plug 'tomtom/tlib_vim' -Plug 'garbas/vim-snipmate' +" Plug 'garbas/vim-snipmate' Plug 'ntpeters/vim-better-whitespace' Plug '907th/vim-auto-save' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': '.install -all'} Plug 'junegunn/fzf.vim' Plug 'Valloric/YouCompleteMe', { 'do': 'python3 install.py --all' } +Plug 'nathangrigg/vim-beancount' " Git plugin not hosted on GitHub Plug 'git://git.wincent.com/command-t.git' @@ -242,3 +242,12 @@ let g:NERDTreePatternMatchHighlightColor['.*_spec\.rb$'] = s:rspec_red " sets th let g:WebDevIconsDefaultFolderSymbolColor = s:beige " sets the color for folders that did not match any rule let g:WebDevIconsDefaultFileSymbolColor = s:blue " sets the color for files that did not match any rule +" beancount +filetype plugin on +set omnifunc=syntaxcomplete#Complete +let g:beancount_root = "~/Sync/beancount/main.bean" +let g:beancount_account_completion = 'chunks' +let g:beancount_detailed_first = 1 +autocmd FileType bean inoremap . .:AlignCommodity +autocmd FileType bean inoremap + diff --git a/Brewfile b/Brewfile index 1f06afe..e5b07ff 100644 --- a/Brewfile +++ b/Brewfile @@ -59,13 +59,13 @@ brew "jq" # brew "ruby" # brew "go" # brew "postgresql" -brew "youtube-dl" # brew "heroku" # brew "node" # brew "yarn" # brew "wrk" -if ENV.key? 'CI_MODE' cask "alfred" +if ENV.key? 'CI_MODE' +cask "alfred" cask "appcleaner" cask "bartender" cask "calibre" @@ -99,7 +99,7 @@ cask "obs" cask "obsidian" # cask "dropbox" cask "postman" -cask "qmk-toolbox" +# cask "qmk-toolbox" cask "upic" cask "via" cask "vlc" diff --git a/zsh/alias.zsh b/zsh/alias.zsh index f1eb708..fb789a7 100644 --- a/zsh/alias.zsh +++ b/zsh/alias.zsh @@ -31,3 +31,4 @@ alias proxy_http='export all_proxy=http://127.0.0.1:1081' if [[ -f ~/.ssh/assh.yml ]]; then alias ssh="assh wrapper ssh --" fi + diff --git a/zsh/env.zsh b/zsh/env.zsh index 3826609..35e1b68 100644 --- a/zsh/env.zsh +++ b/zsh/env.zsh @@ -151,3 +151,7 @@ if [[ -d $HOME/.asdf/installs/rust/1.51.0/bin ]]; then fi export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" + +if [[ -d $HOME/Sync/beancount ]]; then + export BEANCOUNT_ROOT=$HOME/Sync/beancount +fi