VIM autondent on C++ source-code

2007-01-31 Thread Vishnu M Menon
Hello, Could someone help me with the following issue, please? autoindent in Vim works great for most of the source-code. However, when I try it on the following, for example, string GetHelloWorld() { return string(Hello, world!); } , the indentation becomes string GetHelloWorld() {

RE: regexp select and place elsewhere

2006-06-29 Thread Vishnu
Hi Jerin, Use the following reg exp, :%s/\(\[\d\+:\d\+] \)\(.*\.\)\(\i\+\);/\2\3 \1\3;/ :h \( ~VIshnu -Original Message- From: Jerin Joy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 2:29 PM To: vim@vim.org Subject: regexp select and place elsewhere Hi, I have

RE: Copying everything which matches a pattern

2006-05-31 Thread Vishnu
Hi Shankar, :g/pattern/t$ t - copy to address $ you can call function instead of t$ ~Vishnu -Original Message- From: SHANKAR R-R66203 [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 3:41 PM To: 'vim@vim.org' Subject: Copying everything which matches a pattern Hi Vimmers

RE: Copying everything (not the complete line, only the matching pattern) which matches a pattern

2006-05-31 Thread Vishnu
Hi Shankar, 1. Get the pattern matching lines in a separate buffer :g/pattern/t$ 2. :%s/^.*\(your-pattern\).*$/\1/ ~VIshhu -Original Message- From: SHANKAR R-R66203 [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 4:06 PM To: 'Vishnu' Cc: vim@vim.org Subject: RE: Copying

RE: VIM 7: feature documentation

2006-05-09 Thread Vishnu
Hi Fabio, If you are installed vim version 7, then type the following in the vim command line :h version7.txt ~VIshnu -Original Message- From: Fabio Rotondo [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 12:42 PM To: vim@vim.org Subject: VIM 7: feature documentation Hi