Skip to content

Commit

Permalink
Moved comments and credits from source to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mbologna committed Sep 3, 2015
1 parent 6d7c39a commit 9a7b2d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
14 changes: 14 additions & 0 deletions 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

9 changes: 0 additions & 9 deletions 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"
Expand Down

0 comments on commit 9a7b2d7

Please sign in to comment.