Hi Kent and list,
2016-7-31(Sun) 1:09:44 UTC+9 ZyX:
> 2016-07-30 19:04 GMT+03:00 Kent Sibilev:
> > Hi All,
> >
> > I've found the following discrepancy. The help shows that :nos is the
> > same as :noswapfile. But in practice I see that they behave differently:
> >
> > :noswapfile e ~/.vimrc
> >
> > works fine, but:
> >
> > :nos e ~/.vimrc
> > E476: Invalid command
> >
> > Is it a bug?
> >
> > Regards,
> > Kent
>
> I checked, it works starting from :noswap. :noswa and less letters do not
> work.
I fixed this issue.
And I checked other command modifiers.
:kee (:keepmarks) can be shortened to `:ke`.
I attached a patch.
Please check it out.
--
Best regards,
Hirohito Higashi (a.k.a. h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt
index b6a5969..ea6f844 100644
--- a/runtime/doc/motion.txt
+++ b/runtime/doc/motion.txt
@@ -980,7 +980,7 @@ These commands are not marks themselves, but jump to a mark:
- folds
- diffs
-:kee[pmarks] {command} *:kee* *:keepmarks*
+:ke[epmarks] {command} *:ke* *:keepmarks*
Currently only has effect for the filter command
|:range!|:
- When the number of lines after filtering is equal to
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 34c9955..6874556 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -1899,7 +1899,7 @@ do_one_cmd(
#endif
continue;
- case 'k': if (checkforcmd(&ea.cmd, "keepmarks", 3))
+ case 'k': if (checkforcmd(&ea.cmd, "keepmarks", 2))
{
cmdmod.keepmarks = TRUE;
continue;
@@ -1954,7 +1954,7 @@ do_one_cmd(
#endif
continue;
}
- if (!checkforcmd(&ea.cmd, "noswapfile", 6))
+ if (!checkforcmd(&ea.cmd, "noswapfile", 3))
break;
cmdmod.noswapfile = TRUE;
continue;