[maemo-developers] scratchbox ide

From: Marius Gedminas marius at pov.lt
Date: Sat Jan 24 23:59:37 EET 2009
On Fri, Jan 23, 2009 at 12:34:39PM -0600, Frank Banul wrote:
> I use vi. I have not had the pleasure of learning Emacs. For my
> understanding, is it possible to define a list of files or directories in a
> project and then search for instances of used variables and how they are
> used? Same question for functions.

GNU id-utils is great for that.  Run mkid to build a keyword database,
use gid/lid on the command line for searching.  This integrates with
vim's built-in :grep facility, see :help quickfix.txt, section 5.4
"Using :grep with id-utils".

ctags is the complement to that: it finds definitions rather than uses.
See :help tags.

I've been told that cscope can do the same thing (find both definitions
and uses), but I'm not personally familiar with it.

> I did a quick google search and didn't
> find either of these capabilities illustrated. I see color syntax support. I
> know vi has auto indentation and I assume emacs does as well but can they go
> as far as selecting blocks of code and auto indent?

Absolutely.  '=' is the vim command for reindentation, and it works in
visual mode. I don't know about Emacs (<tab> reindents the current line;
I've never figured out how to reindent larger blocks -- I only ever use
Emacs when pair-programming with an Emacs user).

Another killer feature of both vim/emacs is keyword completion: start typing
a name, then hit a key to complete it, from the corpus of all the names
used in the current file/included files/the whole project (if you've
built a ctags db).  Sort of a dumb, but lightning-quick IntelliSense.
(vim also has smart autocompletion, called omnicomplete, but I rarely
use that -- Python programs are *very* hard to statically analyze).

Marius Gedminas
-- 
One picture is worth 128K words.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20090124/ea8915fe/attachment.pgp 
More information about the maemo-developers mailing list