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 added ) , and all of the character was wrapped
with quotes , why ?
If i removed /g , the first character 'c' was quoted.
Did i make any mistakes here ?
Thanks !
GVIM 7.3 , Gentoo.
- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxzJMQACgkQvf41sEptMqCT8wCgjkhAZ6v8QBEWLpEsPEZNYQQO
3esAniwEXXBIRaLXKufWbydUc+5uB0mq
=qY2S
-----END PGP SIGNATURE-----
--
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
No comments:
Post a Comment