-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 08/24/2010 11:12 AM, Ben Fritz wrote:
This is true, but you can restrict matches to always start within the
last (or current) visual selection. See:
:help /\%V
http://vim.wikia.com/wiki/Search_and_replace_in_a_visual_selection
Works great
On 08/23/2010 11:12 PM, Ben Fritz wrote:
On Aug 23, 9:00 pm, AKandrei@gmail.com wrote:
No mistake, but you apparently did not know that s command works on the
whole line, always, as far as I know.
This is true, but you can restrict matches to always start within the
last (or current)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Assuming a typo ,
char test [] = { a , b , c , d }; // should be { 'a' , 'b' , 'c' }
Now i need to make the correction.
So i pressed v , select from '{' to '}' , typed in command s/\w/''/g (
',' is automatically
On 08/23/2010 09:47 PM, Aaron Lewis wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Assuming a typo ,
char test [] = { a , b , c , d }; // should be { 'a' , 'b' , 'c' }
Now i need to make the correction.
So i pressed v , select from '{' to '}' , typed
On Aug 23, 9:00 pm, AK andrei@gmail.com wrote:
No mistake, but you apparently did not know that s command works on the
whole line, always, as far as I know.
This is true, but you can restrict matches to always start within the
last (or current) visual selection. See:
:help /\%V
Thanks a lot ... this is really useful .. looks like even search can
be restricted to within the selection!
On Tue, Aug 24, 2010 at 8:42 AM, Ben Fritz fritzophre...@gmail.com wrote:
On Aug 23, 9:00 pm, AK andrei@gmail.com wrote:
No mistake, but you apparently did not know that s command