Forum: GNU Radio A little VIM plugin for GNU Radio dev

Posted by Martin Braun (CEL) (Guest)
on 2012-10-29 16:37
(Received via mailing list)
Hi there,

in case there's more people that use VIM for coding, you might be
interested in this plugin:

https://github.com/mbant/grproject.vim

It makes editing out-of-tree modules with VIM much easier. Probably
comprehensive list (for now):
* :set path for all relevent include paths, probably most importantly,
  this will allow you to 'gf' on any include, and compiler errors are
  resolved correctly, too (i.e. if ':cn' would jump to an include, now
  VIM knows where that is).
* 'makeprg' is configured such that you can call 'make' or 'make test'
  on any file and it should do the right thing (i.e. run make in the
  build dir)
* If you're using Syntastic for syntax checking, it will make sure that
  gcc gets told where to look (otherwise, Syntastic stops after the
  first #include <gr_io_signature.h> or whatever)

In order for this to work, you'll need an up-to-date gr_modtool.py from
https://github.com/mbant/gr-modtool. Both the master and format37
branches will do.

MB

--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.