mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +00:00
Interface cleanup: Symlink handling & docs
This removes the ability to start nvim via the following aliases in favor of just using their command line arguments: ex vim -e exim vim -E view vim -R gvim vim -g gex vim -eg gview vim -Rg rvim vim -Z rview vim -RZ rgvim vim -gZ rgview vim -RgZ This also removes Vi mode (-v) for consistency. From ':help -v': -v Start Ex in Vi mode. Only makes a difference when the executable is called "ex" or "gvim". For gvim the GUI is not started if possible.
This commit is contained in:
@@ -853,7 +853,7 @@ void do_bang(int addr_count, exarg_T *eap, int forceit, int do_in, int do_out)
|
||||
int scroll_save = msg_scroll;
|
||||
|
||||
/*
|
||||
* Disallow shell commands for "rvim".
|
||||
* Disallow shell commands in restricted mode (-Z)
|
||||
* Disallow shell commands from .exrc and .vimrc in current directory for
|
||||
* security reasons.
|
||||
*/
|
||||
@@ -1217,7 +1217,7 @@ do_shell (
|
||||
int save_nwr;
|
||||
|
||||
/*
|
||||
* Disallow shell commands for "rvim".
|
||||
* Disallow shell commands in restricted mode (-Z)
|
||||
* Disallow shell commands from .exrc and .vimrc in current directory for
|
||||
* security reasons.
|
||||
*/
|
||||
@@ -3378,7 +3378,7 @@ void ex_z(exarg_T *eap)
|
||||
int check_restricted(void)
|
||||
{
|
||||
if (restricted) {
|
||||
EMSG(_("E145: Shell commands not allowed in rvim"));
|
||||
EMSG(_("E145: Shell commands not allowed in restricted mode"));
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user