brackets placement in vim

2006-04-28 Thread Justin Randall
Hi, I would like to know if there is an easy way to fix the placement of { } brackets in vim so that they fall two or three spaces intented. For example in a C++ file I'm currently working on, I have: if (pExample != NULL) { // code here } What I would like is to have the brackets

Re: brackets placement in vim

2006-04-28 Thread Gerald Lai
On Fri, 28 Apr 2006, Justin Randall wrote: Hi, I would like to know if there is an easy way to fix the placement of { } brackets in vim so that they fall two or three spaces intented. For example in a C++ file I'm currently working on, I have: if (pExample != NULL) { // code here } What

Re: brackets placement in vim

2006-04-28 Thread dax2
On Fri, 28 Apr 2006 14:59:21 -0700 (PDT) Justin wrote: if (pExample != NULL) { // code here } Any ideas as to how I can achieve this? The general approach is to place the cursor on the if-line (or any other beginning line) and then use indent(1), the C source format program

Re: brackets placement in vim

2006-04-28 Thread Yegappan Lakshmanan
Hello, On 4/28/06, Justin Randall [EMAIL PROTECTED] wrote: Hi, I would like to know if there is an easy way to fix the placement of { } brackets in vim so that they fall two or three spaces intented. For example in a C++ file I'm currently working on, I have: if (pExample != NULL