Re: quick and dirty compile

2006-09-06 Thread A.J.Mechelynck
Sibin P. Thomas wrote: Thank a lot to everyone! I added the following to my _vimrc file to get what I wanted nmap C-F9 :MakecompileCR nmap F5 :MakexecCR :!%.exeCR command Makecompile :se makeprg=gcc\ -o\ %.o\ % | :make! command Makexec :se makeprg=gcc\ -o\ %\ % | :make! Regards, Sibin We're

RE: quick and dirty compile

2006-09-06 Thread Sibin P. Thomas
: quick and dirty compile Sibin P. Thomas wrote: Thank a lot to everyone! I added the following to my _vimrc file to get what I wanted nmap C-F9 :MakecompileCR nmap F5 :MakexecCR :!%.exeCR command Makecompile :se makeprg=gcc\ -o\ %.o\ % | :make! command Makexec :se makeprg=gcc\ -o\ %\ % | :make

Re: quick and dirty compile

2006-09-06 Thread hermitte
Sibin P. Thomas [EMAIL PROTECTED] wrote: If you are compiling with gmake, and there is no Makefile in your directory, a simple nnoremap F5 :make %cr should be enough. BTW, 'makeprg' is meant to be defined in terms of $*. Then, we can define the mapping to pass % to :make. -- Luc Hermitte

Re: quick and dirty compile

2006-09-06 Thread Yegappan Lakshmanan
Hi, On 9/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Sibin P. Thomas wrote: Thank a lot to everyone! I added the following to my _vimrc file to get what I wanted nmap C-F9 :MakecompileCR nmap F5 :MakexecCR :!%.exeCR command Makecompile :se makeprg=gcc\ -o\ %.o\ % | :make! command

Re: quick and dirty compile

2006-09-06 Thread A.J.Mechelynck
Yegappan Lakshmanan wrote: Hi, On 9/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Sibin P. Thomas wrote: Thank a lot to everyone! I added the following to my _vimrc file to get what I wanted nmap C-F9 :MakecompileCR nmap F5 :MakexecCR :!%.exeCR command Makecompile :se makeprg=gcc\ -o\

quick and dirty compile

2006-09-05 Thread Sibin P. Thomas
Hi, Could someone let me know how to quickly compile my current buffer? I want a key map like nmap F5 x to do -- gcc -o current_file.o current_file.c also another map to make an executable, like nmap F5 x to do -- gcc -o current_file current_file.c Also it would be convenient if this

Re: quick and dirty compile

2006-09-05 Thread Yegappan Lakshmanan
Hi, On 9/5/06, Sibin P. Thomas [EMAIL PROTECTED] wrote: Hi, Could someone let me know how to quickly compile my current buffer? I want a key map like nmap F5 x to do -- gcc -o current_file.o current_file.c Try using the following command: nnoremap F5 :!gcc -o %:p:r.o %CR also