On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <adshuang...@gmail.com> wrote: > anyone can tell me how to fix the problem? it just happen on some file > types like: cpp/c/cs/java/
> Problem: > ////////////////////////////////////////////////////////////////// > void foo() //press enter after the ')' > //cursor is here
> expected:
> void foo() > //i want the cursor here.
> -- > You received this message because you are subscribed to the Google Groups > "xptemplate" group. > To post to this group, send email to xptemplate@googlegroups.com. > To unsubscribe from this group, send email to > xptemplate+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/xptemplate?hl=en.
yes, you are right, the problem is that when I try to input the { at
the cursor there, the { will automatically move to the begin of the
line, but it doesn't work when the xptemplate is installed.
do you think it is a problem or do you know how can i fix it?
how to reproduce:
A: without: xptemplate:
void foo() //step 1: enter
//cursor here, step 2: then input the '{', the '{' will go to the
begin of the line.
like:
void foo()
{
B: with xptemplate installed:
void foo() //step 1: enter
//cursor here, step 2: then input the '{', the '{' will keep them
with the '}' added.
like:
void foo()
{}
Johnny
On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> Without a ";" I think the cursor should just be there where you actually
> got.
> It is an indentation feature by VIM itself.
> On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <adshuang...@gmail.com> wrote:
> > anyone can tell me how to fix the problem? it just happen on some file
> > types like: cpp/c/cs/java/
> > Problem:
> > //////////////////////////////////////////////////////////////////
> > void foo() //press enter after the ')'
> > //cursor is here
> > expected:
> > void foo()
> > //i want the cursor here.
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xptemplate" group.
> > To post to this group, send email to xptemplate@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xptemplate+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/xptemplate?hl=en.
> yes, you are right, the problem is that when I try to input the { at > the cursor there, the { will automatically move to the begin of the > line, but it doesn't work when the xptemplate is installed.
> do you think it is a problem or do you know how can i fix it?
> how to reproduce:
> A: without: xptemplate: > void foo() //step 1: enter > //cursor here, step 2: then input the '{', the '{' will go to the > begin of the line.
> like: > void foo() > {
> B: with xptemplate installed: > void foo() //step 1: enter > //cursor here, step 2: then input the '{', the '{' will keep them > with the '}' added.
> like: > void foo() > {}
> Johnny
> On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote: > > Without a ";" I think the cursor should just be there where you actually > > got.
> > It is an indentation feature by VIM itself.
> > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <adshuang...@gmail.com> > wrote: > > > anyone can tell me how to fix the problem? it just happen on some file > > > types like: cpp/c/cs/java/
> > > Problem: > > > ////////////////////////////////////////////////////////////////// > > > void foo() //press enter after the ')' > > > //cursor is here
> > > expected:
> > > void foo() > > > //i want the cursor here.
> > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "xptemplate" group. > > > To post to this group, send email to xptemplate@googlegroups.com. > > > To unsubscribe from this group, send email to > > > xptemplate+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/xptemplate?hl=en.
> > -- > > 要了几天饱饭就不记得西北风啥味了
> -- > You received this message because you are subscribed to the Google Groups > "xptemplate" group. > To post to this group, send email to xptemplate@googlegroups.com. > To unsubscribe from this group, send email to > xptemplate+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/xptemplate?hl=en.
> > yes, you are right, the problem is that when I try to input the { at
> > the cursor there, the { will automatically move to the begin of the
> > line, but it doesn't work when the xptemplate is installed.
> > do you think it is a problem or do you know how can i fix it?
> > how to reproduce:
> > A: without: xptemplate:
> > void foo() //step 1: enter
> > //cursor here, step 2: then input the '{', the '{' will go to the
> > begin of the line.
> > like:
> > void foo()
> > {
> > B: with xptemplate installed:
> > void foo() //step 1: enter
> > //cursor here, step 2: then input the '{', the '{' will keep them
> > with the '}' added.
> > like:
> > void foo()
> > {}
> > Johnny
> > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > Without a ";" I think the cursor should just be there where you actually
> > > got.
> > > It is an indentation feature by VIM itself.
> > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <adshuang...@gmail.com>
> > wrote:
> > > > anyone can tell me how to fix the problem? it just happen on some file
> > > > types like: cpp/c/cs/java/
> > > > Problem:
> > > > //////////////////////////////////////////////////////////////////
> > > > void foo() //press enter after the ')'
> > > > //cursor is here
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "xptemplate" group.
> > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > xptemplate+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/xptemplate?hl=en.
> > > --
> > > 要了几天饱饭就不记得西北风啥味了
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xptemplate" group.
> > To post to this group, send email to xptemplate@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xptemplate+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/xptemplate?hl=en.
> > > yes, you are right, the problem is that when I try to input the { at > > > the cursor there, the { will automatically move to the begin of the > > > line, but it doesn't work when the xptemplate is installed.
> > > do you think it is a problem or do you know how can i fix it?
> > > how to reproduce:
> > > A: without: xptemplate: > > > void foo() //step 1: enter > > > //cursor here, step 2: then input the '{', the '{' will go to the > > > begin of the line.
> > > like: > > > void foo() > > > {
> > > B: with xptemplate installed: > > > void foo() //step 1: enter > > > //cursor here, step 2: then input the '{', the '{' will keep them > > > with the '}' added.
> > > like: > > > void foo() > > > {}
> > > Johnny
> > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote: > > > > Without a ";" I think the cursor should just be there where you > actually > > > > got.
> > > > It is an indentation feature by VIM itself.
> > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <adshuang...@gmail.com> > > > wrote: > > > > > anyone can tell me how to fix the problem? it just happen on some > file > > > > > types like: cpp/c/cs/java/
> > > > > Problem: > > > > > ////////////////////////////////////////////////////////////////// > > > > > void foo() //press enter after the ')' > > > > > //cursor is here
> > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "xptemplate" group. > > > > > To post to this group, send email to xptemplate@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > > xptemplate+unsubscribe@googlegroups.com. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > -- > > > > 要了几天饱饭就不记得西北风啥味了
> > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "xptemplate" group. > > > To post to this group, send email to xptemplate@googlegroups.com. > > > To unsubscribe from this group, send email to > > > xptemplate+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/xptemplate?hl=en.
> > -- > > 要了几天饱饭就不记得西北风啥味了
> -- > You received this message because you are subscribed to the Google Groups > "xptemplate" group. > To post to this group, send email to xptemplate@googlegroups.com. > To unsubscribe from this group, send email to > xptemplate+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/xptemplate?hl=en.
thanks for you effort but sounds like it doesn't work on my OFFICE
PC. I will have a test when I back home tomorrow on my HOME PC.
Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
7.3 ? also it seems like the default value for the option
"g:xptemplate_brace_complete" has been change to 0? I have to set it
to 1 on the vimrc file to make this feature work.
am I missing anything? I am just start to use Vim for around 1 month.
On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > yes, you are right, the problem is that when I try to input the { at
> > > > the cursor there, the { will automatically move to the begin of the
> > > > line, but it doesn't work when the xptemplate is installed.
> > > > do you think it is a problem or do you know how can i fix it?
> > > > how to reproduce:
> > > > A: without: xptemplate:
> > > > void foo() //step 1: enter
> > > > //cursor here, step 2: then input the '{', the '{' will go to the
> > > > begin of the line.
> > > > like:
> > > > void foo()
> > > > {
> > > > B: with xptemplate installed:
> > > > void foo() //step 1: enter
> > > > //cursor here, step 2: then input the '{', the '{' will keep them
> > > > with the '}' added.
> > > > like:
> > > > void foo()
> > > > {}
> > > > Johnny
> > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > > Without a ";" I think the cursor should just be there where you
> > actually
> > > > > got.
> > > > > It is an indentation feature by VIM itself.
> > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <adshuang...@gmail.com>
> > > > wrote:
> > > > > > anyone can tell me how to fix the problem? it just happen on some
> > file
> > > > > > types like: cpp/c/cs/java/
> > > > > > Problem:
> > > > > > //////////////////////////////////////////////////////////////////
> > > > > > void foo() //press enter after the ')'
> > > > > > //cursor is here
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "xptemplate" group.
> > > > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > --
> > > > > 要了几天饱饭就不记得西北风啥味了
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "xptemplate" group.
> > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > xptemplate+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/xptemplate?hl=en.
> > > --
> > > 要了几天饱饭就不记得西北风啥味了
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xptemplate" group.
> > To post to this group, send email to xptemplate@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xptemplate+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/xptemplate?hl=en.
> thanks for you effort but sounds like it doesn't work on my OFFICE > PC. I will have a test when I back home tomorrow on my HOME PC.
> Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
I am not sure now about this issue. I use VIM 7.3 and it works fine. I'm gonna do more test on it. Because it depends on two settings 'indentkeys' and 'indentexpr' to work, any of them may cause it not to work.
Would you send me your .vimrc and a list of your plugins installed?
And please tell me the values of these following settings on your VIM with a .java file opened: :set indentkeys? :set indentexpr? :set cindent? :set cinkeys? :set cinoptions?
This will help a lot for tracking the problem. Thanks.
> 7.3 ? also it seems like the default value for the option > "g:xptemplate_brace_complete" has been change to 0? I have to set it > to 1 on the vimrc file to make this feature work.
Default value of g:xptemplate_brace_complete is 0 from this release. Because someone complained about this.
> > > > > yes, you are right, the problem is that when I try to input the { > at > > > > > the cursor there, the { will automatically move to the begin of the > > > > > line, but it doesn't work when the xptemplate is installed.
> > > > > do you think it is a problem or do you know how can i fix it?
> > > > > how to reproduce:
> > > > > A: without: xptemplate: > > > > > void foo() //step 1: enter > > > > > //cursor here, step 2: then input the '{', the '{' will go to > the > > > > > begin of the line.
> > > > > like: > > > > > void foo() > > > > > {
> > > > > B: with xptemplate installed: > > > > > void foo() //step 1: enter > > > > > //cursor here, step 2: then input the '{', the '{' will keep > them > > > > > with the '}' added.
> > > > > like: > > > > > void foo() > > > > > {}
> > > > > Johnny
> > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote: > > > > > > Without a ";" I think the cursor should just be there where you > > > actually > > > > > > got.
> > > > > > It is an indentation feature by VIM itself.
> > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh < > adshuang...@gmail.com> > > > > > wrote: > > > > > > > anyone can tell me how to fix the problem? it just happen on > some > > > file > > > > > > > types like: cpp/c/cs/java/
> > > > > > > Problem:
> ////////////////////////////////////////////////////////////////// > > > > > > > void foo() //press enter after the ')' > > > > > > > //cursor is here
> > > > > > > -- > > > > > > > You received this message because you are subscribed to the > Google > > > > > Groups > > > > > > > "xptemplate" group. > > > > > > > To post to this group, send email to > xptemplate@googlegroups.com. > > > > > > > To unsubscribe from this group, send email to > > > > > > > xptemplate+unsubscribe@googlegroups.com. > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > > -- > > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "xptemplate" group. > > > > > To post to this group, send email to xptemplate@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > > xptemplate+unsubscribe@googlegroups.com. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > -- > > > > 要了几天饱饭就不记得西北风啥味了
> > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "xptemplate" group. > > > To post to this group, send email to xptemplate@googlegroups.com. > > > To unsubscribe from this group, send email to > > > xptemplate+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/xptemplate?hl=en.
> > -- > > 要了几天饱饭就不记得西北风啥味了
> -- > You received this message because you are subscribed to the Google Groups > "xptemplate" group. > To post to this group, send email to xptemplate@googlegroups.com. > To unsubscribe from this group, send email to > xptemplate+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/xptemplate?hl=en.
>> thanks for you effort but sounds like it doesn't work on my OFFICE >> PC. I will have a test when I back home tomorrow on my HOME PC.
>> Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
> I am not sure now about this issue. I use VIM 7.3 and it works fine. I'm > gonna do more test on it. > Because it depends on two settings 'indentkeys' and 'indentexpr' to work, > any of them may cause it not to work.
> Would you send me your .vimrc and a list of your plugins installed?
> And please tell me the values of these following settings on your VIM with > a .java file opened: > :set indentkeys? > :set indentexpr? > :set cindent? > :set cinkeys? > :set cinoptions?
> This will help a lot for tracking the problem. > Thanks.
>> 7.3 ? also it seems like the default value for the option >> "g:xptemplate_brace_complete" has been change to 0? I have to set it >> to 1 on the vimrc file to make this feature work.
> Default value of g:xptemplate_brace_complete is 0 from this release. > Because someone complained about this.
>> am I missing anything? I am just start to use Vim for around 1 month.
>> On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote: >> > This issue has been fixed. check it out.
>> > > > > yes, you are right, the problem is that when I try to input the { >> at >> > > > > the cursor there, the { will automatically move to the begin of >> the >> > > > > line, but it doesn't work when the xptemplate is installed.
>> > > > > do you think it is a problem or do you know how can i fix it?
>> > > > > how to reproduce:
>> > > > > A: without: xptemplate: >> > > > > void foo() //step 1: enter >> > > > > //cursor here, step 2: then input the '{', the '{' will go to >> the >> > > > > begin of the line.
>> > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote: >> > > > > > Without a ";" I think the cursor should just be there where you >> > > actually >> > > > > > got.
>> > > > > > It is an indentation feature by VIM itself.
>> > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh < >> adshuang...@gmail.com> >> > > > > wrote: >> > > > > > > anyone can tell me how to fix the problem? it just happen on >> some >> > > file >> > > > > > > types like: cpp/c/cs/java/
>> > > > > > > Problem:
>> ////////////////////////////////////////////////////////////////// >> > > > > > > void foo() //press enter after the ')' >> > > > > > > //cursor is here
>> > > > > > > -- >> > > > > > > You received this message because you are subscribed to the >> Google >> > > > > Groups >> > > > > > > "xptemplate" group. >> > > > > > > To post to this group, send email to >> xptemplate@googlegroups.com. >> > > > > > > To unsubscribe from this group, send email to >> > > > > > > xptemplate+unsubscribe@googlegroups.com. >> > > > > > > For more options, visit this group at >> > > > > > >http://groups.google.com/group/xptemplate?hl=en.
>> > > > > > -- >> > > > > > 要了几天饱饭就不记得西北风啥味了
>> > > > > -- >> > > > > You received this message because you are subscribed to the Google >> > > Groups >> > > > > "xptemplate" group. >> > > > > To post to this group, send email to xptemplate@googlegroups.com. >> > > > > To unsubscribe from this group, send email to >> > > > > xptemplate+unsubscribe@googlegroups.com. >> > > > > For more options, visit this group at >> > > > >http://groups.google.com/group/xptemplate?hl=en.
>> > > > -- >> > > > 要了几天饱饭就不记得西北风啥味了
>> > > -- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "xptemplate" group. >> > > To post to this group, send email to xptemplate@googlegroups.com. >> > > To unsubscribe from this group, send email to >> > > xptemplate+unsubscribe@googlegroups.com. >> > > For more options, visit this group at >> > >http://groups.google.com/group/xptemplate?hl=en.
>> > -- >> > 要了几天饱饭就不记得西北风啥味了
>> -- >> You received this message because you are subscribed to the Google Groups >> "xptemplate" group. >> To post to this group, send email to xptemplate@googlegroups.com. >> To unsubscribe from this group, send email to >> xptemplate+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/xptemplate?hl=en.
> > thanks for you effort but sounds like it doesn't work on my OFFICE
> > PC. I will have a test when I back home tomorrow on my HOME PC.
> > Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
> I am not sure now about this issue. I use VIM 7.3 and it works fine. I'm
> gonna do more test on it.
> Because it depends on two settings 'indentkeys' and 'indentexpr' to work,
> any of them may cause it not to work.
> Would you send me your .vimrc and a list of your plugins installed?
> And please tell me the values of these following settings on your VIM with a
> .java file opened:
> :set indentkeys?
> :set indentexpr?
> :set cindent?
> :set cinkeys?
> :set cinoptions?
> This will help a lot for tracking the problem.
> Thanks.
> > 7.3 ? also it seems like the default value for the option
> > "g:xptemplate_brace_complete" has been change to 0? I have to set it
> > to 1 on the vimrc file to make this feature work.
> Default value of g:xptemplate_brace_complete is 0 from this release. Because
> someone complained about this.
> > am I missing anything? I am just start to use Vim for around 1 month.
> > On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > This issue has been fixed. check it out.
> > > > > > yes, you are right, the problem is that when I try to input the {
> > at
> > > > > > the cursor there, the { will automatically move to the begin of the
> > > > > > line, but it doesn't work when the xptemplate is installed.
> > > > > > do you think it is a problem or do you know how can i fix it?
> > > > > > how to reproduce:
> > > > > > A: without: xptemplate:
> > > > > > void foo() //step 1: enter
> > > > > > //cursor here, step 2: then input the '{', the '{' will go to
> > the
> > > > > > begin of the line.
> > > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > > > > Without a ";" I think the cursor should just be there where you
> > > > actually
> > > > > > > got.
> > > > > > > It is an indentation feature by VIM itself.
> > > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <
> > adshuang...@gmail.com>
> > > > > > wrote:
> > > > > > > > anyone can tell me how to fix the problem? it just happen on
> > some
> > > > file
> > > > > > > > types like: cpp/c/cs/java/
> > > > > > > > Problem:
> > //////////////////////////////////////////////////////////////////
> > > > > > > > void foo() //press enter after the ')'
> > > > > > > > //cursor is here
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups
> > > > > > > > "xptemplate" group.
> > > > > > > > To post to this group, send email to
> > xptemplate@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > > > --
> > > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "xptemplate" group.
> > > > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > --
> > > > > 要了几天饱饭就不记得西北风啥味了
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "xptemplate" group.
> > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > xptemplate+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/xptemplate?hl=en.
> > > --
> > > 要了几天饱饭就不记得西北风啥味了
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xptemplate" group.
> > To post to this group, send email to xptemplate@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xptemplate+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/xptemplate?hl=en.
> > thanks for you effort but sounds like it doesn't work on my OFFICE
> > PC. I will have a test when I back home tomorrow on my HOME PC.
> > Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
> I am not sure now about this issue. I use VIM 7.3 and it works fine. I'm
> gonna do more test on it.
> Because it depends on two settings 'indentkeys' and 'indentexpr' to work,
> any of them may cause it not to work.
> Would you send me your .vimrc and a list of your plugins installed?
> And please tell me the values of these following settings on your VIM with a
> .java file opened:
> :set indentkeys?
> :set indentexpr?
> :set cindent?
> :set cinkeys?
> :set cinoptions?
> This will help a lot for tracking the problem.
> Thanks.
> > 7.3 ? also it seems like the default value for the option
> > "g:xptemplate_brace_complete" has been change to 0? I have to set it
> > to 1 on the vimrc file to make this feature work.
> Default value of g:xptemplate_brace_complete is 0 from this release. Because
> someone complained about this.
> > am I missing anything? I am just start to use Vim for around 1 month.
> > On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > This issue has been fixed. check it out.
> > > > > > yes, you are right, the problem is that when I try to input the {
> > at
> > > > > > the cursor there, the { will automatically move to the begin of the
> > > > > > line, but it doesn't work when the xptemplate is installed.
> > > > > > do you think it is a problem or do you know how can i fix it?
> > > > > > how to reproduce:
> > > > > > A: without: xptemplate:
> > > > > > void foo() //step 1: enter
> > > > > > //cursor here, step 2: then input the '{', the '{' will go to
> > the
> > > > > > begin of the line.
> > > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > > > > Without a ";" I think the cursor should just be there where you
> > > > actually
> > > > > > > got.
> > > > > > > It is an indentation feature by VIM itself.
> > > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <
> > adshuang...@gmail.com>
> > > > > > wrote:
> > > > > > > > anyone can tell me how to fix the problem? it just happen on
> > some
> > > > file
> > > > > > > > types like: cpp/c/cs/java/
> > > > > > > > Problem:
> > //////////////////////////////////////////////////////////////////
> > > > > > > > void foo() //press enter after the ')'
> > > > > > > > //cursor is here
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups
> > > > > > > > "xptemplate" group.
> > > > > > > > To post to this group, send email to
> > xptemplate@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > > > --
> > > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "xptemplate" group.
> > > > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > --
> > > > > 要了几天饱饭就不记得西北风啥味了
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "xptemplate" group.
> > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > xptemplate+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/xptemplate?hl=en.
> > > --
> > > 要了几天饱饭就不记得西北风啥味了
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xptemplate" group.
> > To post to this group, send email to xptemplate@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xptemplate+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/xptemplate?hl=en.
Hi,
I just install the vim73 in a clean machine, with the only plugin
xptemplate installed, unfortunatelly, the issue is still there with
the vimrc as below:
set nocompatible
filetype plugin on
let g:xptemplate_brace_complete=1
so it sounds like we need another settings to make it work?
On Jul 6, 3:35 pm, dr-dr xp <drdr...@gmail.com> wrote:
> > thanks for you effort but sounds like it doesn't work on my OFFICE
> > PC. I will have a test when I back home tomorrow on my HOME PC.
> > Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
> I am not sure now about this issue. I use VIM 7.3 and it works fine. I'm
> gonna do more test on it.
> Because it depends on two settings 'indentkeys' and 'indentexpr' to work,
> any of them may cause it not to work.
> Would you send me your .vimrc and a list of your plugins installed?
> And please tell me the values of these following settings on your VIM with a
> .java file opened:
> :set indentkeys?
> :set indentexpr?
> :set cindent?
> :set cinkeys?
> :set cinoptions?
> This will help a lot for tracking the problem.
> Thanks.
> > 7.3 ? also it seems like the default value for the option
> > "g:xptemplate_brace_complete" has been change to 0? I have to set it
> > to 1 on the vimrc file to make this feature work.
> Default value of g:xptemplate_brace_complete is 0 from this release. Because
> someone complained about this.
> > am I missing anything? I am just start to use Vim for around 1 month.
> > On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > This issue has been fixed. check it out.
> > > > > > yes, you are right, the problem is that when I try to input the {
> > at
> > > > > > the cursor there, the { will automatically move to the begin of the
> > > > > > line, but it doesn't work when the xptemplate is installed.
> > > > > > do you think it is a problem or do you know how can i fix it?
> > > > > > how to reproduce:
> > > > > > A: without: xptemplate:
> > > > > > void foo() //step 1: enter
> > > > > > //cursor here, step 2: then input the '{', the '{' will go to
> > the
> > > > > > begin of the line.
> > > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > > > > Without a ";" I think the cursor should just be there where you
> > > > actually
> > > > > > > got.
> > > > > > > It is an indentation feature by VIM itself.
> > > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <
> > adshuang...@gmail.com>
> > > > > > wrote:
> > > > > > > > anyone can tell me how to fix the problem? it just happen on
> > some
> > > > file
> > > > > > > > types like: cpp/c/cs/java/
> > > > > > > > Problem:
> > //////////////////////////////////////////////////////////////////
> > > > > > > > void foo() //press enter after the ')'
> > > > > > > > //cursor is here
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups
> > > > > > > > "xptemplate" group.
> > > > > > > > To post to this group, send email to
> > xptemplate@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > > > --
> > > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "xptemplate" group.
> > > > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > --
> > > > > 要了几天饱饭就不记得西北风啥味了
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "xptemplate" group.
> > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > xptemplate+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/xptemplate?hl=en.
> > > --
> > > 要了几天饱饭就不记得西北风啥味了
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xptemplate" group.
> > To post to this group, send email to xptemplate@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xptemplate+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/xptemplate?hl=en.
I just have the Vim7.3 + xptemplate installed on a CLEAN machine, and
the problem is still there, sounds like it need other options set to
make it work correctly.
vimrc file:
set nocompatible
filetype plugin on
let g:xptemplate_brace_complete=1
On Jul 6, 3:35 pm, dr-dr xp <drdr...@gmail.com> wrote:
> > thanks for you effort but sounds like it doesn't work on my OFFICE
> > PC. I will have a test when I back home tomorrow on my HOME PC.
> > Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
> I am not sure now about this issue. I use VIM 7.3 and it works fine. I'm
> gonna do more test on it.
> Because it depends on two settings 'indentkeys' and 'indentexpr' to work,
> any of them may cause it not to work.
> Would you send me your .vimrc and a list of your plugins installed?
> And please tell me the values of these following settings on your VIM with a
> .java file opened:
> :set indentkeys?
> :set indentexpr?
> :set cindent?
> :set cinkeys?
> :set cinoptions?
> This will help a lot for tracking the problem.
> Thanks.
> > 7.3 ? also it seems like the default value for the option
> > "g:xptemplate_brace_complete" has been change to 0? I have to set it
> > to 1 on the vimrc file to make this feature work.
> Default value of g:xptemplate_brace_complete is 0 from this release. Because
> someone complained about this.
> > am I missing anything? I am just start to use Vim for around 1 month.
> > On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > This issue has been fixed. check it out.
> > > > > > yes, you are right, the problem is that when I try to input the {
> > at
> > > > > > the cursor there, the { will automatically move to the begin of the
> > > > > > line, but it doesn't work when the xptemplate is installed.
> > > > > > do you think it is a problem or do you know how can i fix it?
> > > > > > how to reproduce:
> > > > > > A: without: xptemplate:
> > > > > > void foo() //step 1: enter
> > > > > > //cursor here, step 2: then input the '{', the '{' will go to
> > the
> > > > > > begin of the line.
> > > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > > > > Without a ";" I think the cursor should just be there where you
> > > > actually
> > > > > > > got.
> > > > > > > It is an indentation feature by VIM itself.
> > > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <
> > adshuang...@gmail.com>
> > > > > > wrote:
> > > > > > > > anyone can tell me how to fix the problem? it just happen on
> > some
> > > > file
> > > > > > > > types like: cpp/c/cs/java/
> > > > > > > > Problem:
> > //////////////////////////////////////////////////////////////////
> > > > > > > > void foo() //press enter after the ')'
> > > > > > > > //cursor is here
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups
> > > > > > > > "xptemplate" group.
> > > > > > > > To post to this group, send email to
> > xptemplate@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > > > --
> > > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "xptemplate" group.
> > > > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > --
> > > > > 要了几天饱饭就不记得西北风啥味了
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "xptemplate" group.
> > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > xptemplate+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/xptemplate?hl=en.
> > > --
> > > 要了几天饱饭就不记得西北风啥味了
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xptemplate" group.
> > To post to this group, send email to xptemplate@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xptemplate+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/xptemplate?hl=en.
Sorry, I sent to drdrxp@gmail by mistake, please check it now.
also update:
I just have the Vim7.3 with the only plugin xptemplate installed on a
CLEAN machine, and the problem is still there, sounds like it need
other options set to make it work correctly.
vimrc file:
set nocompatible
filetype plugin on
let g:xptemplate_brace_complete=1
On Jul 6, 4:56 pm, adshuangjoh <adshuang...@gmail.com> wrote:
> > > thanks for you effort but sounds like it doesn't work on my OFFICE
> > > PC. I will have a test when I back home tomorrow on my HOME PC.
> > > Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
> > I am not sure now about this issue. I use VIM 7.3 and it works fine. I'm
> > gonna do more test on it.
> > Because it depends on two settings 'indentkeys' and 'indentexpr' to work,
> > any of them may cause it not to work.
> > Would you send me your .vimrc and a list of your plugins installed?
> > And please tell me the values of these following settings on your VIM with a
> > .java file opened:
> > :set indentkeys?
> > :set indentexpr?
> > :set cindent?
> > :set cinkeys?
> > :set cinoptions?
> > This will help a lot for tracking the problem.
> > Thanks.
> > > 7.3 ? also it seems like the default value for the option
> > > "g:xptemplate_brace_complete" has been change to 0? I have to set it
> > > to 1 on the vimrc file to make this feature work.
> > Default value of g:xptemplate_brace_complete is 0 from this release. Because
> > someone complained about this.
> > > am I missing anything? I am just start to use Vim for around 1 month.
> > > On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > This issue has been fixed. check it out.
> > > > > > > yes, you are right, the problem is that when I try to input the {
> > > at
> > > > > > > the cursor there, the { will automatically move to the begin of the
> > > > > > > line, but it doesn't work when the xptemplate is installed.
> > > > > > > do you think it is a problem or do you know how can i fix it?
> > > > > > > how to reproduce:
> > > > > > > A: without: xptemplate:
> > > > > > > void foo() //step 1: enter
> > > > > > > //cursor here, step 2: then input the '{', the '{' will go to
> > > the
> > > > > > > begin of the line.
> > > > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote:
> > > > > > > > Without a ";" I think the cursor should just be there where you
> > > > > actually
> > > > > > > > got.
> > > > > > > > It is an indentation feature by VIM itself.
> > > > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh <
> > > adshuang...@gmail.com>
> > > > > > > wrote:
> > > > > > > > > anyone can tell me how to fix the problem? it just happen on
> > > some
> > > > > file
> > > > > > > > > types like: cpp/c/cs/java/
> > > > > > > > > Problem:
> > > //////////////////////////////////////////////////////////////////
> > > > > > > > > void foo() //press enter after the ')'
> > > > > > > > > //cursor is here
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the Google
> > > > > Groups
> > > > > > > "xptemplate" group.
> > > > > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > > --
> > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "xptemplate" group.
> > > > > To post to this group, send email to xptemplate@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > xptemplate+unsubscribe@googlegroups.com.
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > --
> > > > 要了几天饱饭就不记得西北风啥味了
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "xptemplate" group.
> > > To post to this group, send email to xptemplate@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > xptemplate+unsubscribe@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/xptemplate?hl=en.
On Wed, Jul 6, 2011 at 11:01 PM, adshuangjoh <adshuang...@gmail.com> wrote: > Sorry, I sent to drdrxp@gmail by mistake, please check it now.
> also update: > I just have the Vim7.3 with the only plugin xptemplate installed on a > CLEAN machine, and the problem is still there, sounds like it need > other options set to make it work correctly.
> vimrc file: > set nocompatible > filetype plugin on > let g:xptemplate_brace_complete=1
> > > > thanks for you effort but sounds like it doesn't work on my OFFICE > > > > PC. I will have a test when I back home tomorrow on my HOME PC.
> > > > Is this fix just for the Vim 7.2 ? does it matter if I use the Vim
> > > I am not sure now about this issue. I use VIM 7.3 and it works fine. > I'm > > > gonna do more test on it. > > > Because it depends on two settings 'indentkeys' and 'indentexpr' to > work, > > > any of them may cause it not to work.
> > > Would you send me your .vimrc and a list of your plugins installed?
> > > And please tell me the values of these following settings on your VIM > with a > > > .java file opened: > > > :set indentkeys? > > > :set indentexpr? > > > :set cindent? > > > :set cinkeys? > > > :set cinoptions?
> > > This will help a lot for tracking the problem. > > > Thanks.
> > > > 7.3 ? also it seems like the default value for the option > > > > "g:xptemplate_brace_complete" has been change to 0? I have to set it > > > > to 1 on the vimrc file to make this feature work.
> > > Default value of g:xptemplate_brace_complete is 0 from this release. > Because > > > someone complained about this.
> > > > am I missing anything? I am just start to use Vim for around 1 > month.
> > > > On Jul 6, 12:17 am, dr-dr xp <drdr...@gmail.com> wrote: > > > > > This issue has been fixed. check it out.
> > > > > > > > yes, you are right, the problem is that when I try to input > the { > > > > at > > > > > > > > the cursor there, the { will automatically move to the begin > of the > > > > > > > > line, but it doesn't work when the xptemplate is installed.
> > > > > > > > do you think it is a problem or do you know how can i fix it?
> > > > > > > > how to reproduce:
> > > > > > > > A: without: xptemplate: > > > > > > > > void foo() //step 1: enter > > > > > > > > //cursor here, step 2: then input the '{', the '{' will go > to > > > > the > > > > > > > > begin of the line.
> > > > > > > > On Jul 4, 2:40 am, dr-dr xp <drdr...@gmail.com> wrote: > > > > > > > > > Without a ";" I think the cursor should just be there where > you > > > > > > actually > > > > > > > > > got.
> > > > > > > > > It is an indentation feature by VIM itself.
> > > > > > > > > On Sat, Jul 2, 2011 at 6:11 PM, adshuangjoh < > > > > adshuang...@gmail.com> > > > > > > > > wrote: > > > > > > > > > > anyone can tell me how to fix the problem? it just happen > on > > > > some > > > > > > file > > > > > > > > > > types like: cpp/c/cs/java/
> > > > > > > > > > Problem:
> > > > ////////////////////////////////////////////////////////////////// > > > > > > > > > > void foo() //press enter after the ')' > > > > > > > > > > //cursor is here
> > > > > > > > -- > > > > > > > > You received this message because you are subscribed to the > Google > > > > > > Groups > > > > > > > > "xptemplate" group. > > > > > > > > To post to this group, send email to > xptemplate@googlegroups.com. > > > > > > > > To unsubscribe from this group, send email to > > > > > > > > xptemplate+unsubscribe@googlegroups.com. > > > > > > > > For more options, visit this group at > > > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > > > -- > > > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > > > -- > > > > > > You received this message because you are subscribed to the > Google > > > > Groups > > > > > > "xptemplate" group. > > > > > > To post to this group, send email to xptemplate@googlegroups.com > . > > > > > > To unsubscribe from this group, send email to > > > > > > xptemplate+unsubscribe@googlegroups.com. > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > > > -- > > > > > 要了几天饱饭就不记得西北风啥味了
> > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > > "xptemplate" group. > > > > To post to this group, send email to xptemplate@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > xptemplate+unsubscribe@googlegroups.com. > > > > For more options, visit this group at > > > >http://groups.google.com/group/xptemplate?hl=en.
> > > -- > > > 要了几天饱饭就不记得西北风啥味了
> -- > You received this message because you are subscribed to the Google Groups > "xptemplate" group. > To post to this group, send email to xptemplate@googlegroups.com. > To unsubscribe from this group, send email to > xptemplate+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/xptemplate?hl=en.