Author Topic: Vim emulation: :s(substitute)  (Read 3366 times)

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Vim emulation: :s(substitute)
« on: July 24, 2007, 02:17:40 pm »
In text mode vim (WinXP), the help for :s says:
:[range]s[ubstitute]/{pattern}/{string}/[flags] [count]

When I type on the vim command line
s/^static/\/\/static/g 100
I get an "Invalid option" error.  If I remove the '100', the command executes, but only on the current line. 

Thanks.


Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: Vim emulation: :s(substitute)
« Reply #1 on: July 30, 2007, 06:50:10 pm »
Indeed...the [count] option is not supported in the SlickEdit Vim :s implementation.  I have filed a feature request for this (though some might consider it a bug  ;)), and will hopefully get it into our next patch.  Thanks!

- Ryan