aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-08-25 21:54:00 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-08-25 21:54:00 -0400
commit7bc627b3c8d53e0f45985b35835e0b339dd2c006 (patch)
treef0be6606ebb224e542107c1cc8615324c9e74e08 /runtime/doc
parent4af6ec746c821078859469adc46cf7bef5c629fa (diff)
parentdb2aa27df17742a46f2861a53f8b61826e0318ea (diff)
downloadrneovim-7bc627b3c8d53e0f45985b35835e0b339dd2c006.tar.gz
rneovim-7bc627b3c8d53e0f45985b35835e0b339dd2c006.tar.bz2
rneovim-7bc627b3c8d53e0f45985b35835e0b339dd2c006.zip
Merge #5210 'vim-patch:7.4.1898 + :Man modifiers support'.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/map.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index c1eef398e2..4561020d22 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1406,6 +1406,27 @@ The valid escape sequences are
<bang> (See the '-bang' attribute) Expands to a ! if the
command was executed with a ! modifier, otherwise
expands to nothing.
+ *<mods>*
+ <mods> The command modifiers, if specified. Otherwise, expands to
+ nothing. Supported modifiers are |aboveleft|, |belowright|,
+ |botright|, |browse|, |confirm|, |hide|, |keepalt|,
+ |keepjumps|, |keepmarks|, |keeppatterns|, |lockmarks|,
+ |noswapfile|, |silent|, |tab|, |topleft|, |verbose|, and
+ |vertical|.
+ Examples: >
+ command! -nargs=+ -complete=file MyEdit
+ \ for f in expand(<q-args>, 0, 1) |
+ \ exe '<mods> split ' . f |
+ \ endfor
+
+ function! SpecialEdit(files, mods)
+ for f in expand(a:files, 0, 1)
+ exe a:mods . ' split ' . f
+ endfor
+ endfunction
+ command! -nargs=+ -complete=file Sedit
+ \ call SpecialEdit(<q-args>, <q-mods>)
+<
*<reg>* *<register>*
<reg> (See the '-register' attribute) The optional register,
if specified. Otherwise, expands to nothing. <register>