How to detect there are errors in quickfix?

2010-08-26 Thread eliweiq001
Hi ! I want to achieve this: map :make!CR (whether there are errors) ? ( :copenCR) : ( do nothing) I don't want to use :cw is because it will close cwindow If there are no recognized errors, I want to keep the window if it is already open. Regards. -- You received this message from

Re: How to open the latest modified file

2010-08-24 Thread eliweiq001
On 8月23日, 上午10时16分, Benjamin R. Haskell v...@benizi.com wrote: On Sun, 22 Aug 2010, eliweiq001 wrote: I want to ask you something else. :exe OpenLastModified(q-args) You see, OpenLastModified is a function, but, why we can only use :exe but not :call ? I've tried :call but it won't

Re: How to open the latest modified file

2010-08-22 Thread eliweiq001
Hi Christian ! On 8月20日, 下午7时19分, Christian Brabandt cbli...@256bit.org wrote: Hi eliweiq001! On Fr, 20 Aug 2010, eliweiq001 wrote: On 8月20日, 下午4时35分, Christian Brabandt cbli...@256bit.org wrote: Hi eliweiq001! And besides, when I :call OpenLastModified(1

Re: map C-tab if there are more than one tabpage then :tabnext else C-ww

2010-08-21 Thread eliweiq001
On 8月21日, 下午7时34分, Christian Brabandt cbli...@256bit.org wrote: Hi eliweiq001! On Fr, 20 Aug 2010, eliweiq001 wrote: Hi, I want to write this: map C-tab if there are more than one tabpage then :tabnext else C-ww How to finish it? Besides the fact, that you can't map C-Tab

Re: How to open the latest modified file

2010-08-20 Thread eliweiq001
On 8月20日, 下午4时35分, Christian Brabandt cbli...@256bit.org wrote: Hi eliweiq001! And besides, when I :call OpenLastModified(1) there is an error: Error detected while processing function OpenLastModified: Line 5: E684: list index out of range: -1 E15: Invalid expression: files[-1

Re: How to open the latest modified file

2010-08-20 Thread eliweiq001
On 8月20日, 下午6时30分, bill lam cbill@gmail.com wrote: By looking at message-id of your emails, it seems you actually sent this and also other posts several times. May I ask what was the reason? -- regards, GPG key 1024D/4434BAB3

Re: How to open the latest modified file

2010-08-20 Thread eliweiq001
Hi Christian ! On 8月20日, 下午7时19分, Christian Brabandt cbli...@256bit.org wrote: Hi eliweiq001! I see. There was 1 small problem. Use this slightly changed version (which only selects C-files): fun! OpenLastModified(...) let path=(!empty(a:1) ? a:1 : getcwd() ) let files=split(glob

map C-tab if there are more than one tabpage then :tabnext else C-ww

2010-08-20 Thread eliweiq001
Hi, I want to write this: map C-tab if there are more than one tabpage then :tabnext else C-ww How to finish it? Thanks! Regards. -- 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

How to find a lastest moified file and open it ?

2010-08-19 Thread eliweiq001
I want to write a function in vimrc that can open the lastest modified file in the current directory, Is it easy to do it ? How to write it ? Thanks. -- 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

Re: How to open the latest modified file

2010-08-19 Thread eliweiq001
. On 8月19日, 下午3时54分, Sven Guckes guc...@guckes.net wrote: * eliweiq001 eliweiq...@gmail.com [2010-08-19 09:51]: I want to write a function in vimrc that can open the lastest modified file in the current directory, Is it easy to do it? How to write it? what is your goal? does it have

Re: How to open the latest modified file

2010-08-19 Thread eliweiq001
On 8月19日, 下午7时11分, Christian Brabandt cbli...@256bit.org wrote: Hi eliweiq001! On Do, 19 Aug 2010, eliweiq001 wrote: I am using a portable edition of gVim in windows. I have to open gVim and then open a .c file every time,( for learning programing ), so I want a function and map a key

Re: How to open the latest modified file

2010-08-19 Thread eliweiq001
On 8月19日, 下午10时13分, bill lam cbill@gmail.com wrote: Чтв, 19 Авг 2010, eliweiq001 писал(а): If you want to open the latest modified file by vim, you the use the RecentFiles.vim plugin (there are some others, but I cannot recall their names), which can display a list of most recently used

Re: How to open the latest modified file

2010-08-19 Thread eliweiq001
On 8月19日, 下午10时13分, bill lam cbill@gmail.com wrote: Чтв, 19 Авг 2010, eliweiq001 писал(а): If you want to open the latest modified file by vim, you the use the RecentFiles.vim plugin (there are some others, but I cannot recall their names), which can display a list of most recently used

Re: How to open the latest modified file

2010-08-19 Thread eliweiq001
On 8月19日, 下午10时13分, bill lam cbill@gmail.com wrote: Чтв, 19 Авг 2010, eliweiq001 писал(а): If you want to open the latest modified file by vim, you the use the RecentFiles.vim plugin (there are some others, but I cannot recall their names), which can display a list of most recently used

Re: How to open the latest modified file

2010-08-19 Thread eliweiq001
On 8月19日, 下午7时11分, Christian Brabandt cbli...@256bit.org wrote: Hi eliweiq001! On Do, 19 Aug 2010, eliweiq001 wrote: I am using a portable edition of gVim in windows. I have to open gVim and then open a .c file every time,( for learning programing ), so I want a function and map a key

Re: to :iunmap the maps which begis with some key

2010-08-15 Thread eliweiq001
Thanks! It's useful. It seems that there is not a very easy way to finish it. On 8月14日, 下午3时12分, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 14/08/10 05:13, eliweiq001 wrote: I want to :iunmap all the maps which begins withLeader How can I do it easily? AFAIK, you can do

Do any people use gVim with C.vim in windows?

2010-08-13 Thread eliweiq001
I use gvim in windows. C.VIM has a folder named c-support. This folder can only be put in $VIM\vimfiles\ in my compter. If I put this folder in $HOME\vimfiles\ or $HOME\.vim\ , when start gvim it will pop-up a messagebox says that C/C++ template file 'D:

use the variable

2010-08-13 Thread eliweiq001
suppose I have such sentences in vimrc: source .\mydir\aaa.vim set xxxdir=.\mydir and if now I add a new a variable let yyy = .\mydir Now can I use the variable yyy instead of .\mydir in the sentences above ? How ? Thanks! -- You received this message from the vim_use maillist. Do not

Re: use the variable

2010-08-13 Thread eliweiq001
Wonderful! Thank yo so much! On 8月14日, 上午12时12分, Gary Johnson garyj...@spocom.com wrote: On 2010-08-13, eliweiq001 wrote: suppose I have such sentences in vimrc: source .\mydir\aaa.vim set xxxdir=.\mydir and if now I add a new a variable let yyy = .\mydir Now can I use

Re: Do any people use gVim with C.vim in windows?

2010-08-13 Thread eliweiq001
- support , but it will cause that warning. (Nor is $HOME\.vim\c- support) I can only put c-support in $VIM\vimfiles\c-support. On 8月13日, 下午6时57分, eliweiq001 eliweiq...@gmail.com wrote: I use gvim in windows. C.VIM has a folder named c-support. This folder can only be put in $VIM\vimfiles

Re: Do any people use gVim with C.vim in windows?

2010-08-13 Thread eliweiq001
Thanks. What's your $VIM and $HOME? Can you put your c-support in $HOME\vimfiles\c-support ? On 8月13日, 下午11时41分, Jeri Raye jeri.r...@gmail.com wrote: On Fri, Aug 13, 2010 at 2:19 PM, winterTTr winterttr@gmail.com wrote: On 13 August 2010 18:57, eliweiq001 eliweiq...@gmail.com wrote: I

to :iunmap the maps which begis with some key

2010-08-13 Thread eliweiq001
I want to :iunmap all the maps which begins with Leader How can I do it easily? -- 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