Mercurial > emacs
comparison man/viper.texi @ 56279:b1ae5333057a
* ses.texi, viper.texi, search.texi, flymake.texi, faq.texi:
* eshell.texi, ediff.texi, calendar.texi: Markup fixes.
author | Jesper Harder <harder@ifa.au.dk> |
---|---|
date | Tue, 29 Jun 2004 12:09:45 +0000 |
parents | 7fff56f5b73c |
children | d96e54250eea 59dcbfe97385 |
comparison
equal
deleted
inserted
replaced
56278:3d525d0266de | 56279:b1ae5333057a |
---|---|
1310 @kindex @kbd{C-c} | 1310 @kindex @kbd{C-c} |
1311 These two keys invoke many important Emacs functions. For example, if you | 1311 These two keys invoke many important Emacs functions. For example, if you |
1312 hit @kbd{C-x} followed by @kbd{2}, then the current window will be split | 1312 hit @kbd{C-x} followed by @kbd{2}, then the current window will be split |
1313 into 2. Except for novice users, @kbd{C-c} is also set to execute an Emacs | 1313 into 2. Except for novice users, @kbd{C-c} is also set to execute an Emacs |
1314 command from the current major mode. @key{ESC} will do the same, if you | 1314 command from the current major mode. @key{ESC} will do the same, if you |
1315 configure @key{ESC} as Meta by setting @code{viper-no-multiple-ESC} to nil | 1315 configure @key{ESC} as Meta by setting @code{viper-no-multiple-ESC} to @code{nil} |
1316 in @file{.viper}. @xref{Customization}. @kbd{C-\} in Insert, Replace, or Vi | 1316 in @file{.viper}. @xref{Customization}. @kbd{C-\} in Insert, Replace, or Vi |
1317 states will make Emacs think @kbd{Meta} has been hit.@refill | 1317 states will make Emacs think @kbd{Meta} has been hit.@refill |
1318 @item \ | 1318 @item \ |
1319 @kindex @kbd{\} | 1319 @kindex @kbd{\} |
1320 Escape to Emacs to execute a single Emacs command. For instance, | 1320 Escape to Emacs to execute a single Emacs command. For instance, |
1740 keyboard macros. If the key sequence is defined as such a macro, it will be | 1740 keyboard macros. If the key sequence is defined as such a macro, it will be |
1741 executed. Otherwise, it is processed as an ordinary sequence of typed keys. | 1741 executed. Otherwise, it is processed as an ordinary sequence of typed keys. |
1742 | 1742 |
1743 Setting this variable too high may slow down your typing. Setting it too | 1743 Setting this variable too high may slow down your typing. Setting it too |
1744 low may make it hard to type macros quickly enough. | 1744 low may make it hard to type macros quickly enough. |
1745 @item viper-translate-all-ESC-keysequences t on tty, nil on windowing display | 1745 @item viper-translate-all-ESC-keysequences @code{t} on tty, @code{nil} on windowing display |
1746 Normally, Viper lets Emacs translate only those ESC key sequences that are | 1746 Normally, Viper lets Emacs translate only those ESC key sequences that are |
1747 defined in the low-level key-translation-map or function-key-map, such as those | 1747 defined in the low-level key-translation-map or function-key-map, such as those |
1748 emitted by the arrow and function keys. Other sequences, e.g., @kbd{\\e/}, are | 1748 emitted by the arrow and function keys. Other sequences, e.g., @kbd{\\e/}, are |
1749 treated as @kbd{ESC} command followed by a @kbd{/}. This is good for people | 1749 treated as @kbd{ESC} command followed by a @kbd{/}. This is good for people |
1750 who type fast and tend to hit other characters right after they hit | 1750 who type fast and tend to hit other characters right after they hit |
1751 ESC. Other people like Emacs to translate @kbd{ESC} sequences all the time. | 1751 ESC. Other people like Emacs to translate @kbd{ESC} sequences all the time. |
1752 The default is to translate all sequences only when using a dumb terminal. | 1752 The default is to translate all sequences only when using a dumb terminal. |
1753 This permits you to use @kbd{ESC} as a meta key in insert mode. For instance, | 1753 This permits you to use @kbd{ESC} as a meta key in insert mode. For instance, |
1754 hitting @kbd{ESC x} fast would have the effect of typing @kbd{M-x}. | 1754 hitting @kbd{ESC x} fast would have the effect of typing @kbd{M-x}. |
1755 If your dumb terminal is not so dumb and understands the meta key, then you | 1755 If your dumb terminal is not so dumb and understands the meta key, then you |
1756 probably will be better off setting this variable to nil. Try and see which | 1756 probably will be better off setting this variable to @code{nil}. Try and see which |
1757 way suits you best. | 1757 way suits you best. |
1758 @item viper-ex-style-motion t | 1758 @item viper-ex-style-motion t |
1759 Set this to @code{nil}, if you want @kbd{l,h} to cross | 1759 Set this to @code{nil}, if you want @kbd{l,h} to cross |
1760 lines, etc. @xref{Movement and Markers}, for more info. | 1760 lines, etc. @xref{Movement and Markers}, for more info. |
1761 @item viper-ex-style-editing t | 1761 @item viper-ex-style-editing t |
1762 Set this to @code{nil}, if you want | 1762 Set this to @code{nil}, if you want |
1763 @kbd{C-h} and @key{DEL} to not stop | 1763 @kbd{C-h} and @key{DEL} to not stop |
1764 at the beginning of a line in Insert state, @key{X} and @key{x} to delete | 1764 at the beginning of a line in Insert state, @key{X} and @key{x} to delete |
1765 characters across lines in Vi command state, etc. | 1765 characters across lines in Vi command state, etc. |
1766 @item viper-ESC-moves-cursor-back t | 1766 @item viper-ESC-moves-cursor-back t |
1767 It t, cursor moves back 1 character when switching from insert state to vi | 1767 It @code{t}, cursor moves back 1 character when switching from insert state to vi |
1768 state. If nil, the cursor stays where it was before the switch. | 1768 state. If @code{nil}, the cursor stays where it was before the switch. |
1769 @item viper-always t | 1769 @item viper-always t |
1770 @code{t} means: leave it to Viper to decide when a buffer must be brought | 1770 @code{t} means: leave it to Viper to decide when a buffer must be brought |
1771 up in Vi state, | 1771 up in Vi state, |
1772 Insert state, or Emacs state. This heuristics works well in virtually all | 1772 Insert state, or Emacs state. This heuristics works well in virtually all |
1773 cases. @code{nil} means you either has to invoke @code{viper-mode} manually | 1773 cases. @code{nil} means you either has to invoke @code{viper-mode} manually |
1871 @vindex @code{viper-insert-state-cursor-color} | 1871 @vindex @code{viper-insert-state-cursor-color} |
1872 If set to a valid color, this will be the cursor color when Viper is in | 1872 If set to a valid color, this will be the cursor color when Viper is in |
1873 insert state. | 1873 insert state. |
1874 @item viper-replace-region-end-delimiter "$" | 1874 @item viper-replace-region-end-delimiter "$" |
1875 A string used to mark the end of replacement regions. It is used only on | 1875 A string used to mark the end of replacement regions. It is used only on |
1876 TTYs or if @code{viper-use-replace-region-delimiters} is non-nil. | 1876 TTYs or if @code{viper-use-replace-region-delimiters} is non-@code{nil}. |
1877 @item viper-replace-region-start-delimiter "" | 1877 @item viper-replace-region-start-delimiter "" |
1878 A string used to mark the beginning of replacement regions. It is used | 1878 A string used to mark the beginning of replacement regions. It is used |
1879 only on TTYs or if @code{viper-use-replace-region-delimiters} is non-nil. | 1879 only on TTYs or if @code{viper-use-replace-region-delimiters} is non-@code{nil}. |
1880 @item viper-use-replace-region-delimiters | 1880 @item viper-use-replace-region-delimiters |
1881 If non-nil, Viper will always use @code{viper-replace-region-end-delimiter} and | 1881 If non-@code{nil}, Viper will always use @code{viper-replace-region-end-delimiter} and |
1882 @code{viper-replace-region-start-delimiter} to delimit replacement regions, | 1882 @code{viper-replace-region-start-delimiter} to delimit replacement regions, |
1883 even on color displays (where this is unnecessary). By default, this | 1883 even on color displays (where this is unnecessary). By default, this |
1884 variable is non-nil only on TTYs or monochrome displays. | 1884 variable is non-@code{nil} only on TTYs or monochrome displays. |
1885 @item viper-allow-multiline-replace-regions t | 1885 @item viper-allow-multiline-replace-regions t |
1886 If non-nil, multi-line text replacement regions, such as those produced by | 1886 If non-@code{nil}, multi-line text replacement regions, such as those produced by |
1887 commands @kbd{c55w}, @kbd{3C}, etc., will stay around until the user exits | 1887 commands @kbd{c55w}, @kbd{3C}, etc., will stay around until the user exits |
1888 the replacement mode. In this variable is set to @code{nil}, Viper will | 1888 the replacement mode. In this variable is set to @code{nil}, Viper will |
1889 emulate the standard Vi behavior, which supports only intra-line | 1889 emulate the standard Vi behavior, which supports only intra-line |
1890 replacement regions (and multi-line replacement regions are deleted). | 1890 replacement regions (and multi-line replacement regions are deleted). |
1891 @item viper-toggle-key "\C-z" | 1891 @item viper-toggle-key "\C-z" |
2388 @vindex @code{viper-slash-and-colon-map} | 2388 @vindex @code{viper-slash-and-colon-map} |
2389 @vindex @code{viper-dired-modifier-map} | 2389 @vindex @code{viper-dired-modifier-map} |
2390 | 2390 |
2391 To unbind the macros `//' and `///' for a major mode where you feel they | 2391 To unbind the macros `//' and `///' for a major mode where you feel they |
2392 are undesirable, execute @code{viper-set-emacs-state-searchstyle-macros} with a | 2392 are undesirable, execute @code{viper-set-emacs-state-searchstyle-macros} with a |
2393 non-nil argument. This can be done either interactively, by supplying a | 2393 non-@code{nil} argument. This can be done either interactively, by supplying a |
2394 prefix argument, or by placing | 2394 prefix argument, or by placing |
2395 @example | 2395 @example |
2396 (viper-set-emacs-state-searchstyle-macros 'undefine) | 2396 (viper-set-emacs-state-searchstyle-macros 'undefine) |
2397 @end example | 2397 @end example |
2398 @findex @code{viper-set-emacs-state-searchstyle-macros} | 2398 @findex @code{viper-set-emacs-state-searchstyle-macros} |
3358 @cindex case-insensitive search | 3358 @cindex case-insensitive search |
3359 @item % | 3359 @item % |
3360 Find the next bracket/parenthesis/brace and go to its match. | 3360 Find the next bracket/parenthesis/brace and go to its match. |
3361 By default, Viper ignores brackets/parentheses/braces that occur inside | 3361 By default, Viper ignores brackets/parentheses/braces that occur inside |
3362 parentheses. You can change this by setting | 3362 parentheses. You can change this by setting |
3363 @code{viper-parse-sexp-ignore-comments} to nil in your @file{.viper} file. | 3363 @code{viper-parse-sexp-ignore-comments} to @code{nil} in your @file{.viper} file. |
3364 This option can also be toggled interactively if you quickly hit @kbd{%%%}. | 3364 This option can also be toggled interactively if you quickly hit @kbd{%%%}. |
3365 | 3365 |
3366 This latter feature is implemented as a vi-style keyboard macro. If you | 3366 This latter feature is implemented as a vi-style keyboard macro. If you |
3367 don't want this macro, put | 3367 don't want this macro, put |
3368 | 3368 |