Turn Vim or Emacs Into and IDE With Exuberant-Ctags
exuberant-ctags for Fast Source Code Navigation
The major advantage of exuberant-ctags over the older versions of ctags (for vi(m)) and etags (for Emacs) is that it has a recurse option:
To generate Emacs-compatible tagfiles, use:
ctags -e -R
Type ctags --list-languages for a list of supported languages.
Your tags are stored in either a TAGS (Emacs) or tags (Vim) file. To use the tags in Vim once they've been generated, fire up one of your source files in Vim (or use vim -t tagname to start at a particular tagname), and use :ta tagname to jump to a tagname, or Ctrl-' to jump to the tag under the cursor. Ctrl-T will return you to where you were before.
With Emacs, use M-. tagname to jump to the tag (M-. will jump to the tag under the cursor), and M-* to return. C-U M-. will keep scrolling round through tag definitions if there's more than one of them.
For Vim, you can also try the taglist.vim plugin, which will give you a tag overview side panel. For autocompletion of tag names, try Ctrl-P (this will also autocomplete other words in the file), providing another IDE-type feature.
IDEs do have their uses, but editors can be faster under the fingers and easier to run on slower machines; exuberant-ctags is useful to speed up your coding within your preferred editor.
Article courtesy of ServerWatch
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 5Linux Top 3: Debian Dumps SPARC, Ubuntu Takes Over Linux 3.13 and the Core Infrastructure Initiative