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()
{
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
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
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
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