From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51907 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: t-vim: unwanted space after vimtyping Date: Mon, 20 Jul 2009 11:10:30 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-900154618-1248102631=:15108" X-Trace: ger.gmane.org 1248102732 1421 80.91.229.12 (20 Jul 2009 15:12:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2009 15:12:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 20 17:12:00 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MSuX0-0005Hf-E1 for gctc-ntg-context-518@m.gmane.org; Mon, 20 Jul 2009 17:11:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 585421FB82; Mon, 20 Jul 2009 17:11:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23366-07; Mon, 20 Jul 2009 17:11:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CD4C01FB5A; Mon, 20 Jul 2009 17:11:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B49B1FB5A for ; Mon, 20 Jul 2009 17:11:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24124-07-2 for ; Mon, 20 Jul 2009 17:10:55 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id E28F51FB38 for ; Mon, 20 Jul 2009 17:10:54 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6KFAqVP003822 for ; Mon, 20 Jul 2009 17:10:53 +0200 Original-Received: FROM [192.168.2.8] (c-71-192-164-42.hsd1.ct.comcast.net [71.192.164.42]) By hackers.mr.itd.umich.edu ID 4A6488FA.A9994.25760 ; Authuser adityam; 20 Jul 2009 11:10:50 EDT In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 263484933 - 7d169aa95765 - 20090720 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51907 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-900154618-1248102631=:15108 Content-Type: TEXT/PLAIN; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 20 Jul 2009, Peter M=FCnster wrote: > Hello, > > I've tried to put a \relax at the end of the input file (file generated b= y > vim) and also done some experiments with \removeunwantedspaces but I coul= d > not get rid of the space (vertical or horizontal) after the vim-typing. > Here an example, showing the problem: > > \usemodule[vim] > \setupwhitespace[big] > \definevimtyping[C][syntax=3Dc] > \starttext > no problem before the typing > \startC > bla > \stopC > horizontal space added > > \startC > bla > \stopC > > too much vertical space > \stoptext > > TIA for any help, Peter This is because of the naive way in which I have implemented line=20 numbering. If you do not need linenumbering, remove \strut from the definition of \def\obeyedline{\placevimlinenumber\par\strut}% in \initializevimtyping. I will try to clean up the vim module. The whole thing can be done much=20 more cleanly in lua. Aditya --8323328-900154618-1248102631=:15108 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-900154618-1248102631=:15108--