From 568feb1c2d4450dc7556d01b32e33067d289e540 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 8 Mar 2018 02:45:50 -0500 Subject: move history sync to its own external repository --- zshrc | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index e82c817..fd589cf 100644 --- a/zshrc +++ b/zshrc @@ -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 -- cgit v1.2.3-54-g00ecf