Loading ...
Sorry, an error occurred while loading the content.

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

Expand Messages
  • Salman Halim
    Jun 24, 2013
      On Monday, June 24, 2013, Paul Maier wrote:

      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!

      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,


      سلمان حلیم

      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 7 messages in this topic