Apr 8, 2011 #1 anoop12 Member level 5 Joined Nov 29, 2006 Messages 89 Helped 6 Reputation 12 Reaction score 3 Trophy points 1,288 Activity points 1,867 Hi, I have a file having filenames. The files contains names ending with .c and .csh . When I search for .c pattern using "/" in gvim, the .c pattern in .csh is also getting selected. I have to filterout only .c file names. Can anyone help? Thanks in advance
Hi, I have a file having filenames. The files contains names ending with .c and .csh . When I search for .c pattern using "/" in gvim, the .c pattern in .csh is also getting selected. I have to filterout only .c file names. Can anyone help? Thanks in advance
Apr 8, 2011 #2 L lostinxlation Advanced Member level 2 Joined Aug 19, 2010 Messages 699 Helped 197 Reputation 394 Reaction score 183 Trophy points 1,323 Location San Jose area Activity points 5,051 :/\.c[^a-z]
Apr 18, 2011 #3 E ee171 Member level 5 Joined Apr 19, 2002 Messages 86 Helped 4 Reputation 10 Reaction score 4 Trophy points 1,288 Activity points 455 If you have a space after the file it's pretty easy to do: /\.c / This leverages the extra space character.
If you have a space after the file it's pretty easy to do: /\.c / This leverages the extra space character.
Apr 30, 2011 #4 K kulkarni_saurabh Newbie level 6 Joined Jul 28, 2005 Messages 13 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,283 Activity points 1,383 Use the following command at the gvim command prompt. Code: :/c\s*$