comparison runtime/doc/map.txt @ 6424:de877dab1c31 v7.4.542

updated for version 7.4.542 Problem: Using a range for window and buffer commands has a few problems. Cannot specify the type of range for a user command. Solution: Add the -addr argument for user commands. Fix problems. (Marcin Szamotulski)
author Bram Moolenaar <bram@vim.org>
date Mon, 08 Dec 2014 04:16:44 +0100
parents 31f7581068a9
children 0550be8fc7f6
comparison
equal deleted inserted replaced
6423:946876e24d5d 6424:de877dab1c31
1356 Specifying -count (without a default) acts like -count=0 1356 Specifying -count (without a default) acts like -count=0
1357 1357
1358 Note that -range=N and -count=N are mutually exclusive - only one should be 1358 Note that -range=N and -count=N are mutually exclusive - only one should be
1359 specified. 1359 specified.
1360 1360
1361 *E889* *:command-addr*
1362 It is possible that the special characters in the range like ., $ or % which
1363 by default correspond to the current line, last line and the whole buffer,
1364 relate to arguments, (loaded) buffers, windows or tab pages.
1365
1366 Possible values are:
1367 -addr=lines Range of lines (this is the default)
1368 -addr=arguments Range for arguments
1369 -addr=buffers Range for buffers (also not loaded buffers)
1370 -addr=loaded_buffers Range for loaded buffers
1371 -addr=windows Range for windows
1372 -addr=tabs Range for tab pages
1373
1361 Special cases *:command-bang* *:command-bar* 1374 Special cases *:command-bang* *:command-bar*
1362 *:command-register* *:command-buffer* 1375 *:command-register* *:command-buffer*
1363 There are some special cases as well: 1376 There are some special cases as well:
1364 1377
1365 -bang The command can take a ! modifier (like :q or :w) 1378 -bang The command can take a ! modifier (like :q or :w)