From 718fc1d34d59896fc57ab41eec70482cf7308589 Mon Sep 17 00:00:00 2001 From: h-east Date: Fri, 17 Oct 2025 20:50:37 +0900 Subject: [PATCH] Update cmdline.{txt,jax} --- doc/cmdline.jax | 2 +- en/cmdline.txt | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/doc/cmdline.jax b/doc/cmdline.jax index b696631b4..9072f0640 100644 --- a/doc/cmdline.jax +++ b/doc/cmdline.jax @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim バージョン 9.1. Last change: 2025 Sep 24 +*cmdline.txt* For Vim バージョン 9.1. Last change: 2025 Oct 12 VIMリファレンスマニュアル by Bram Moolenaar diff --git a/en/cmdline.txt b/en/cmdline.txt index 2781f8a45..ef13d7271 100644 --- a/en/cmdline.txt +++ b/en/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 9.1. Last change: 2025 Sep 24 +*cmdline.txt* For Vim version 9.1. Last change: 2025 Oct 12 VIM REFERENCE MANUAL by Bram Moolenaar @@ -162,7 +162,8 @@ CTRL-R {register} *c_CTRL-R* *c_* the last delete or yank '%' the current file name '#' the alternate file name - '*' the clipboard contents (X11: primary selection) + '*' the clipboard contents (X11: primary + selection) '+' the clipboard contents '/' the last search pattern ':' the last command-line @@ -440,7 +441,8 @@ CTRL-D List names that match the pattern in front of the cursor. does not work everywhere. *c_CTRL-N* CTRL-N After using 'wildchar' which got multiple matches, go to next - match. Otherwise recall more recent command-line from history. + match. Otherwise recall more recent command-line from + history. *c_CTRL-P* CTRL-P After using 'wildchar' which got multiple matches, go to previous match. Otherwise recall older command-line from @@ -728,9 +730,9 @@ See also |`=|. *:_!* The '!' (bang) character after an Ex command makes the command behave in a -different way. The '!' should be placed immediately after the command, without -any blanks in between. If you insert blanks the '!' will be seen as an -argument for the command, which has a different meaning. For example: +different way. The '!' should be placed immediately after the command, +without any blanks in between. If you insert blanks the '!' will be seen as +an argument for the command, which has a different meaning. For example: :w! name write the current buffer to file "name", overwriting any existing file :w !name send the current buffer as standard input to command @@ -1105,8 +1107,9 @@ Note: these are typed literally, they are not special keys! *filename-modifiers* *:_%:* *::8* *::p* *::.* *::~* *::h* *::t* *::r* *::e* *::s* *::gs* *::S* *%:8* *%:p* *%:.* *%:~* *%:h* *%:t* *%:r* *%:e* *%:s* *%:gs* *%:S* -The file name modifiers can be used after "%", "#", "#n", "", "", -"" or "". They are also used with the |fnamemodify()| function. +The file name modifiers can be used after "%", "#", "#n", "", +"", "" or "". They are also used with the |fnamemodify()| +function. These modifiers can be given, in this order: :p Make file name a full path. Must be the first modifier. Also @@ -1159,7 +1162,7 @@ These modifiers can be given, in this order: Substitute all occurrences of "pat" with "sub". Otherwise this works like ":s". :S Escape special characters for use with a shell command (see - |shellescape()|). Must be the last one. Examples: > + |shellescape()|). Must be the last one. Examples: > :!dir :S :call system('chmod +w -- ' .. expand('%:S')) @@ -1240,9 +1243,9 @@ Therefore "\file\foo" is a valid file name, you don't have to type the backslash twice. An exception is the '$' sign. It is a valid character in a file name. But -to avoid a file name like "$home" to be interpreted as an environment variable, -it needs to be preceded by a backslash. Therefore you need to use "/\$home" -for the file "$home" in the root directory. A few examples: +to avoid a file name like "$home" to be interpreted as an environment +variable, it needs to be preceded by a backslash. Therefore you need to use +"/\$home" for the file "$home" in the root directory. A few examples: FILE NAME INTERPRETED AS ~ $home expanded to value of environment var $home