1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 16:05:45 +01:00

Fix the formatting of some example help commands.

This commit is contained in:
Doug Kearns
2009-02-20 00:13:12 +11:00
parent 3cd3c60f16
commit 9f70457a4a
4 changed files with 22 additions and 31 deletions

View File

@@ -77,15 +77,15 @@ section:Examples[autocmd-examples]
Enable _passthrough_ mode on all Google sites:
:autocmd LocationChange .* js modes.passAllKeys = /google\.com/.test(buffer.URL)
\{nbsp}[c]:autocmd LocationChange .* js modes.passAllKeys = /google\.com/.test(buffer.URL)[c]
Enable _passthrough_ mode on *some* Google sites:
:autocmd LocationChange .* js modes.passAllKeys = /(www|mail)\.google\.com/.test(buffer.URL)
\{nbsp}[c]:autocmd LocationChange .* js modes.passAllKeys = /(www|mail)\.google\.com/.test(buffer.URL)[c]
Set the filetype to mail when editing email at Gmail:
:autocmd LocationChange .* :set editor=gvim\ -f
:autocmd LocationChange mail\.google\.com :set editor="gvim -f -c 'set ft=mail'"
\{nbsp}[c]:autocmd LocationChange .* :set editor=gvim\ -f[c] +
\{nbsp}[c]:autocmd LocationChange mail\.google\.com :set editor="gvim -f -c 'set ft=mail'"[c]
// vim: set filetype=asciidoc:

View File

@@ -54,12 +54,12 @@ ____
____
For list options, toggle the specified values.
If the option is a list, the given values are toggled. Given
:set opt=foo,bar
Then,
:set opt!=foo,baz
results in
opt=bar,baz
If the option is a list, the given values are toggled. Given +
\{nbsp}[c]:set opt=foo,bar[c] +
then, +
\{nbsp}[c]:set opt!=foo,baz[c] +
results in +
\{nbsp}opt=bar,baz
____
|:set-default|
@@ -575,15 +575,6 @@ In order to also speed up first time access, it is cached at startup, if this op
____
//|\'pvh'| |\'previewheight'|
//||'previewheight' 'pvh'|| number (default: 10)
//____
//Default height for preview window
//
//Value must be between 1 and 50. If the value is too high, completions may cover the command line. Close the preview window with :pclose.
//Note: Option currently disabled
//____
|\'previouspattern'|
||'previouspattern'|| stringlist
____

View File

@@ -23,11 +23,11 @@ section:Firefox{nbsp}printing{nbsp}dialogs[firefox-print-dialogs]
The "Print Preview" and "Page Setup" dialogs can be opened via the [c]:dialog[c]
command
:dialog printpreview
\{nbsp}[c]:dialog printpreview[c]
and
:dialog printsetup
\{nbsp}[c]:dialog printsetup[c]
respectively.

View File

@@ -15,7 +15,7 @@ bare-looking window. The menubar, navigation bar, and bookmark bars are hidden.
In case you missed the notice in the help:Introduction[intro.html], you can
regain these by issuing the command
:set go+=mTB<CR>
\{nbsp}[c]:set go+=mTB<CR>[c]
where [m]<CR>[m] represents pressing the <Enter> or <Return> key.
If you're a veteran Vim user, this may look familiar. It should.
@@ -51,7 +51,7 @@ Most of the documentation for Vimperator's features are easily found using the
[c]:help[c] command. For example, you can find help on the [c]:help[c] command
by typing
:help :help<CR>
\{nbsp}[c]:help :help<CR>[c]
Similarly, help on configurable options is available with [c]:help
'{option_name}'[c]. (Note the single quotes around the option name as in Vim.)
@@ -59,8 +59,8 @@ Information on all available options is, predictably, [c]:help options[c].
and you can find out about the [m]gt[m] and [m]gT[m] mapping with
:help gt<CR>
:help gT<CR>
\{nbsp}[c]:help gt<CR>[c] +
\{nbsp}[c]:help gT<CR>[c]
Finally, in addition to the help system itself, [c]:exusage[c], [c]:viusage[c]
and [c]:optionusage[c] are useful quick-reference commands.
@@ -119,11 +119,11 @@ the current tab, use [c]:open[c]. The Normal mode mappings [m]t[m] and [m]o[m],
respectively, map to these commands, so the following pairs of sequences are
equivalent:
:open my.webmail.com<CR>
omy.webmail.com<CR>
\{nbsp}[c]:open my.webmail.com<CR>[c] +
\{nbsp}[m]omy.webmail.com<CR>[m]
:tabopen vimperator.org<CR>
tvimperator.org<CR>
\{nbsp}[c]:tabopen vimperator.org<CR>[c] +
\{nbsp}[m]tvimperator.org<CR>[m]
section:Some{nbsp}hints{nbsp}about{nbsp}surfing...[hints-tutorial]
@@ -162,12 +162,12 @@ Say you get half-way done typing in a new URL, only to remember that you've
already got that page open in the previous tab. Your command line might look
something like this:
:open my.partial.url/fooba
\{nbsp}[c]:open my.partial.url/fooba[c]
You can exit the command line and access the already loaded page with the
following:
<Esc>gT
\{nbsp}[m]<Esc>gT[m]
section:Saving{nbsp}for{nbsp}posterity{nbsp}-{nbsp}vimperatorrc[vimperatorrc]