Bug in Vim window height calculation with 'winfixheight'

2010-07-23 Fir de Conversatie Yegappan Lakshmanan
Hi, I see the following problem with the 'winfixheight' option. 1. Open two vertically split windows :vsplit 2. Open a horizontally split window with the 'winfixheight' option: :botright 5new :setlocal winfixheight 3. Open another horizontally split

[patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie tyru
Hi list. I wonder why Vim does not disallow changing 'fileencoding' in modeline. However, I've created the patch to disallow it like 'encoding'. -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are replying to. For more information,

Re: Command autocompletion behaving strangely

2010-07-23 Fir de Conversatie Nazri Ramliy
On Wed, Jul 21, 2010 at 12:10 AM, Bram Moolenaar b...@moolenaar.net wrote: Nazri Ramliy wrote: On Tue, Jul 20, 2010 at 8:06 AM, Nazri Ramliy ayieh...@gmail.com wrote: Attached patch solves the duplicate entry. While fixing this bug I found another: [snipped description of bug due to ...]

Re: Problem using C-k with 7.3b

2010-07-23 Fir de Conversatie Chas. Owens
On Fri, Jul 23, 2010 at 06:31, Chas. Owens chas.ow...@gmail.com wrote: snip Looking at the flags I can see that 7.2 has +multi-byte, but 7.3 has -multi-byte.  I don't know if that will cause this, and I don't know how to turn multi-byte on (I tried ./configure --enable-multi-byte). snip

Problem using C-k with 7.3b

2010-07-23 Fir de Conversatie Chas. Owens
Typing C-k gets me » in Vim 7.2.1-108, but it expands to ##[59;187H2 in Vim 7.3b. It is not a display problem; » is displayed properly in files that already have it. Similarly, C-e' yields é in 7.2, but ~N in 7.3. Looking at the flags I can see that 7.2 has +multi-byte, but 7.3 has -multi-byte.

Re: Problem using C-k with 7.3b

2010-07-23 Fir de Conversatie Chas. Owens
On Fri, Jul 23, 2010 at 06:33, Chas. Owens chas.ow...@gmail.com wrote: On Fri, Jul 23, 2010 at 06:31, Chas. Owens chas.ow...@gmail.com wrote: snip Looking at the flags I can see that 7.2 has +multi-byte, but 7.3 has -multi-byte.  I don't know if that will cause this, and I don't know how to

Re: conceal and modifiable

2010-07-23 Fir de Conversatie Bram Moolenaar
Gary Johnson wrote: On 2010-07-22, Benjamin R. Haskell wrote: On Thu, 22 Jul 2010, Jakson A. Aquino wrote: Hello! I tested the conceal feature and noted that the concealed text of help files are shown in the cursor line (actually the character isn't visible since

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Bram Moolenaar
Patrick Texier wrote: Le Fri, 23 Jul 2010 17:33:05 +0900, tyru a écrit dans le message aanlkti=d8o=n-cmnnbbr8zkg8k=kpefrsqd+tzruc...@mail.gmail.com : I wonder why Vim does not disallow changing 'fileencoding' in modeline. However, I've created the patch to disallow it like 'encoding'.

Re: Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie tyru
No, it is the right way to define encoding of a 8-bit file. Vim can not choose between ISO-8859-1(15), cp1252, cp1250... oops, sorry. I didn't read :help fileencoding 's latter sentences... -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Nikolai Weibull
Bram Moolenaar wrote: Patrick Texier wrote: No, it is the right way to define encoding of a 8-bit file. Vim can not choose between ISO-8859-1(15), cp1252, cp1250... I'm trying to think of a valid reason to change 'fenc' in the modeline.  Can't think of one... Oh, wait, the order is wrong,

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Benjamin R. Haskell
On Fri, 23 Jul 2010, Nikolai Weibull wrote: Bram Moolenaar wrote: Patrick Texier wrote: No, it is the right way to define encoding of a 8-bit file. Vim can not choose between ISO-8859-1(15), cp1252, cp1250... I'm trying to think of a valid reason to change 'fenc' in the modeline.

auto fold for vim, like gmail message quotes.

2010-07-23 Fir de Conversatie Mosh
I noticed gmail folds large mail when contiguous lines have same prefix. It would also work for: find . | vim - and vim could fold directories recursively by number of slashes? Then users dont have to figure out the complexities of folding mode setup? any ideas how to do it? thanks, mohsin --

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Nikolai Weibull
On Fri, Jul 23, 2010 at 17:22, Benjamin R. Haskell v...@benizi.com wrote: As Bram asserted, modelines take effect too late to serve this purpose. Then the modeline needs to take effect earlier to serve this purpose. -- You received this message from the vim_dev maillist. Do not top-post! Type

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie James Vega
On Fri, Jul 23, 2010 at 12:56 PM, Nikolai Weibull n...@bitwi.se wrote: On Fri, Jul 23, 2010 at 17:22, Benjamin R. Haskell v...@benizi.com wrote: As Bram asserted, modelines take effect too late to serve this purpose. Then the modeline needs to take effect earlier to serve this purpose. You

Re: Multiple conceals collapse to single character

2010-07-23 Fir de Conversatie Ben Fritz
Bram Moolenaar wrote: Makes sense.  We can get the ID of the syntax item, and use a change in that as a signal to display the conceal character. I have implemented that, please try it out and let us know. If this doesn't work as intended, we should roll it back. Soon we can't make

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Nikolai Weibull
On Fri, Jul 23, 2010 at 19:04, James Vega james...@jamessan.com wrote: On Fri, Jul 23, 2010 at 12:56 PM, Nikolai Weibull n...@bitwi.se wrote: On Fri, Jul 23, 2010 at 17:22, Benjamin R. Haskell v...@benizi.com wrote: As Bram asserted, modelines take effect too late to serve this purpose. Then

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie James Vega
On Fri, Jul 23, 2010 at 1:25 PM, Nikolai Weibull n...@bitwi.se wrote: On Fri, Jul 23, 2010 at 19:04, James Vega james...@jamessan.com wrote: On Fri, Jul 23, 2010 at 12:56 PM, Nikolai Weibull n...@bitwi.se wrote: On Fri, Jul 23, 2010 at 17:22, Benjamin R. Haskell v...@benizi.com wrote: As Bram

Unable to insert lines into buffer with Python3 interface

2010-07-23 Fir de Conversatie Nico Raffo
Due to a syntax change between python 2 and python 3, there is no way to insert a new line at an arbitrary line number into a buffer using the python interface without using undocumented parameters in the buffer.append() method. In the existing python 2 interface, the way to insert a line

Re: auto fold for vim, like gmail message quotes.

2010-07-23 Fir de Conversatie Gary Johnson
On 2010-07-23, Mosh wrote: I noticed gmail folds large mail when contiguous lines have same prefix. It would also work for: find . | vim - and vim could fold directories recursively by number of slashes? Then users dont have to figure out the complexities of folding mode setup? any

Re: auto fold for vim, like gmail message quotes.

2010-07-23 Fir de Conversatie Dominique Pellé
Mosh wrote: I noticed gmail folds large mail when  contiguous lines have same prefix. I don't think that's what gmail does. I think if folds text which matches the previous email in the thread or something like that. -- Dominique -- You received this message from the vim_dev maillist. Do

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Nikolai Weibull
On Fri, Jul 23, 2010 at 19:33, James Vega james...@jamessan.com wrote: On Fri, Jul 23, 2010 at 1:25 PM, Nikolai Weibull n...@bitwi.se wrote: Sort of like a modeline? Sort of, except modelines can be at the top or the bottom of the file And one could easily scan from the beginning or end of

Re: auto fold for vim, like gmail message quotes.

2010-07-23 Fir de Conversatie Peter Odding
Mosh wrote: I noticed gmail folds large mail when contiguous lines have same prefix. It would also work for: find . | vim - and vim could fold directories recursively by number of slashes? Then users dont have to figure out the complexities of folding mode setup? any ideas how to do it? Hi

Re: Bug in Vim window height calculation with 'winfixheight'

2010-07-23 Fir de Conversatie Bram Moolenaar
Yegappan Lakshmanan wrote: I see the following problem with the 'winfixheight' option. 1. Open two vertically split windows :vsplit 2. Open a horizontally split window with the 'winfixheight' option: :botright 5new :setlocal winfixheight 3.

Re: Linking errors when compiled with both python and python3

2010-07-23 Fir de Conversatie James Vega
On Thu, Jul 22, 2010 at 4:43 PM, James Vega james...@jamessan.com wrote: On Thu, Jul 22, 2010 at 4:29 PM, Bram Moolenaar b...@moolenaar.net wrote: James Vega wrote: On Thu, Jul 22, 2010 at 12:36:27AM -0700, Nico Raffo wrote: If Vim is compiled with both --enable-pythoninterp and --enable-

Re: auto fold for vim, like gmail message quotes.

2010-07-23 Fir de Conversatie Mosh
Hi Peter, Gary, I will try out your suggestions. I think these methods are very useful for novices. Maybe the folding help should be expanded (no pun intended) with such examples, Many users like myself just cut paste the vim help examples and get started. thanks, Mohsin. On Fri, Jul 23, 2010

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Matt Wozniski
On Fri, Jul 23, 2010 at 2:06 PM, Nikolai Weibull n...@bitwi.se wrote: On Fri, Jul 23, 2010 at 19:33, James Vega james...@jamessan.com wrote: On Fri, Jul 23, 2010 at 1:25 PM, Nikolai Weibull n...@bitwi.se wrote: Sort of like a modeline? Sort of, except modelines can be at the top or the

Re: conceal and modifiable

2010-07-23 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: Bram Moolenaar wrote: It would be nice. As it is, many of the lines in help files jiggle back and forth as the cursor moves through them. It's very distracting. I would rather have the markup characters not concealed at all. Yes, we were discussing that

Re: Command autocompletion behaving strangely

2010-07-23 Fir de Conversatie Bram Moolenaar
Nazri Ramliy wrote: On Tue, Jul 20, 2010 at 8:06 AM, Nazri Ramliy ayieh...@gmail.com wrote: Attached patch solves the duplicate entry. While fixing this bug I found another: [snipped description of bug due to ...] The function uniquefy_paths in misc1.c shortens the list of full

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Bram Moolenaar
Matt Wozniski wrote: On Fri, Jul 23, 2010 at 2:06 PM, Nikolai Weibull n...@bitwi.se wrote: On Fri, Jul 23, 2010 at 19:33, James Vega james...@jamessan.com wrote: On Fri, Jul 23, 2010 at 1:25 PM, Nikolai Weibull n...@bitwi.se wrote: Sort of like a modeline? Sort of, except modelines

Re: Linking errors when compiled with both python and python3

2010-07-23 Fir de Conversatie Andy Kittner
On Fri, Jul 23, 2010 at 02:30:19PM -0400, James Vega wrote: Because we have to use RTLD_GLOBAL (since the C extensions aren't linked against libpython), it's not safe to use both the Python 2 3 This seems to be system dependent then. On my system the original example worked fine before the

:drop doesn't respect 'autochdir'?

2010-07-23 Fir de Conversatie Peter Odding
Hi list, I use a ~/bin/gvim script to turn graphical Vim into a single instance program using the --remote-tab-silent command line option. This works great except that I have set the 'autochdir' option in my ~/.vimrc and have come to rely on it but it doesn't work with --remote-tab-silent.

Re: DirDiff fails with 7.3a

2010-07-23 Fir de Conversatie Wenzhi Liang
On Tue, Jul 20, 2010 at 11:58 AM, epanda callingel...@hotmail.fr wrote: Hi, It seems that DirDiff is not yet working with the latest Gvim7.3.a released by Bram when I open a new line of two files that are different. I don't understand cause it says that b_currentDiff is not set. Works for

Re: Linking errors when compiled with both python and python3

2010-07-23 Fir de Conversatie James Vega
On Fri, Jul 23, 2010 at 11:05:05PM +0200, Andy Kittner wrote: On Fri, Jul 23, 2010 at 02:30:19PM -0400, James Vega wrote: Because we have to use RTLD_GLOBAL (since the C extensions aren't linked against libpython), it's not safe to use both the Python 2 3 This seems to be system dependent

Re: Linking errors when compiled with both python and python3

2010-07-23 Fir de Conversatie Kazuo Teramoto
On Fri, Jul 23, 2010 at 8:17 PM, James Vega james...@jamessan.com wrote: That's interesting.  As far as I can tell, Python's build system doesn't do this normally.  It would appear your distribution (which is?) has changed that. In my system the files on lib-dynload are linked to libpython.so

Re: Bug with 'relativenumber'

2010-07-23 Fir de Conversatie Lech Lorens
On 24-Jul-2010 David Larson da...@thesilverstream.com wrote: Hello, I've been playing around with the new 'relativenumber' setting and found a bug. If you have a spit window and if vim detects that a file in the window without the focus has been changed outside the editor (like from the

How do you enable the conceal feature?

2010-07-23 Fir de Conversatie Gary Johnson
I just updated to the latest Vim 7.3 changeset on my Linux system and after building it noticed that the conceal feature wasn't included. I tried to enable it using ./configure --enable-cscope --enable-conceal but got this warning: configure: WARNING: unrecognized options:

Re: How do you enable the conceal feature?

2010-07-23 Fir de Conversatie Christian J. Robinson
On Fri, 23 Jul 2010, Gary Johnson wrote: I could probably get it with --with-features=huge, but I don't want the kitchen sink. How do I add the conceal feature to a normal build? --with-features=big Or edit src/feature.h: /* * +conceal 'conceal' option. Needs syntax

Re: Command autocompletion behaving strangely

2010-07-23 Fir de Conversatie Nazri Ramliy
On Sat, Jul 24, 2010 at 5:00 AM, Bram Moolenaar b...@moolenaar.net wrote: Perhaps the algorithm can remove the path when there is only one choice, but keep a longer path otherwise.  This also depends on the first entry in 'path'.  Usually it's ., thus if ./{shortened-match} exists and is

Re: Beep on exit

2010-07-23 Fir de Conversatie Tony Mechelynck
On 22/07/10 23:34, Anatoli Sakhnik wrote: There appeared one annoying thing in vim-7.3 (starting even from alpha). Every time I quit the editor, it beeps. 1) 'visualbell' is set. 2) 't_vb' is reset. In fact, when I set it to A, I see that character is printed on excessiveesc, but Vim still

Cursor positioning bug with 'concealcursor'

2010-07-23 Fir de Conversatie Christian J. Robinson
vim -u NONE -U NONE -c 'set nocp' \ -c 'syntax on' -c 'filetype plugin on' \ -c 'help' -c 'set number' Whenever the cursor is positioned on the first (non-tab) character of any line, it jumps to the very first column in the display (inside the number column). This happens if you

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Tony Mechelynck
On 23/07/10 20:06, Nikolai Weibull wrote: On Fri, Jul 23, 2010 at 19:33, James Vegajames...@jamessan.com wrote: On Fri, Jul 23, 2010 at 1:25 PM, Nikolai Weibulln...@bitwi.se wrote: Sort of like a modeline? Sort of, except modelines can be at the top or the bottom of the file And one

Re: [patch] Disallow changing 'fenc' in modeline

2010-07-23 Fir de Conversatie Tony Mechelynck
On 23/07/10 23:00, Bram Moolenaar wrote: Matt Wozniski wrote: [...] Doing it *properly* (eg, for all supported encodings) would definitely be difficult, but I can envision a quick hack that works for single-byte encodings: 0) Start handling a :e command 1) remember what 'fenc' was set to

Re: Beep on exit

2010-07-23 Fir de Conversatie Anatoli Sakhnik
No, nothing is output. I suspect either the code prints BEEP (007) or one of used libraries. Let me experiment with different systems and build options. On 24 Лип, 05:15, Tony Mechelynck antoine.mechely...@gmail.com wrote: thing to do. When you do         :verbose au VimLeave does it mention