On 22:54 Tue 25 Jun , Bram Moolenaar wrote: > > Christian Brabandt wrote: > > > On Mon, June 24, 2013 23:54, 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 > > > > > > > Looks like a bug to me. POSIX also requires :su to be used for > > :suspend (http://pubs.opengroup.org/onlinepubs/007908799/xcu/ex.html) > > > > Do we need a new cpo setting here, or should it be enough to > > patch vim to take :su as :suspend? > > The POSIX spec has a bug: it says that :s means :substitute, which means > anything starting with :s means :substitute, including :su. But then > :suspend can be abbreviated to :su, that's a conflict. > > Relevant quotes: > > For each of the commands listed below, the command can be > entered as the abbreviation (those characters in the Synopsis > command word preceding the [), the full command (all characters > shown for the command word, omitting the [ and ]), or any subset > of the characters of the full command down to the abbreviation. > For example, the args command (shown as ar[gs] in the Synopsis) > can be entered as ar, arg or args. > > [...] > > Substitute > > Synopsis: [range] s[ubstitute] [/pattern/repl/[options] [count] [flags]] > > [...] > > Suspend > > Synopsis: su[spend][!] > > > Making an exception for :su to mean :suspend instead of :substitute > would be weird.
Hi, You can use my command alias plugin and type :su and get :suspend: http://www.vim.org/scripts/script.php?script_id=4250 (it is also on github: https://github.com/coot/cmdalias_vim) Best regards, Marcin -- -- 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/groups/opt_out.
