From 9f70457a4a51c25b9942dcf63942c0341029b636 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 20 Feb 2009 00:13:12 +1100 Subject: [PATCH] Fix the formatting of some example help commands. --- vimperator/locale/en-US/autocommands.txt | 8 ++++---- vimperator/locale/en-US/options.txt | 21 ++++++--------------- vimperator/locale/en-US/print.txt | 4 ++-- vimperator/locale/en-US/tutorial.txt | 20 ++++++++++---------- 4 files changed, 22 insertions(+), 31 deletions(-) diff --git a/vimperator/locale/en-US/autocommands.txt b/vimperator/locale/en-US/autocommands.txt index dc8b97de..36104b56 100644 --- a/vimperator/locale/en-US/autocommands.txt +++ b/vimperator/locale/en-US/autocommands.txt @@ -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: diff --git a/vimperator/locale/en-US/options.txt b/vimperator/locale/en-US/options.txt index a7bdd168..a16aa9f6 100644 --- a/vimperator/locale/en-US/options.txt +++ b/vimperator/locale/en-US/options.txt @@ -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 ____ diff --git a/vimperator/locale/en-US/print.txt b/vimperator/locale/en-US/print.txt index 3254cf5b..8cf3d180 100644 --- a/vimperator/locale/en-US/print.txt +++ b/vimperator/locale/en-US/print.txt @@ -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. diff --git a/vimperator/locale/en-US/tutorial.txt b/vimperator/locale/en-US/tutorial.txt index c446e10c..461a6aed 100644 --- a/vimperator/locale/en-US/tutorial.txt +++ b/vimperator/locale/en-US/tutorial.txt @@ -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 +\{nbsp}[c]:set go+=mTB[c] where [m][m] represents pressing the or 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 +\{nbsp}[c]:help :help[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 - :help gT +\{nbsp}[c]:help gt[c] + +\{nbsp}[c]:help gT[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 - omy.webmail.com +\{nbsp}[c]:open my.webmail.com[c] + +\{nbsp}[m]omy.webmail.com[m] - :tabopen vimperator.org - tvimperator.org +\{nbsp}[c]:tabopen vimperator.org[c] + +\{nbsp}[m]tvimperator.org[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: - gT +\{nbsp}[m]gT[m] section:Saving{nbsp}for{nbsp}posterity{nbsp}-{nbsp}vimperatorrc[vimperatorrc]