ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Vim snippets
Date: Tue, 1 Mar 2016 00:01:30 +0100	[thread overview]
Message-ID: <nb2ika$apd$1@ger.gmane.org> (raw)
In-Reply-To: <56CADAA4.30708@bigpond.com>

On 2016-02-22 10:23:40 +0000, David Nebauer said:

> Hi,
> 
> Newbie question: are there any vim snippets available for context?

I don't know of any (apart from what has already been posted).
Are you using UltiSnips? Here are a few I am using, adapted from
tex.snippets:

snippet "s(tart)?" "start / stop" br
\start${1:something}
	${0:${VISUAL}}
\stop$1
endsnippet

snippet enum "Enumerate" b
\startitemize[n]
	\item
    $0
\stopitemize
endsnippet

snippet item "Itemize" b
\startitemize
	\item
	$0
\stopitemize
endsnippet

snippet it "Individual item" b
\item
$0
endsnippet

IMHO, it takes less to write your own snippets perfectly suited to your
writing style (e.g., I like a newline after each \item) than trying to
understand (sometimes overly complicated) snippets written by others.

Nicola


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2016-02-29 23:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22  9:53 David Nebauer
2016-02-22 14:52 ` Aditya Mahajan
2016-02-29 23:01 ` Nicola [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='nb2ika$apd$1@ger.gmane.org' \
    --to=nvitacolonna@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).