Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
如果当前行是注释(有//开头),按o的话,会在下一行自动加上 //, 能不能让他不自动加上//
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
aj3423  
View profile   Translate to Translated (View Original)
 More options Nov 8, 7:16 am
From: aj3423 <aj3...@gmail.com>
Date: Sun, 8 Nov 2009 04:16:46 -0800 (PST)
Local: Sun, Nov 8 2009 7:16 am
Subject: 如果当前行是注释(有//开头),按o的话,会在下一行自动加上//, 能不能让他不自动加上//
如果当前行是注释(有//开头),按o的话,会在下一行自动加上//, 能不能让他不自动加上//

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RedNax  
View profile   Translate to Translated (View Original)
 More options Nov 8, 9:39 am
From: RedNax <yujianr...@gmail.com>
Date: Sun, 8 Nov 2009 06:39:10 -0800 (PST)
Local: Sun, Nov 8 2009 9:39 am
Subject: Re: 如果当前行是注释(有//开头),按o的话,会在下一行自动加上//, 能不能让他不自动加上//
vimrc里面加入
au BufEnter * set formatoptions-=o   " do not copy the comment mark
when use 'o' to add a new line.

你可以用 :help formatoptions 获得该设置项详情,

On Nov 8, 8:16 pm, aj3423 <aj3...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
蓝色基因  
View profile   Translate to Translated (View Original)
 More options Nov 10, 12:37 pm
From: 蓝色基因 <bluegene8...@gmail.com>
Date: Tue, 10 Nov 2009 09:37:56 -0800 (PST)
Local: Tues, Nov 10 2009 12:37 pm
Subject: Re: 如果当前行是注释(有//开头),按o的话,会在下一行自动加上//, 能不能让他不自动加上//
我用 :filetype plugin off 还有 :filetype indent off 来毙掉所有这些聪明过头的功能。

On Nov 8, 8:16 pm, aj3423 <aj3...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tm 闲耘  
View profile   Translate to Translated (View Original)
 More options Nov 10, 8:16 pm
From: 闲耘(tm) <hotoo...@gmail.com>
Date: Wed, 11 Nov 2009 09:16:17 +0800
Local: Tues, Nov 10 2009 8:16 pm
Subject: Re: [Vim-cn:3113] Re: 如果当前行是注释(有//开头),按o的话,会在下一行自动加上//, 能不能让他不自动加上//

@RedNax 的方法很赞,又学一招。
不过这是见仁见智的事,在写大量注释的时候,保留这个功能是明智的;即使写少量的注释,也不过是多几个删除键。如果经常写少量的注释,去掉也很明智。
--
闲耘(tm) (@hotoo, xianyun.org)

2009/11/11 蓝色基因 <bluegene8...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jarod  
View profile   Translate to Translated (View Original)
 More options Nov 11, 4:00 am
From: Jarod <jerryja...@gmail.com>
Date: Wed, 11 Nov 2009 01:00:59 -0800 (PST)
Local: Wed, Nov 11 2009 4:00 am
Subject: Re: 如果当前行是注释(有//开头),按o的话,会在下一行自动加上//, 能不能让他不自动加上//
俺以前是去掉。后来。。。又加回来了。

On 11月11日, 上午9时16分, 闲耘(tm) <hotoo...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google