diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-03-08 02:45:50 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-03-08 03:20:01 -0500 |
commit | 568feb1c2d4450dc7556d01b32e33067d289e540 (patch) | |
tree | 2e75f953bc96322e4fdc6f663bbaf3602a292717 /zshrc | |
parent | b624627d2ef27a207a0cf097dc108bf22b12b9bc (diff) | |
download | conf-568feb1c2d4450dc7556d01b32e33067d289e540.tar.gz conf-568feb1c2d4450dc7556d01b32e33067d289e540.zip |
move history sync to its own external repository
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -22,23 +22,6 @@ esac # }}} # aliases {{{ [ -f "$HOME/.sh/aliases" ] && source $HOME/.sh/aliases [ -f "$HOME/.sh/functions" ] && source $HOME/.sh/functions -mkdir -p $HOME/.cache/vim/hist -function vim { - local zsh_hist_fname - zsh_hist_fname=$HOME/.cache/vim/hist/$$ - command vim --cmd "let g:_zsh_hist_fname = '$zsh_hist_fname'" "$@" - if [[ -r $zsh_hist_fname ]]; then - while read line; do - if echo $line | grep -q "[[:space:]']"; then - line=${line/\'/\'\\\\\'\'} - line="'$line'" - fi - print -s "vim $line" - done < $zsh_hist_fname - fc -AI - rm -f $zsh_hist_fname - fi -} # }}} # completion {{{ fpath=(~/.zsh/zsh-completions/src $fpath) @@ -87,6 +70,9 @@ ZSH_HIGHLIGHT_STYLES[assign]='fg=cyan' source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=black,bold' # }}} +# vim-history-sync {{{ +source ~/.vim/pack/plugins/start/history-sync/sh/history-sync.zsh +# }}} # }}} # prompt {{{ if type fancy-prompt > /dev/null 2>&1; then |