summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-08 02:45:50 -0500
committerJesse Luehrs <doy@tozt.net>2018-03-08 03:20:01 -0500
commit568feb1c2d4450dc7556d01b32e33067d289e540 (patch)
tree2e75f953bc96322e4fdc6f663bbaf3602a292717 /zshrc
parentb624627d2ef27a207a0cf097dc108bf22b12b9bc (diff)
downloadconf-568feb1c2d4450dc7556d01b32e33067d289e540.tar.gz
conf-568feb1c2d4450dc7556d01b32e33067d289e540.zip
move history sync to its own external repository
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc20
1 files changed, 3 insertions, 17 deletions
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