dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 127470a5ce8dbc83ec593c2544f657e6afa8a78e
parent edb443c5cfa03738c1f05ea5588be14d407e1911
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Thu,  4 Jun 2015 19:26:07 +0200

resume vim with C-z

Diffstat:
M.zshrc | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -114,6 +114,19 @@ alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' +# use Ctrl-Z as fg +fancy-ctrl-z () { + if [[ $#BUFFER -eq 0 ]]; then + BUFFER="fg" + zle accept-line + else + zle push-input + zle clear-screen + fi +} +zle -N fancy-ctrl-z +bindkey '^Z' fancy-ctrl-z + set -o noclobber set -o vi