Re: has anybody done syntax highlighting for linux Kconfig files ?

2006-04-12 Thread Yakov Lerner
On 4/11/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 4/11/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/11/06, Nikolai Weibull [EMAIL PROTECTED] wrote: As per your request, here's a syntax/kconfig.vim. Nice job Nikolai, thanks. I went though all 2.6 Kconfig files and noticed some

Re: Mappings fail me, yet again

2006-04-20 Thread Yakov Lerner
On 4/21/06, Nikolai Weibull [EMAIL PROTECTED] wrote: Still, I figured that now that we have operator functions ... I would be able to define my long-wanted g: mapping that makes : act like an operator, i.e., first waits for a range and then starts command mode with that range on the command

Re: pushkeys() patch, add keys to typeahead buffer, simple

2006-04-21 Thread Yakov Lerner
On 4/21/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/21/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: At the request of Nikolai Weibull, I made a patch, the pushkeys({string}) function which add keys sequence to the typeahead bufer

Re: pushkeys() patch, add keys to typeahead buffer, simple

2006-04-22 Thread Yakov Lerner
On 4/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/21/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/21/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: At the request of Nikolai Weibull, I made a patch

functions that take much time in load_dummy_buffer() [vimgrep]

2006-04-28 Thread Yakov Lerner
I identified which functions are slow and which are fast out of functions called (load_dummy_buffer() + wipe_dummy_buffer()) pair. As I wrote earlier this pair of functions is what slows down vimgrep, not the search. The loop of 1000x (load_dummy_buffer() + wipe_dummy_buffer()) takes 30 seconds

Re: functions that take much time in load_dummy_buffer() [vimgrep]

2006-04-29 Thread Yakov Lerner
On 4/29/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I identified which functions are slow and which are fast out of functions called (load_dummy_buffer() + wipe_dummy_buffer()) pair. As I wrote earlier this pair of functions is what slows down vimgrep, not the search

Re: spell function -- suggestion to do: error rate of a file

2006-04-29 Thread Yakov Lerner
On 4/29/06, Milan Berta [EMAIL PROTECTED] wrote: Is there any way how to count bad words in a file which is spelled? Or any function which can show an 'error rate' of a file? The script that does what you want is below, and also attached. Press F5 to activate. This is sample output: Total

Re: echo message missing

2006-05-02 Thread Yakov Lerner
On 5/2/06, Robert Webb [EMAIL PROTECTED] wrote: Will inserting redraw command before echo help ? Like this: func! SaveSession() mksession! aaaSession.vse redraw echo Session saved endfunction You're right, this fixes it. Thanks. But is it a bug still that the echo

Re: Feature request -- expression based syntax

2006-05-06 Thread Yakov Lerner
On 5/6/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Suresh Govindachar wrote: Bram Moolenaar wrote: Suresh Govindachar wrote: Please consider supporting expressions for syntax matching. An example of usage is indicated below: I don't quite get it. :syn match

Re: Where to submit a patch/modification for consideration?

2006-05-07 Thread Yakov Lerner
On 5/7/06, Eric Arnold [EMAIL PROTECTED] wrote: On 5/7/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/7/06, Eric Arnold [EMAIL PROTECTED] wrote: Can you clarify coulpe of points. 1. a) Is this event fired when getchar() or vim extract event from typeahead buffer for processing

Re: Behavior of synIDattr() varies

2006-05-07 Thread Yakov Lerner
`On 5/8/06, Thomas Haselwanter [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 5/6/06, Thomas Haselwanter [EMAIL PROTECTED] wrote: Hi, Vims excellent script support just asks to be exploited, and I am in the process of putting 2html.vim to use. I have been getting different results from

Re: SVN and svn:eol-style

2006-05-11 Thread Yakov Lerner
On 5/11/06, Bill McCarthy [EMAIL PROTECTED] wrote: On Thu 11-May-06 6:31am -0600, you wrote: So? Why are you using notepad? When working on another's computer, what do you suggest? Wordpad? Wordpad does understand LF as line separator, unlike notepad. Yakov

Re: Unsupported RD version of Vim?

2006-05-12 Thread Yakov Lerner
On 5/12/06, Eric Arnold [EMAIL PROTECTED] wrote: I was wondering if anybody has thought about having an unsupported version of Vim which has various enhancements and patches that aren't yet approved for the official version of Vim? What if you upload your patch to www.vim.org/script site ? I

Re: Using py commands to evaluate text for balloon commands..

2006-05-24 Thread Yakov Lerner
On 5/24/06, Mohsin [EMAIL PROTECTED] wrote: I am trying to use the ':py' interface to evaluate text under cursor and show the result in a balloon text. I got the python and vim code to work easily, however I have problem communicating between the two (py and vim): 1. How do I access vim

Re: set readonly - strange?

2006-05-24 Thread Yakov Lerner
On 5/24/06, Eric Arnold [EMAIL PROTECTED] wrote: I think 'readonly' does not belong in the .vimrc since it is a buffer-local-only option. If you try to set any other buffer-local option in .vimrc, you'll see that it works just fine. I tried 'set tw=22' in file opened as 'vim -u file file' and

Re: All mails lost

2006-06-07 Thread Yakov Lerner
On 6/7/06, Mathias Michaelis [EMAIL PROTECTED] wrote: My emails are systematically filtered out. Find the 'plaintext' option in your Thunderbird client, and use it when you send to mailing list. I thought mailinglist filter was supposed to bounce back to you the html-formatted message in

Re: All mails lost

2006-06-07 Thread Yakov Lerner
On 6/7/06, Mathias Michaelis [EMAIL PROTECTED] wrote: Thanks for reply -- I appreciate that also those nasty problems are discussed seriously. But anyway: I don't write HTML emails, I turn this (un-)feature off where ever it is possible. So this explanation can be excluded. Thinking about it

Re: New feature: bind layout of windows to keys?

2006-06-08 Thread Yakov Lerner
On 6/8/06, Markus Mottl [EMAIL PROTECTED] wrote: Hi, I'm new to the developer list so I don't know whether this has already been discussed here. One thing I encounter frequently is that I have tons of open buffers, especially also from different projects, and I would like to switch between

Re: set readonly - strange?

2006-06-18 Thread Yakov Lerner
On 6/18/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 5/23/06, Zdenek Sekera [EMAIL PROTECTED] wrote: create a file ~/.vimtest as follows: cat .vimtest set nocompatible set readonly C-D and execute (g)vim: vim .vimtest -u .vimtest try

Re: set readonly - strange?

2006-06-18 Thread Yakov Lerner
On 6/18/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 6/18/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 5/23/06, Zdenek Sekera [EMAIL PROTECTED] wrote: create a file ~/.vimtest as follows: cat .vimtest set nocompatible set readonly C-D

Re: set readonly - strange?

2006-06-19 Thread Yakov Lerner
On 6/19/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: After the following patch, the output is better. Two out of three 'readonly' lines are now in place. --- message.c.000 2006-06-19 02:49:34.0 +0300 +++ message.c 2006-06-19 02:52:41.0 +0300

c89 and c99 filetypes

2006-06-22 Thread Yakov Lerner
Bram, Following the discussion in vim mailing list, and now that more C compilers support c99 features, what do you think about adding two explicit filetypes, c89 and c99, to allow vim scripts to clearly distinguish between the two distinct flavors of C: --- file syntax/c89.vim

Re: minor feature request: let!

2006-07-02 Thread Yakov Lerner
On 7/2/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia niedziela, 2 lipca 2006 12:06, Nikolai Weibull napisał: On 7/1/06, justin constantino [EMAIL PROTECTED] wrote: E706: Variable type mismatch As a minor improvement, I think it would be nice if you could do: let foo =

Re: minor feature request: let!

2006-07-02 Thread Yakov Lerner
On 7/2/06, Yakov Lerner [EMAIL PROTECTED] wrote: ... Justin and Nikolai to ask for analogous silent type conversion between lists and strings. Excuse me, I was wrong in this sentence. Justin and Nikolai didn't advocate silent type conversion between lists and strings. Yakov

Re: Terminal-based auto-paste.

2006-07-07 Thread Yakov Lerner
On 7/7/06, Sean Reifschneider [EMAIL PROTECTED] wrote: What I'm really looking for is that when I paste using the mouse, that paste is set. How about this :map MiddleMouse :set pastecr*p:set nopastecr and similar thing for imap -- untested Yakov

Re: Terminal-based auto-paste.

2006-07-11 Thread Yakov Lerner
On 7/10/06, Sean Reifschneider [EMAIL PROTECTED] wrote: On Mon, Jul 10, 2006 at 07:56:13PM +0300, Yakov Lerner wrote: Vim is special. I believe that being organic extension of programmer/sysadmin fingers, it deserves special attitude that other packages. By refusing to build vim from sources

scrolloff enhancement wish

2006-07-20 Thread Yakov Lerner
Hello Bram, Would you include into todo.txt the thing that I used in one very ancient but exceptionally smooth editor called K52 (it worked on pdp11, vt52 terminals). This editor always positioned cursor at 2/3 height from top of screen. This worked surprisingly well, even if it sounds strange.

poll?

2006-07-20 Thread Yakov Lerner
Bram, How about posting a poll on www.vim.org site ? Two polls ! (1) Do you you vim6 or vim 7 ? (2) Do you use console-mode-vim or gvim ? Yakov

Re: Suggestion for difference mode

2006-07-22 Thread Yakov Lerner
On 7/22/06, Christ van Willegen [EMAIL PROTECTED] wrote: we sometimes copy source from one project to another, usually between classes of the same fuctionality, but different naming. vim -d src1 src2 does almost what I want, but: - Highlights differences in class names, and - When

Re: Bug in filetype.vim w.r.t. mutt temp file names

2006-07-25 Thread Yakov Lerner
On 7/26/06, mwoehlke [EMAIL PROTECTED] wrote: Gary Johnson wrote: I noticed recently that vim does not always set 'filetype' to mail when I edit mutt temporary files, e.g., postponed messages. I traced the problem to mutt's use of mktemp() with the pattern muttXX. I don't know about

Re: vim server ? security hole?

2006-07-26 Thread Yakov Lerner
On 7/26/06, Marc Weber [EMAIL PROTECTED] wrote: I did notice that you can do su gvim :echo SERVERNAME and then using another user gvim --servername=GVIMxx --remote-send='!/dowhatyouwant ;-)' Marc, In case you are talking X11: D you have x11 authorization enabled or disabled ? Command 'xhost'

Re: vim server ? security hole?

2006-07-26 Thread Yakov Lerner
On 7/26/06, Marc Weber [EMAIL PROTECTED] wrote: Marc, In case you are talking X11: D you have x11 authorization enabled or disabled ? I've been taking x11. I did modify xhost because I wanted a php script be able to launch vim. But I've restarted X now and xhost - shows the same as xhost. It

Re: vim server ? security hole?

2006-07-28 Thread Yakov Lerner
On 7/28/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 7/27/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Vim uses the X server for communication. Only users with write access to the X server can send a message to Vim. And if you have write access, you are also able to send keystrokes to

Re: Vim-Runtime

2006-08-05 Thread Yakov Lerner
On 8/4/06, Martin Krischik [EMAIL PROTECTED] wrote: How are updates to the runtime files submitted? You email them to Bram. Yakov

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread Yakov Lerner
On 8/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 8/5/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: However, it can sort of be simulated by having marks that stick to the text position that they mark, instead of line + fixed column. (We

vim cannot quit after certain tabs manipulation

2006-08-06 Thread Yakov Lerner
After certain 3-step manipulation with tabs, can't quit vim with :q!. (vim 7.0.42). Tabline is not updated properly. % vim -u NONE -U NONE ixescmake 1st buffer modified :tabnewcr create 2nd tab ixescmake 2nd buffer modified

Re: Vim's mch_FullName() function and ClearCase versioned file names

2006-08-12 Thread Yakov Lerner
On 8/12/06, Gary Johnson [EMAIL PROTECTED] wrote: I just finished troubleshooting a problem that had several contributing factors, one of which was the way Vim's mch_FullName() function behaves with ClearCase versioned file names. If you open a file under ClearCase using the full path name and

Re: Patch (Unofficial): Malformed characters in menu and toolbar when using zh_CN.GBK encoding under Linux

2006-08-11 Thread Yakov Lerner
On 8/12/06, mwoehlke [EMAIL PROTECTED] wrote: Bram Moolenaar wrote: hundred-and-one symptoms of being an internet addict: 256. You are able to write down over 250 symptoms of being an internet addict, even though they only asked for 101. So where is the complete list? ;-) I believe

different format of features in :version

2006-08-15 Thread Yakov Lerner
I want to suggest different format of features listing in output of :version. Namely, I suggest that all included features go first in one list, and after them, all excluded go in another list. I think this is more readable than existing format, in which both (+) and (-) features are mixed in a

Re: conceal-patch status

2006-08-17 Thread Yakov Lerner
On 8/17/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Vince Negri wrote: I'm still alive, just very busy :-) New home for conceal patches is: http://vince.negri.googlepages.com/ [...] OK. I've updated my W32 and Unix HowTo (compile Vim) pages to mention this, and while I was at it, I've

\Left inside C-R=

2006-08-21 Thread Yakov Lerner
The following does not work as expected. I wonder whether it is a bug or a feature: cabbr XXX c-R=xyz.Left()cr function! Left() return \Left endfun Instead of repositioning cursor left, I get :[EMAIL PROTECTED] I know It is possible to make it work via feedkeys(), but this [EMAIL

syntax and filetype.vim patch for 'initng' config files

2006-08-21 Thread Yakov Lerner
This is filetype.vim patch and syntax for initng config files. Initng is bold new replacement for sysv-init, http://initng.thinktux.net Those config files sit under /etc/initng/** and have extension *.i Distinguishing them from other *.i files is easy, they have #!/bin/itype in the 1st line.

session-file problem in presence of 'set acd'

2006-08-30 Thread Yakov Lerner
When 'acd' is set, 'vim -S' open files in wrong directory. To reproduce: 1. make your ~/.vimrc 1-liner 'set acd' (Alternatively, use use vim -u NONE -c 'set acd' instead of vim in commands below). 2. vim ~/xxx# or :he options.txt now you have two files open: (1) ~/xxx

Re: vim mailing lists

2006-08-30 Thread Yakov Lerner
On 8/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Benji Fisher wrote: On Sun, Aug 27, 2006 at 02:40:24PM +0200, Bram Moolenaar wrote: Apparently the sorbs blacklist mechanism is still being used, causing trouble for some people. I have asked the mail server maintainer to remove

Re: session-file problem in presence of 'set acd'

2006-09-01 Thread Yakov Lerner
On 9/1/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: When 'acd' is set, 'vim -S' open files in wrong directory. To reproduce: 1. make your ~/.vimrc 1-liner 'set acd' (Alternatively, use use vim -u NONE -c 'set acd' instead of vim in commands below). 2. vim ~/xxx

Re: Syntax matching. extend inside normal inside keepend

2006-09-02 Thread Yakov Lerner
On 9/2/06, Ilya [EMAIL PROTECTED] wrote: Hello. I have a question regarding syntax matching. I have some kind of syntax and I have some solution to highlight it, but it does not work the way I expect it to. What I want: match syntax that consists of blocks (enclosed in {}), strings (enclosed

Re: Syntax matching. extend inside normal inside keepend

2006-09-03 Thread Yakov Lerner
On 9/3/06, Ilya [EMAIL PROTECTED] wrote: Yakov Lerner wrote: When I removed both 'keepend' and 'extend', it started to work as expected. No, it would not work as I want it to. Block would not end unclosed String. Like this: { Some string with a quote ( ) inside } Ah, I have a guess what

Re: Syntax matching. extend inside normal inside keepend

2006-09-03 Thread Yakov Lerner
On 9/2/06, Ilya [EMAIL PROTECTED] wrote: Hello. I have a question regarding syntax matching. I have some kind of syntax and I have some solution to highlight it, but it does not work the way I expect it to. What I want: match syntax that consists of blocks (enclosed in {}), strings (enclosed

Re: Syntax matching. extend inside normal inside keepend

2006-09-03 Thread Yakov Lerner
On 9/3/06, Ilya [EMAIL PROTECTED] wrote: Yakov Lerner wrote: When I removed both 'keepend' and 'extend', it started to work as expected. No, it would not work as I want it to. Block would not end unclosed String. Like this: { Some string with a quote ( ) inside } What about the following

Re: Syntax matching. extend inside normal inside keepend

2006-09-03 Thread Yakov Lerner
On 9/3/06, Ilya [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/2/06, Ilya [EMAIL PROTECTED] wrote: Hello. I have a question regarding syntax matching. I have some kind of syntax and I have some solution to highlight it, but it does not work the way I expect it to. What I want: match

'acd' + :file, 'acd' : +saveas

2006-09-05 Thread Yakov Lerner
Giving buffer new name in different directory does not change to new directory, when 'acd' is set. This does not sound right, taking into account that switching buffers to and back makes current directory right. To reproduce: % vim -u NONE ~/xxx :set acd :he acdto have 2nd buffer

winrestview() + 'showcmd'

2006-09-05 Thread Yakov Lerner
I see erratic screen redraw (namely, curshor shown past last line of file, or on wrong line (which is not line('.'))). This vim 7.0.86 taken from svn today, including recent fix to winrestcmd(). It happens after certain winrestview() when 'showcmd' is set. This code works ok with 'noshowcmd'.

Re: screen update problem during periodic file refresh

2006-09-07 Thread Yakov Lerner
On 9/7/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I see several problems (that I can't explain) in the vim refresh-loop watching the growing file (a-la 'tail -f'). Vim commands are below. Problem #1: There is unexpected output on the bottom line

Re: screen update problem during periodic file refresh

2006-09-07 Thread Yakov Lerner
On 9/7/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/7/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I see several problems (that I can't explain) in the vim refresh-loop watching the growing file (a-la 'tail -f'). Vim commands are below. Problem #1

RFC: bigger '--with-features' than huge (incl interpreters)

2006-09-08 Thread Yakov Lerner
Hello, The biggest build size that exists now (the --with-features) is 'huge'. This 'huge' still does not include interpreters. What does public and Bram think about adding another build size ('extra-huge') that includes [all] interpreters ? What is your feeback ? Yakov Possible namings:

Re: Hello! Well Met! And a possible bug. :-)

2006-09-08 Thread Yakov Lerner
On 9/8/06, Mark Manning [EMAIL PROTECTED] wrote: I believe I may have found an obscure bug. It is not a harmful bug. It does not make VIM crash or do weird things. (Well, sort-of.) :-) Here is how to reproduce it: First you have to have a lot of open and close braces (}). They do

extraHuge build size (= huge + intepreters)

2006-09-10 Thread Yakov Lerner
This patch adds 'extrahuge' build size, which is huge+interpreters (spelled as --with-features=extrahuge or --with-features=allinterp). Yakov P.S. Maybe --with-features=max is better name. patch-extrahuge Description: Binary data

Re: The c.vim file

2006-09-10 Thread Yakov Lerner
On 9/10/06, Mark Manning [EMAIL PROTECTED] wrote: In the syntax stuff, the c.vim file should be changed to have the following: Old: syn regioncStringstart=++ skip=+\|\\+ end=++ contains=cSpecial New syn regioncStringstart=++ skip=+\||'+ end=++

Re: Update on the update

2006-09-10 Thread Yakov Lerner
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: (If I put in echo version it comes back as 700. Even the 7.0.17 version comes back as 700 Output of ':echo version' does not reflect patchlevel. (the .17 in 7.0.17 is patchlevel). You can see the patchlevel on the initial splashscreen, or in

Re: New question

2006-09-10 Thread Yakov Lerner
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Hey, I hate to keep barging in here asking questions and such but here is a new one. :-) In the new basic.vim file I am having a problem. In FreeBasic you can use both single as well as double quotes to enclose a string. Unfortunately, you can

Re: New question

2006-09-10 Thread Yakov Lerner
-- Forwarded message -- From: Mark Manning [EMAIL PROTECTED] Date: Sep 11, 2006 1:43 AM Subject: Re: New question To: Yakov Lerner [EMAIL PROTECTED] Ok, tried it and it works! :-) Thanks! :-) Mark

Re: Possible addition to the c.vim and perl.vim syntax files

2006-09-10 Thread Yakov Lerner
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: I saw in the c.vim that there was an error statement for octal numbers. There isn't one for hex numbers so I made one really quickly. If you want, just put it into the c.vim file. :-) The test: syn regioncHexErrorstart=0x\x*[g-zG-Z]

winrestview() after PageDown

2006-09-11 Thread Yakov Lerner
I see a case in which winrestview() work incorrectly after PageDown near end-of-file. (This is in the context of scrollfix plugin.) To reproduce: % vim -u NONE -c 'so x.vim'# x.vim is below :help help have some text :set nu see line numbers press seevral

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Yakov Lerner
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does not notion of binary numbers. Yakov

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Yakov Lerner
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does not notion of binary numbers. Yakov On some systems that answer is correct

Re: testing patchlevel from script

2006-09-11 Thread Yakov Lerner
On 9/11/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 9/11/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: [a way to create a list of what patches has been applied] Here's a simpler version of that script that doesn't allow for patches to be skipped. I don't know if the Vim build scripts

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Yakov Lerner
On 9/12/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does

distributing experimental patches with vim ?

2006-09-13 Thread Yakov Lerner
Vim patches submitted by external submitters are either 'incorporated' or 'outsude of vim sources'. That's black-and-white. I thought it's possible to add some intermediate state, where 'experimental-patch' is neither outside of vim nor inside-vim. This is useful because people can try

:redraw vs Ctrl-L difference

2006-09-14 Thread Yakov Lerner
I noticed that :redraw works differently from Ctrl-L in certain situations: 1) vim -u NONE :set laststatus=2 statusline ruler :help help get some text 2) Let's cause some screen mispaininting, so we can test :redraw: :silent! !echo aaa cause mispainted screen (this

Re: Tags break when enabling large file support

2006-09-14 Thread Yakov Lerner
On 9/14/06, Haakon Riiser [EMAIL PROTECTED] wrote: After recompiling Vim with -D_FILE_OFFSET_BITS=64, everything involving tags break, including the help system. Typing :h, or pressing ^] to jump to a tag, causes Vim to get caught in an infinite loop. Is there another way to get large file

Re: Tags break when enabling large file support

2006-09-14 Thread Yakov Lerner
On 9/14/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/14/06, Haakon Riiser [EMAIL PROTECTED] wrote: After recompiling Vim with -D_FILE_OFFSET_BITS=64, everything involving tags break, including the help system. Typing :h, or pressing ^] to jump to a tag, causes

Re: Tags break when enabling large file support

2006-09-14 Thread Yakov Lerner
On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/14/06, Haakon Riiser [EMAIL PROTECTED] wrote

Re: Tags break when enabling large file support

2006-09-14 Thread Yakov Lerner
On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/14/06, Haakon Riiser [EMAIL PROTECTED] wrote: After recompiling Vim with -D_FILE_OFFSET_BITS=64, everything involving tags break, including the help

Re: Tags break when enabling large file support

2006-09-14 Thread Yakov Lerner
On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/14/06, Haakon Riiser [EMAIL PROTECTED] wrote: After recompiling Vim with -D_FILE_OFFSET_BITS=64

Re: Tags break when enabling large file support

2006-09-14 Thread Yakov Lerner
On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/14/06, Haakon Riiser [EMAIL PROTECTED] wrote

Re: Tags break when enabling large file support

2006-09-14 Thread Yakov Lerner
On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/14/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/14/06, Haakon Riiser [EMAIL PROTECTED] wrote

Re: patch: automatically enter paste mode

2006-09-15 Thread Yakov Lerner
On 9/13/06, Ian Kilgore [EMAIL PROTECTED] wrote: On Wed, Sep 13, 2006 at 11:27:43AM +0300, Yakov Lerner wrote: Nice. So simple. I have couple of comments. Thank you :) 1. Don't you need to reset 'paste' back to 'nopaste' when high cps stops ? There is a hastily coded version of the patch

Re: no winclose event

2006-09-25 Thread Yakov Lerner
On 9/25/06, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Just a suggestion -- I'd appreciate a WinClose event. BufWinLeave would almost do, but if two or more windows are open on the same buffer, then no event. WinLeave fires whenever one changes windows, which isn't what I want, either.

Re: Searching for selected text

2006-09-30 Thread Yakov Lerner
On 9/30/06, Georg Dahn [EMAIL PROTECTED] scribbled: Hi! Bram Moolenaar wrote: / search for the Visually selected text forward ? same, backward Is there a good alternative? I think, this is ok. For the moment I have the following lines ... vnoremap expr *

Re: Searching for selected text

2006-09-30 Thread Yakov Lerner
On 9/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching for a pattern. Since we might

Re: Searching for selected text

2006-10-01 Thread Yakov Lerner
On 9/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching for a pattern. Since we might

CursorHold when cursor is in command-line

2006-10-02 Thread Yakov Lerner
I observe that CursorHold is not triggered when cursor in spending long time in commandline, correct ? Is it possible to trigger CursorHold also when cursor is in command line ? (Maybe by some :au CursorHold commandline syntax ?) BTW does all this mean that if I enter commandline (:) within

Re: Time to remove naming restrictions?

2006-10-03 Thread Yakov Lerner
On 10/3/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 10/1/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: One thing that really annoys me with Vim is the limits it emposes on what names are legal for user-defined functions and commands. I know

Re: Autocommand-Event for Clipboard-Changed

2006-10-03 Thread Yakov Lerner
On 10/3/06, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Bram Moolenaar wrote: Suresh Govindachar wrote: Is it possible to add an autocommand-event for Clipboard Changed? Not really. This is not something that happens inside Vim. Polling for changes in the system is not really

Missing CursorHold after return from insert to normal ?

2006-10-04 Thread Yakov Lerner
CursorHold is suppsed to be triggered in normal mode after updatetime, correct ? But in the scenario below, when vim gets into normal mode after insert mode, CursorHold is not triggered: 1. vim -u NONE -U NONE 2. :let x=0 3. :let ut=200 just some low value 3. :au CursorHold * let

Re: Missing CursorHold after return from insert to normal ?

2006-10-05 Thread Yakov Lerner
On 10/5/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: CursorHold is suppsed to be triggered in normal mode after updatetime, correct ? But in the scenario below, when vim gets into normal mode after insert mode, CursorHold is not triggered: 1. vim -u NONE -U NONE 2

Re: vim -u NONE

2006-10-06 Thread Yakov Lerner
On 10/6/06, Bill McCarthy [EMAIL PROTECTED] wrote: On Thu 5-Oct-06 8:54pm -0600, Gary Johnson wrote: gvim -u NONE -i NONE -N Setting -u NONE -i NONE -N is all that's needed. See :help -u. I never noticed that 'vim -u NONE' ever read the .viminfo ? For example, if I set 'set nocp' in

Re: vim -u NONE

2006-10-06 Thread Yakov Lerner
On 10/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Peter Hodge wrote: [...] I wouldn't think the -i option is necessary, because 'viminfo' is empty by default anyway. [...] The 'viminfo' option is not empty by default, except in 'compatible' mode (see -u option forces 'compatible' on.

usability suggestion: 'viminfo'

2006-10-07 Thread Yakov Lerner
I suggest new flag for 'viminfo'; flag to turn on the *last-position-jump* functionality (say, letter j). Such it will be much easier method to turn on the last-position-jump functionality. With new flag, it will be mere: :set viminfo='20,50,s10,j or :set viminfo+=j -- as easy as

Re: usability suggestion: 'viminfo'

2006-10-07 Thread Yakov Lerner
On 10/7/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I suggest new flag for 'viminfo'; flag to turn on the *last-position-jump* functionality (say, letter j). Such it will be much easier method to turn on the last-position-jump functionality. With new flag

long echomsg + 'set shortmess+=T' + norm-vs-without-norm

2006-10-11 Thread Yakov Lerner
I observe strange behaviour related to 'set shortmess+=T' . Sometimes this 'T' flag shortens long messages, sometimes it does not. To see: 1. vim -u NONE 2. :set nocp shortmess=aT :nmap ZB :echomsg repeat('a',co+10)cr 3. Press ZB. You get long message and 'Press Enter' prompt. 4. Type :norm ZBcr

Re: feature request: don't write backup if the file is unmodified

2006-10-13 Thread Yakov Lerner
On 10/13/06, David Schweikert [EMAIL PROTECTED] wrote: Would it be possible to make Vim overwrite a backup file only if the buffer was actually modified? Look at the following scenario: 1. I edit file foobar.txt, make some change and save it. - the backup file foobar.txt~ is created 2. I

Re: :diffsplit | verbose set fdm?

2006-10-13 Thread Yakov Lerner
On 10/13/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Benji Fisher wrote: While replying to a post on the vim users' list, I noticed a slight problem. The diff commands set some options, but this is not reported with verbose set. For example :e foo.txt :set fdm=marker :diffsplit

Re: :diffsplit | verbose set fdm?

2006-10-13 Thread Yakov Lerner
On 10/13/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 10/13/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Benji Fisher wrote: While replying to a post on the vim users' list, I noticed a slight problem. The diff commands set some options, but this is not reported

Re: [PATCH] cygwin: Trouble recognizing absolute path

2006-10-13 Thread Yakov Lerner
On 10/13/06, Corinna Vinschen [EMAIL PROTECTED] wrote: Hi, I got a report on the Cygwin mailing list that the following message appears when trying to open /etc/hosts in vim: E303: Unable to open swap file for /etc/hosts, recovery impossible What happens is this: /etc/hosts is by default a

svn vs rsync vs ftp

2006-10-17 Thread Yakov Lerner
Of different current methods to access vim sources (svn, ftp, rsync, etc) which one is fastest to be updated when new patch is issued, and also has most reliable/fast server ? Yakov

the plugin startup check

2006-10-19 Thread Yakov Lerner
Almost every plugin begins with this check: if exists(g:plugin_name) | finish | endif let g:plugin_name = 1 I understand this tries to save time if vim tries to load plugins 2nd time. But aren't plugins loaded only at vim startup ? Does vim *ever* ever try to load plugins 2nd time ? In

Re: the plugin startup check

2006-10-19 Thread Yakov Lerner
On 10/20/06, Peter Hodge [EMAIL PROTECTED] wrote: --- Yakov Lerner [EMAIL PROTECTED] wrote: Almost every plugin begins with this check: if exists(g:plugin_name) | finish | endif let g:plugin_name = 1 I understand this tries to save time if vim tries to load plugins 2nd time

Re: escape() and '

2006-10-23 Thread Yakov Lerner
On 10/23/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 10/23/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Hello, I understand that escape() was primarily designed to escape strings when passing to system functions, but personally I never used that and in didn't noticed such use in

Re: syntax region match with braces

2006-10-31 Thread Yakov Lerner
On 10/31/06, Виктор Кожухаров [EMAIL PROTECTED] wrote: Hello, I'm working on a syntax file for .edc files. The problem before me is that I want to use a different syntax file for a script part. I've created the syntax file for the script syntax, and I've read how yto use syn include. The real

  1   2   >