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
: 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
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
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
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\
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
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