Re: how to replace ESC to some other key?

2007-04-05 Thread Matthew Winn
On Thu, 05 Apr 2007 09:08:43 -0400, wangxu [EMAIL PROTECTED] wrote: but in this situation,is there any way to auto-indent *.py? I wouldn't have thought so, since the meaning of the code is implied by the indentation rather than vice versa. Personally I always indent using the basic autoindent

Re: Problem with pastetoggle

2007-04-05 Thread Albie Janse van Rensburg
Jeffery Small wrote: I'm using vim 7.0 on a Solaris 9 system. If I put the following line in my .vimrc file: set pastetoggle=Esc[192z Then when I am editing in insert mode, each time I hit ESC to return to command mode the cursor sit there jumping to the right and back continuously until

Problem with pastetoggle

2007-04-05 Thread Jeffery Small
I'm using vim 7.0 on a Solaris 9 system. If I put the following line in my .vimrc file: set pastetoggle=Esc[192z Then when I am editing in insert mode, each time I hit ESC to return to command mode the cursor sit there jumping to the right and back continuously until another key is pressed.

How to open a BIG file quickly?

2007-04-05 Thread 陈方荣
Dear all, If I want to open one 1G bytes size file,it's really slow. Thank you in advance. --- Best regards longer

Re: Folding Perl POD

2007-04-05 Thread Ian Tegebo
Have you seen this plugin already? POD Folder : Creates folds in POD files based on =head[123] sections http://www.vim.org/scripts/script.php?script_id=691 On 4/3/07, Bill Moseley [EMAIL PROTECTED] wrote: I don't use folding often, but I'm not figuring out if/how to fold POD documentation in a

Re: Python crash

2007-04-05 Thread Tom Whittock
sys.path.append(c:\\python23\\lib) What's the result of :py import sys :py print sys.version ? If it's not 2.3.something then there is no way you should be doing that.

How to modify code so that only one space is between two characters or words?

2007-04-05 Thread Eric Leenman
Hi How to modify code so that only one space is between two characters or words? For example: - all lines containing the char : followed with zero or more then one space(s) and then in should become: untouched what is here: in(untouched what is here aaa : in std_logic; bb : in

Re: How to modify code so that only one space is between two characters or words?

2007-04-05 Thread Albie Janse van Rensburg
Eric Leenman wrote: Hi Hi! How to modify code so that only one space is between two characters or words? You could use a Search/Replace on the full text. This does end up modifying your base text, so be sure to only use it on modifiable buffers. For example: - all lines containing the char

Is it possible to source all scripts/plugins from VIM without leaving VIM?

2007-04-05 Thread Eric Leenman
Hi, Is it possible to source all scripts/plugins from VIM without leaving VIM? When experimenting with plugins, I now 1) modify plugin 2) start VIM 3) test plugin 4) detect an error 5) close VIM 6) goto 1) And this loops then till I fix it or give up I know you can type :source eric_plugin But

VIM Delete All Except

2007-04-05 Thread jas01
I have a huge file where I need to delete all lines except for a few I need. I'm trying to do this in a single command. I know that: :v/Text/d will delete all lines except for ones containing 'Text.' I have no idea how to put multiple strings so the command deletes everything except for

Re: VIM Delete All Except

2007-04-05 Thread Jürgen Krämer
Hi, jas01 wrote: I have a huge file where I need to delete all lines except for a few I need. I'm trying to do this in a single command. I know that: :v/Text/d will delete all lines except for ones containing 'Text.' I have no idea how to put multiple strings so the command deletes

Re: How to open a BIG file quickly?

2007-04-05 Thread Tom Purl
On Thu, April 5, 2007 2:38 am, ³Â·½ÈÙ wrote: Dear all, If I want to open one 1G bytes size file,it's really slow. Thank you in advance. Just out of curiosity, why are you trying to edit a 1 GB file with any text editor? I'm assuming that these files are flat file databases. If that's

Re: VIM Delete All Except

2007-04-05 Thread Charles E Campbell Jr
jas01 wrote: I have a huge file where I need to delete all lines except for a few I need. I'm trying to do this in a single command. I know that: :v/Text/d will delete all lines except for ones containing 'Text.' I have no idea how to put multiple strings so the command deletes everything

Re: How to open a BIG file quickly?

2007-04-05 Thread Jean-Rene David
* Tom Purl [2007.04.05 10:30]: On Thu, April 5, 2007 2:38 am, ³Â·½ÈÙ wrote: If I want to open one 1G bytes size file,it's really slow. I suggest splitting it into smaller chunks with another tool. Just out of curiosity, why are you trying to edit a 1 GB file with any text editor?

Re: VIM Delete All Except

2007-04-05 Thread Charles E Campbell Jr
Charles E Campbell Jr wrote: jas01 wrote: I have a huge file where I need to delete all lines except for a few I need. I'm trying to do this in a single command. I know that: :v/Text/d will delete all lines except for ones containing 'Text.' I have no idea how to put multiple strings so

Re: How to open a BIG file quickly?

2007-04-05 Thread Tim Chase
Just out of curiosity, why are you trying to edit a 1 GB file with any text editor? I'm assuming that these files are flat file databases. I need to do that quite often. They are usually log files from a long running program in debug mode. I find that pre-processing with grep/sed/awk

RE: Python crash

2007-04-05 Thread Chuck Mason
Just to verify-I tried with python2.4 libs too :-D -Original Message- From: Tom Whittock [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 2:47 AM To: Chuck Mason Cc: vim@vim.org Subject: Re: Python crash sys.path.append(c:\\python23\\lib) What's the result of :py import sys

Re: How to open a BIG file quickly?

2007-04-05 Thread Jean-Rene David
* 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

Need help with error format

2007-04-05 Thread Christophe Dupre
Hello, I'm trying to write a compiler plug-in for a compiler (it's a compiler use for PIC microcontrollers) and I'm hafing difficulties defining the error format. Here is a typical compiler output: Warning 208 C:\Project\1816-CooperDataInterrogator\CircularBuffer.c Line 60(6,15): Function not

Re: Problem with pastetoggle

2007-04-05 Thread Jeffery Small
Albie Janse van Rensburg [EMAIL PROTECTED] writes: It seems that whenever I set pastetoggle to ESCx (where x is almost any character), it exibits this same behaviour. You could avoid the problem by setting pastetoggle to something else, preferably something not starting with an ESC character.

Re: How to open a BIG file quickly?

2007-04-05 Thread Charles E Campbell Jr
Tom Purl wrote: On Thu, April 5, 2007 2:38 am, ³Â·½ÈÙ wrote: Dear all, If I want to open one 1G bytes size file,it's really slow. Thank you in advance. Just out of curiosity, why are you trying to edit a 1 GB file with any text editor? I'm assuming that these files are flat

RE: Python crash

2007-04-05 Thread Chuck Mason
/nodefaultlib:python24.lib That's 2.4 right? The point is that vim.command() is not thread-safe. I tried this in pearl (5.8) as well with the same result. Except that perl's VIM::Msg works in a thread (albeit things seem unstable) and VIM::DoCommand does not. Chuck -Original

Re: Problem with pastetoggle

2007-04-05 Thread A.J.Mechelynck
Jeffery Small wrote: I'm using vim 7.0 on a Solaris 9 system. If I put the following line in my .vimrc file: set pastetoggle=Esc[192z Then when I am editing in insert mode, each time I hit ESC to return to command mode the cursor sit there jumping to the right and back continuously until

Re: Problem with pastetoggle

2007-04-05 Thread Jeffery Small
A.J.Mechelynck [EMAIL PROTECTED] writes: Try setting 'pastetoggle' to a single key (using notation for special keys), e.g., :set pastetoggle=F11 Unfortunately, there is no notation for the Stop key. Also, I have never been able to get any of these notations to work. For example, I

Re: how to replace ESC to some other key?

2007-04-05 Thread Taylor Venable
On Wed, 4 Apr 2007 10:22:43 -0400 Yakov Lerner [EMAIL PROTECTED] wrote: On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use Tab as a substitute for Esc. Weird. But it's easier

Re: VIM Delete All Except

2007-04-05 Thread cga2000
On Thu, Apr 05, 2007 at 10:10:03AM EDT, jas01 wrote: I have a huge file where I need to delete all lines except for a few I need. I'm trying to do this in a single command. I know that: :v/Text/d will delete all lines except for ones containing 'Text.' I have no idea how to put

copy pasting HTML code into vim

2007-04-05 Thread Kamaraju S Kusumanchi
Let's say I open up a webpage, select some text and paste it into vim. Then all I see in vim is the text I see on the browser. While this is OK most of the times, sometimes I wish there is a way to paste the actual HTML code directly into the vim. Selecting view source of the webpage and then