To be a keycode or not to be a keycode - that is the question!

2006-09-23 Thread Meino Christian Cramer
Hi, VimTip 979 suggests to do the following mapping: nmap / nmap ? . I wanted to try that and wrote the sequence into my .vimrc. The first mapping works nice, but the second doesn nothing. I tried to figure out what happens (or what do not happen...) and used the Ctrl-k trick

Re: Plain TeX support ?

2006-09-23 Thread Meino Christian Cramer
From: Benji Fisher <[EMAIL PROTECTED]> Subject: Re: Plain TeX support ? Date: Sat, 23 Sep 2006 15:16:00 -0400 > On Sat, Sep 23, 2006 at 06:54:29AM +0200, Meino Christian Cramer wrote: > > Hi, > > > > Looking into > > > > :help \ > > > > does not that much information about the su

LogiPat Problem

2006-09-23 Thread Bill McCarthy
Hello Vim List, Trying out LogiPat (by Charles Campbell) today, I ran into a problem. I tried to find lines that contain "abc" or "def" but didn't contain both. There are many ways to construct this search. I picked three methods and show below, for each method, how I expressed the logic for Log

Re: Single-File Vim?

2006-09-23 Thread Marv Boyes
If your main interest is running something from a USB drive, you might want to give Portable Gvim a try: http://portablegvim.sourceforge.net/ Not "single-file" by any means; it's more-or-less all of (g)vim 7 in completely "portable" form (i.e., it doesn't appear to leave anything behind once it's

Re: Plain TeX support ?

2006-09-23 Thread Benji Fisher
On Sat, Sep 23, 2006 at 06:54:29AM +0200, Meino Christian Cramer wrote: > Hi, > > Looking into > >:help \ > > does not that much information about the support of generating nice > and find documents via plain TeX. > > Where can I get informations about what I can > do/downl

Re: sorting lines on lenght of characters

2006-09-23 Thread Benji Fisher
On Fri, Sep 22, 2006 at 07:59:37AM -0500, Tim Chase wrote: > >Is it possible to sort lines on line length? > >Shortes firsts, longest last? > >If so how do you do this? > > This is a common use of the "decorate-sort-undecorate" pattern. > You can do something like: > > :%s/^/\=strlen(getline('.'

ANN: dbext.vim 4.0 released

2006-09-23 Thread David Fishburn
What is it? --- dbext.vim : Provides database access to most databases. http://www.vim.org/scripts/script.php?script_id=356 This plugin contains functions/mappings/commands to enable Vim to access several databases. Currently Mysql, PostgreSQL, Ingres, Oracle, Sybase Adaptive Server Anyw

Re: latin1 words in an utf-8 file

2006-09-23 Thread Yakov Lerner
On 9/23/06, Christian Ebert <[EMAIL PROTECTED]> wrote: * A.J.Mechelynck on Saturday, September 23, 2006 at 17:35:25 +0200: >> Hi Tony, >> >> * A.J.Mechelynck on Saturday, September 23, 2006 at 09:57:40 +0200: >>> Christian Ebert wrote: Is it possible to have eg. iso-8859-1 encoded words/pass

Re: latin1 words in an utf-8 file

2006-09-23 Thread Christian Ebert
* A.J.Mechelynck on Saturday, September 23, 2006 at 17:35:25 +0200: >> Hi Tony, >> >> * A.J.Mechelynck on Saturday, September 23, 2006 at 09:57:40 +0200: >>> Christian Ebert wrote: Is it possible to have eg. iso-8859-1 encoded words/passages in an otherwise utf-8 encoded file? I mean, w/

Re: latin1 words in an utf-8 file

2006-09-23 Thread A.J.Mechelynck
Christian Ebert wrote: Hi Tony, * A.J.Mechelynck on Saturday, September 23, 2006 at 09:57:40 +0200: Christian Ebert wrote: Is it possible to have eg. iso-8859-1 encoded words/passages in an otherwise utf-8 encoded file? I mean, w/o automatic without

Re: abbreviations + indent + movement commands

2006-09-23 Thread Luc Hermitte
Hi again, * On Sat, Sep 23, 2006 at 03:38:58PM +0200, Kim Schulz <[EMAIL PROTECTED]> wrote: > I am playing a bit around with abbreviations, in order to use them for > simple pattern templates when I code. like: > iabbrev for( for (%%%;%%%;%%%){} > > How can I get it to obey my indentation rules

Re: placeholders

2006-09-23 Thread Luc Hermitte
Hello, * On Fri, Sep 22, 2006 at 07:52:28AM +0200, Kim Schulz <[EMAIL PROTECTED]> wrote: > On Thu, 21 Sep 2006 23:36:19 +0200 > Luc Hermitte <[EMAIL PROTECTED]> wrote: > > > any ideas? > > > > > > Why don't you use already existing solutions ? > > what would I learn from that ? :-) A lot o

abbreviations + indent + movement commands

2006-09-23 Thread Kim Schulz
Hi I am playing a bit around with abbreviations, in order to use them for simple pattern templates when I code. like: iabbrev for( for (%%%;%%%;%%%){} problem is that this gives me a wrong indentation of the code such that the } is placed in the same column as where the ( in for( was before changi

Re: Why not use binary search for wildmode tag completion in case of fixed-start, non-regex pattern?

2006-09-23 Thread Stahlman Family
- Original Message - From: "A.J.Mechelynck" <[EMAIL PROTECTED]> To: "Stahlman Family" <[EMAIL PROTECTED]> Cc: Sent: Saturday, September 23, 2006 1:59 AM Subject: Re: Why not use binary search for wildmode tag completion in case of fixed-start, non-regex pattern? Stahlman Family wro

Re: latin1 words in an utf-8 file

2006-09-23 Thread Christian Ebert
Hi Tony, * A.J.Mechelynck on Saturday, September 23, 2006 at 09:57:40 +0200: > Christian Ebert wrote: >> Is it possible to have eg. iso-8859-1 encoded words/passages in >> an otherwise utf-8 encoded file? I mean, w/o automatic without >> conversion, and I

Re: latin1 words in an utf-8 file

2006-09-23 Thread A.J.Mechelynck
Christian Ebert wrote: Hello, Is it possible to have eg. iso-8859-1 encoded words/passages in an otherwise utf-8 encoded file? I mean, w/o automatic conversion, and I don't need the iso passages displayed in a readable way, but so I can still write the file in utf-8 w/o changing the "invalid" is