SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: Wanderer on July 24, 2007, 02:17:40 PM

Title: Vim emulation: :s(substitute)
Post by: Wanderer 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.

Title: Re: Vim emulation: :s(substitute)
Post by: Ryan 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