mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 17:31:25 +02:00
add rough -nargs, -bang and -count support to :command
This commit is contained in:
@@ -58,15 +58,15 @@ section:Examples[autocmd-examples]
|
||||
|
||||
Enable _passthrough_ mode on all Google sites:
|
||||
|
||||
:au LocationChange .* js modes.passAllKeys = /google\.com/.test(buffer.URL)
|
||||
:autocmd LocationChange .* js modes.passAllKeys = /google\.com/.test(buffer.URL)
|
||||
|
||||
Enable _passthrough_ mode on *some* Google sites:
|
||||
|
||||
:au LocationChange .* js modes.passAllKeys = /(www|mail)\.google\.com/.test(buffer.URL)
|
||||
:autocmd LocationChange .* js modes.passAllKeys = /(www|mail)\.google\.com/.test(buffer.URL)
|
||||
|
||||
Set the filetype to mail when editing email at Gmail:
|
||||
|
||||
:au LocationChange .* :set editor=gvim -f
|
||||
:au LocationChange mail\.google\.com :set editor=gvim -f -c 'set ft=mail'
|
||||
:autocmd LocationChange .* :set editor=gvim -f
|
||||
:autocmd LocationChange mail\.google\.com :set editor=gvim -f -c 'set ft=mail'
|
||||
|
||||
// vim: set syntax=asciidoc:
|
||||
|
||||
Reference in New Issue
Block a user