Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

vim: Start a compiler from vim

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
vdboor
Guru
Guru
User avatar
Posts: 592
Joined: Wed Dec 03, 2003 9:31 am
Location: The Netherlands
Contact:
Contact vdboor
Website

vim: Start a compiler from vim

  • Quote

Post by vdboor » Fri Feb 18, 2005 6:07 pm

Hi people,

I've read some interesting things about starting your compiler from VIM itself, and also retrieving a list of error messages (instead of the normal ugly output), jumping to the line in error.. :D Sadly, all these features are not well documented (examples are lacking).

In other words, does anyone have a working script, tips, or lines for ~/.vimrc to start a compiler (both gcc and latex) from VIM?

Thanks in advice.
Last edited by vdboor on Fri Feb 18, 2005 6:08 pm, edited 1 time in total.
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Fri Feb 18, 2005 6:07 pm

You want :make , and it's all documented in :help quickfix.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
vdboor
Guru
Guru
User avatar
Posts: 592
Joined: Wed Dec 03, 2003 9:31 am
Location: The Netherlands
Contact:
Contact vdboor
Website

  • Quote

Post by vdboor » Fri Feb 18, 2005 6:12 pm

Just wondering, how does the tex stuff work? I've found this in the help, but it doesn't have the desired effect:

Code: Select all

set makeprg=latex\ \\\\nonstopmode\ \\\\input\\{$*}
I get the following error:

Code: Select all

! LaTeX Error: File `.tex' not found.
I did save the file though.
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Mon Mar 07, 2005 7:03 am

You might just try emerging latexsuite. Then you can set what workflow to use (be it to DVI, to DVI->PS, or to PDF) & compile. You get quite a few other handy things for working with LaTeX in vim too.
Last edited by karnesky on Sun Mar 13, 2005 12:38 am, edited 1 time in total.
Donate to F/OSS
Top
eniac
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Mon Aug 11, 2003 7:34 pm
Location: Belgium, Brussels

  • Quote

Post by eniac » Mon Mar 07, 2005 10:21 pm

I often do :!bash
make && ./run
^D

To automate this using the F3 key put this in your .vimrc

Code: Select all

map <F3> :!bash<CR>
Turns out the pony only had one trick.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic