Hi Romel,
(please don't top poste)
On Do, 23 Okt 2014, Romel Khan wrote:
> Here is what is happening: different users are actually running a program called myedit. So user are running say 'myedit file1'. The myedit program is actually running vim in it and editing a different file file2. People who run myedit edits the file using normal vi commands & thinking they are editing file1. They would be saving the normal :w, :wq or :x. I don't want the users to know that they actually ended up editing the file2 as that could be a security issue.
> I am not clear on how I can implement what you suggested and meet the above need.
And the users use Vi commands? What happens if they use in normal mode
<ctrl-g>? Then they will now that they are editing a different file.
Well, basically the idea is, create the custom :W command from my last
message and then use the cmdalias plugin to alias that command to :w
command. That needs to be done for all commands that save a file. I do
not think, there is an easier method.
Best,
Christian
--
Auf dem Markt glaubt niemand an höhere Menschen.
-- Friedrich Wilhelm Nietzsche
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment