Behavior of fold when adding new fold

2012-04-15 Thread Yichao Zhou
Hi, everyone. I use fdm=marker. The problem is when you add a fold, the fold after it will automatically open. For example, type {{{CR}}}ESCzcggO{{{ You will find the second fold is opened automatically. This is annoying when editing. Must I reclose all the folding when add a new one?

Re: Behavior of fold when adding new fold

2012-04-15 Thread Christian Brabandt
Hi Yichao! On So, 15 Apr 2012, Yichao Zhou wrote: Hi, everyone. I use fdm=marker. The problem is when you add a fold, the fold after it will automatically open. For example, type {{{CR}}}ESCzcggO{{{ You will find the second fold is opened automatically. This is annoying when

Setting 'make -jN' in makeprg

2012-04-15 Thread John Beckett
A new tip suggests a vimrc command to set makeprg so it will automatically detect the number of processors and adjust the '-j' make option. This is out of my league (although I have seen a friend build the Linux kernel using -j16, although I think he gave that up because of the confusing error

Re: Setting 'make -jN' in makeprg

2012-04-15 Thread Marc Weber
Excerpts from John Beckett's message of Sun Apr 15 13:17:28 +0200 2012: a friend build the Linux kernel using -j16, although I think he gave that up because of the confusing error messages) My solution is to build with -j16, then build again with -j1 and watch one error message. With that

Re: Setting 'make -jN' in makeprg

2012-04-15 Thread Christian Brabandt
Hi John! On So, 15 Apr 2012, John Beckett wrote: A new tip suggests a vimrc command to set makeprg so it will automatically detect the number of processors and adjust the '-j' make option. This is out of my league (although I have seen a friend build the Linux kernel using -j16, although I

Re: map colon

2012-04-15 Thread Yichao Zhou
Finally, I decided to use ' to map the : since I have already use Space as my leader and ; for moving. Maybe q is also OK since recording isn't very frequency.(You can map other key to it). Just as some advice to the people like me. -- You received this message from the vim_use maillist. Do

Re: relativenumber is very very slow.

2012-04-15 Thread Yichao Zhou
I found another reason that causing VIM become slow. If you the theme using ITALIC font under windows, it will be slower than roman font, at least under Win32. Anyone know the reason? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

How to map ctrl-space in maemo's vim

2012-04-15 Thread Yue Wu
Hi list, I'm using vim on maemo, which is a OS for nokia's n900 smartphone. I'm trying to map ctrl-space to a function, but nmap ctrl-space :call Myfunc()CR does nothing. When I hit C-vctrl-space in insert mode, vim inputs ^@, so I also tried with nmap ^@ :call Myfunc()CR, but still not

Re: relativenumber is very very slow.

2012-04-15 Thread Alejandro Exojo
El Domingo, 15 de abril de 2012, Yichao Zhou escribió: I found another reason that causing VIM become slow. If you the theme using ITALIC font under windows, it will be slower than roman font, at least under Win32. Anyone know the reason? I can't test that right now since I no longer have

Re: MRU plugin

2012-04-15 Thread Yegappan Lakshmanan
Hi, From: Evan LeCompte evan...@gmail.com To: vim_use@googlegroups.com  Sent: Saturday, April 14, 2012 8:13 PM Subject: Re: MRU plugin   Hmm... this is all good fixes for MRU plugin, I like it very much. One thing I always wanted was ability to Toggle the :MRU window on/off , so that a

Re: How to map ctrl-space in maemo's vim

2012-04-15 Thread Chris Jones
On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote: I'm using vim on maemo, which is a OS for nokia's n900 smartphone. I'm trying to map ctrl-space to a function, but nmap ctrl-space :call Myfunc()CR does nothing. When I hit C-vctrl-space in insert mode, vim inputs ^@, so I also tried

Re: How to map ctrl-space in maemo's vim

2012-04-15 Thread Yue Wu
On Mon, 16 Apr 2012 05:26:01 +0800, Chris Jones cjns1...@gmail.com wrote: On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote: I'm using vim on maemo, which is a OS for nokia's n900 smartphone. I'm trying to map ctrl-space to a function, but nmap ctrl-space :call Myfunc()CR does nothing.

RE: Setting 'make -jN' in makeprg

2012-04-15 Thread John Beckett
Christian Brabandt wrote: let makeprg = 'make -j'.system('echo -n $(echo $(grep -c ^processor /proc/cpuinfo)+1 | bc)') Your command looks strange, why are you adding 1 there? I think, better is something like: let makeprg = 'make -j'.system('grep -c ^processor /proc/cpuinfo') Huh, you

Re: How to map ctrl-space in maemo's vim

2012-04-15 Thread Chris Jones
On Sun, Apr 15, 2012 at 07:50:38PM EDT, Yue Wu wrote: On Mon, 16 Apr 2012 05:26:01 +0800, Chris Jones cjns1...@gmail.com wrote: On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote: I'm using vim on maemo, which is a OS for nokia's n900 smartphone. I'm trying to map ctrl-space to a

Re: Behavior of fold when adding new fold

2012-04-15 Thread Yichao Zhou
Unfortunately, {{{1 has the same problem. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

how to stop recursive maps in insert mode

2012-04-15 Thread sinbad
i have following mappings. imap .. - imap - _ now when i type .. the text converts to _ instead of - becuase of the second mapping for -, is there a way to stop this recursive expansion of maps. cheers -- You received this message from the vim_use maillist. Do not top-post! Type your reply