Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 954 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 954 Bytes

vi-quote

Gitter Matrix

This plugin adds an operation which quotes or unquotes a motion.

Features:

  • Registers itself as a vi-change, so the . dot-operator works correctly.
  • Honors the user's settings for rcquote

Usage:

Quoting:

echo 'hello world!'         # qq   (quote whole line)
'echo '\''hello world!'\'   # if setopt norcquotes
'echo ''hello world!'''     # if setopt rcquotes
#   CURSOR
#        v
sh - <<< some-command $PATH    # q$  (quote to end)
sh - <<< 'some-command $PATH'

Unquoting:

'du -sh ''$HOME'''    # QQ
du -sh $HOME          # if setopt norcquotes
du -sh '$HOME'        # if setopt rcquotes