diff options
author | 2024-03-25 16:43:09 +0530 | |
---|---|---|
committer | 2024-03-25 16:43:09 +0530 | |
commit | a62114c91f2070c8c8453d117f3d81dc113e41ff (patch) | |
tree | f266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/fancy-ctrl-z | |
parent | af120ab348f2e1a5a39dec035ed9dcf84189a64e (diff) | |
download | dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2 dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip |
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/fancy-ctrl-z')
-rw-r--r-- | zsh/oh-my-zsh/plugins/fancy-ctrl-z/README.md | 14 | ||||
-rw-r--r-- | zsh/oh-my-zsh/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh | 12 |
2 files changed, 0 insertions, 26 deletions
diff --git a/zsh/oh-my-zsh/plugins/fancy-ctrl-z/README.md b/zsh/oh-my-zsh/plugins/fancy-ctrl-z/README.md deleted file mode 100644 index f1b1dfa..0000000 --- a/zsh/oh-my-zsh/plugins/fancy-ctrl-z/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Use Ctrl-Z to switch back to Vim - -I frequently need to execute random commands in my shell. To achieve it I pause -Vim by pressing Ctrl-z, type command and press fg<Enter> to switch back to Vim. -The fg part really hurts me. I just wanted to hit Ctrl-z once again to get back -to Vim. I could not find a solution, so I developed one on my own that -works wonderfully with ZSH. - -Source: http://sheerun.net/2014/03/21/how-to-boost-your-vim-productivity/ - -Credits: -- original idea by @sheerun -- added to OMZ by @mbologna - diff --git a/zsh/oh-my-zsh/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh b/zsh/oh-my-zsh/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh deleted file mode 100644 index 82b9688..0000000 --- a/zsh/oh-my-zsh/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh +++ /dev/null @@ -1,12 +0,0 @@ -fancy-ctrl-z () { - if [[ $#BUFFER -eq 0 ]]; then - BUFFER="fg" - zle accept-line -w - else - zle push-input -w - zle clear-screen -w - fi -} -zle -N fancy-ctrl-z -bindkey '^Z' fancy-ctrl-z - |