Re: Good ReStructuredText editors

Bernhard Grotz <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <20141215054104.GA2644@oldbook>
Hi,

* Virgil Arrington <[email protected]> [12.12.2014 22:39]:
> I've downloaded both VIM and Emacs, and I must say they both look 
> impressive in their respective feature sets, and their users seem 
> fiercely loyal. But, in both cases, as soon as I try to start using 
> them, the learning curve hits me in the face. They are sooooo different 
> from anything else I've ever used. I'd really like to learn them (or one 
> of them), but right now, it's a little like tackling Greek.

One of the most important Vim-Plugins for writing Restructured Text may be
snipMate:

http://www.vim.org/scripts/script.php?script_id=2540

With this plugin, you can define your own keyboard shortcuts in a way like this:

--------------------

snippet abbrev
	template

Example:

snippet toc

	.. toctree::
		:maxdepth: 2

		${1}

--------------------

In the example above, when you write "toc" and hit the tab-key (or whatever key
you choose as a trigger), the plugin replaces your input with the given template
and puts your cursor at the position ${1}. In this way, you can even have
LaTeX-Code-Completion within Restructured-Text-Files.

I don't know if Emacs also comes with such a feature.

Greetings,

Bernhard


P.S.: You can call "vimtutor" in a shell to learn the very basics of Vim.

P.P.S.: If you also have Vim-LaTeX-Suite installed, you can use <++> as further
jumping points inside of your templates. With a line like 

imap <c-l> <PLUG>IMAP_JumpForward

in your Vim configuration file, you can jump to the next <++> mark by typing
``Ctrl l`` in insert mode. I use this quite often..

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlSOdHAACgkQIoARGe8q5ieGvgCdGBsk73f7+7JHyPv7sM+1Lspd
OAcAoLN/FPKxTtuxzxUi4AUTGzeZVZgG
=KeYk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.