diff options
author | Michele Bologna <michele.bologna@gmail.com> | 2015-09-03 08:55:03 +0200 |
---|---|---|
committer | Michele Bologna <michele.bologna@gmail.com> | 2015-09-03 08:55:03 +0200 |
commit | 9a7b2d7ffb6def1b1009b3c4a21d33af22a74234 (patch) | |
tree | 5eb2579f122f42f27db87478a3fda622bb93b819 /plugins/fancy-ctrl-z | |
parent | 6d7c39a2aef023ac887f0cadbe0035706838c859 (diff) | |
download | zsh-9a7b2d7ffb6def1b1009b3c4a21d33af22a74234.tar.gz zsh-9a7b2d7ffb6def1b1009b3c4a21d33af22a74234.tar.bz2 zsh-9a7b2d7ffb6def1b1009b3c4a21d33af22a74234.zip |
Moved comments and credits from source to README
Diffstat (limited to 'plugins/fancy-ctrl-z')
-rw-r--r-- | plugins/fancy-ctrl-z/README.md | 14 | ||||
-rw-r--r-- | plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh | 9 |
2 files changed, 14 insertions, 9 deletions
diff --git a/plugins/fancy-ctrl-z/README.md b/plugins/fancy-ctrl-z/README.md new file mode 100644 index 000000000..a7670fa2c --- /dev/null +++ b/plugins/fancy-ctrl-z/README.md @@ -0,0 +1,14 @@ +# Use Ctrl-Z to switch back to Vim + +I frequently need to execute random command 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 hurt sme. 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/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh b/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh index d4e41b71f..8ab297913 100644 --- a/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh +++ b/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh @@ -1,12 +1,3 @@ -# Use Ctrl-Z to switch back to Vim -# I frequently need to execute random command 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 hurt sme. 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/ - fancy-ctrl-z () { if [[ $#BUFFER -eq 0 ]]; then BUFFER="fg" |