Monday, June 24, 2013

Re: compatibility with Sun's original vi for command :su



On Monday, June 24, 2013, Paul Maier wrote:
Hi,

the original vi on Sun took :su as :suspend,
whereas vim takes :su as :substitute.

I am very used to typing :su.

Would it be possible for VIM 7.4 to add a new compatibility flag to cpoptions
about the meaning of :su ?

suggested compatible flag:  :su = :suspend,  :s = :substitute
without the flag:           :su = :substitute

Thanks for responding!
  Paul


Why not just do something like:

:cab su substitute

Or, if you want to make sure it's only after a colon (and not after every occurrence of "su"), look up getcmdpos() and only act if it's at the beginning of the command-line.

Hope this helps,

Salman


--
سلمان حلیم

--
--
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/groups/opt_out.
 
 

No comments: