[help]How to auto complete (),[]?
Hi all, When type '(',how to autocommplete ')'?And move the cursor in the (_). Also the '{', autocommplete the '}' in a new line. And insert the cursor in a new line. Like this: { _ } Thanks. --- Best regards 陈方荣
[Help]How can I add some char before a block?
Hi all, How can I add some char before a block? Just like C++ comment. Before: Comment line1 Comment line2 Comment line3 Comment line4 After: //Comment line1 //Comment line2 //Comment line3 //Comment line4 Thanks. --- Best regards chenfangrong
答复: [Help]How can I add some char befo re a block?
--- Best regards 陈方荣 -邮件原件- 发件人: Tim Chase [mailto:[EMAIL PROTECTED] 发送时间: 2007年4月13日 :09:44 收件人: Ricky Zhou 抄送: 陈方荣; Vim 主题: Re: [Help]How can I add some char before a block? How can I add some char before a block? Just like C++ comment. Use V to select the block you want, then type :s/^/\/\// You can make this a little easier/shorter to type by using :s!^!// The alternative delimiters (you can use a variety of characters, though I tend to choose !, @, or #) allow you to include certain characters without concern for having to escape the primary delimiter. There's also blockwise-visual mode: :help v_b_I which can also be an easy/lazy way to do it, especially if you're already in blockwise-visual mode. -tim It's work. Thanks.
答复: How to open a BIG file quickly?
-邮件原件- 发件人: Jean-Rene David [mailto:[EMAIL PROTECTED] 发送时间: 2007年4月6日 :00:09 收件人: Vim 主题: Re: How to open a BIG file quickly? * Tom Purl [2007.04.05 12:00]: I need to do that quite often. They are usually log files from a long running program in debug mode. Actually, you can think of a log file as a sort of flat file database. Here's an example I appreciate all the help but I really don't have a problem with large files. I *do* preprocess my large files with grep/awk/perl in all sorts of ways and *do* use vim to view and edit the resulting chunks. I am not the OP, and I was just mentioning log files because someone sounded surprised one might legitimately need to edit a 1GB file. And before somebody mentions it, I do know about logrotate... :-) -- JR Thank you all for the help. I'm a new user to GVIM, so I think I can use GVIM to open any files. Thanks to Christian Ebert [EMAIL PROTECTED] for giving the URL: Try http://www.vim.org/scripts/script.php?script_id=1506. It works. I think that grep/awk/perl can handle this case. (I'm a M$ user. :( ,and not install Cygwin, o(∩_∩)o... ) I'll study that. Please close this topic. -- Regards Chenfangrong
How to open a BIG file quickly?
Dear all, If I want to open one 1G bytes size file,it's really slow. Thank you in advance. --- Best regards longer