diff options
author | Anmol Sethi <anmol@aubble.com> | 2016-08-10 23:52:25 -0400 |
---|---|---|
committer | Anmol Sethi <anmol@aubble.com> | 2016-08-24 11:51:59 -0400 |
commit | 8a7b15cf35f9873395916487c33b817673c56d86 (patch) | |
tree | a2c1cf023ce877d0cdf4fa01db5262f9c08692f6 /runtime/doc | |
parent | 4d253b4df5cb19715007d1a2078841862704a057 (diff) | |
download | rneovim-8a7b15cf35f9873395916487c33b817673c56d86.tar.gz rneovim-8a7b15cf35f9873395916487c33b817673c56d86.tar.bz2 rneovim-8a7b15cf35f9873395916487c33b817673c56d86.zip |
vim-patch:7.4.1898
Problem: User commands don't support modifiers.
Solution: Add the <mods> item. (Yegappan Lakshmanan, closes vim/vim#829)
https://github.com/vim/vim/commit/63a60ded3fd584847a05dccf058026e682abad90
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/map.txt | 21 |
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> |