| File TODO changed (mode: 100644) (index 7673c8217..1a7699acd) |
| ... |
... |
Basic things: |
| 16 |
16 |
|
|
| 17 |
17 |
Documentation: |
Documentation: |
| 18 |
18 |
* State the need of *nix tools on Windows more explicitly. |
* State the need of *nix tools on Windows more explicitly. |
| 19 |
|
* Document single and double quotes treating in the command-line mode. |
|
| 20 |
19 |
* Divide docs into several files (as it's quite big now). |
* Divide docs into several files (as it's quite big now). |
| 21 |
20 |
* Document name conflict resolution options. |
* Document name conflict resolution options. |
| 22 |
21 |
* Add separate section on bookmarks. |
* Add separate section on bookmarks. |
| File data/vim/doc/app/vifm-app.txt changed (mode: 100644) (index a76071054..151b5b75a) |
| ... |
... |
Example: > |
| 1259 |
1259 |
:noh[lsearch] |
:noh[lsearch] |
| 1260 |
1260 |
This means the complete command is nohlsearch, and the short one is noh. |
This means the complete command is nohlsearch, and the short one is noh. |
| 1261 |
1261 |
|
|
|
1262 |
|
*vifm-commands-quoting* |
|
1263 |
|
Parsing of text after the colon is based on quoting and escaping rules. These |
|
1264 |
|
rules determine how Vifm splits the entered text into arguments. (Note: some |
|
1265 |
|
commands, such as :echo, interpret their arguments as an expression, but the |
|
1266 |
|
quoting rules themselves remain the same.) |
|
1267 |
|
|
|
1268 |
|
Supported mechanisms: |
|
1269 |
|
|
|
1270 |
|
- single quotes '...' |
|
1271 |
|
The content is taken literally. |
|
1272 |
|
Backslash escaping does not work inside. |
|
1273 |
|
However, '' inside single quotes is replaced with ' (same as in Vim). |
|
1274 |
|
Everything between the quotes becomes a single argument. |
|
1275 |
|
|
|
1276 |
|
- double quotes "..." |
|
1277 |
|
Also form a single argument. |
|
1278 |
|
A backslash inside double quotes escapes the next character |
|
1279 |
|
(for example \" becomes a quote, \\ becomes a backslash). |
|
1280 |
|
Some C‑style escape sequences are interpreted (e.g. \n, \t). |
|
1281 |
|
|
|
1282 |
|
Example: |
|
1283 |
|
:echo "a b\ c \"x\"" |
|
1284 |
|
output: a b c "x" |
|
1285 |
|
|
|
1286 |
|
- backslash escaping \ |
|
1287 |
|
Outside quotes, it allows including spaces, quotes, or a backslash |
|
1288 |
|
into an argument. |
|
1289 |
|
Inside double quotes it works the same way. |
|
1290 |
|
It does not work inside single quotes. |
|
1291 |
|
|
|
1292 |
|
Example (visible behavior): |
|
1293 |
|
:command Foo touch a\ b |
|
1294 |
|
defines the Foo command with a single argument: a b |
|
1295 |
|
|
|
1296 |
|
Calling it: |
|
1297 |
|
:Foo |
|
1298 |
|
creates a file named: |
|
1299 |
|
a b |
|
1300 |
|
|
|
1301 |
|
After processing quotes and backslashes, most commands split the line into |
|
1302 |
|
arguments by spaces. Some commands (such as :substitute or :tr) use different |
|
1303 |
|
separators. |
|
1304 |
|
|
| 1262 |
1305 |
*vifm-commands-and-selection* |
*vifm-commands-and-selection* |
| 1263 |
1306 |
Most of command-line commands completely reset selection in the current view. |
Most of command-line commands completely reset selection in the current view. |
| 1264 |
1307 |
However, there are several exceptions: |
However, there are several exceptions: |