Re: OT: Vi in a browser...

2007-06-01 Thread Yakov Lerner
On 5/30/07, Tim Chase [EMAIL PROTECTED] wrote: Just stumbled across this link: http://gpl.internetconnection.net/vi/ for a basic implementation of Vi, authored in JavaScript. Sick, sick, sick. So just in case you're on a foreign computer that doesn't have vi/vim installed, and you need a

Re: breakindent, take 2

2007-05-29 Thread Yakov Lerner
On 5/29/07, Nico Weber [EMAIL PROTECTED] wrote: What do you think? I prefer (c) from implementation, efficiency and intuitivity perspective. I agree. Strongly. Yes, I agree with (c) , too. I suggested once new type of options to vim that behaved both like boolean, and numeric. But Bram

Re: breakindent, take 2

2007-05-29 Thread Yakov Lerner
On 5/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/29/07, Nico Weber [EMAIL PROTECTED] wrote: What do you think? I prefer (c) from implementation, efficiency and intuitivity perspective. I agree. Strongly. Yes, I agree with (c) , too. I suggested once new type of options to vim

Re: Why bottom-posting is prefered on Vim Mainling List?

2007-05-29 Thread Yakov Lerner
On 5/28/07, Dave Land [EMAIL PROTECTED] wrote: Folks, In the spirit contrarianism, I'm going to top-post now. Actually, both parts of Mark's post below were of a _third_ variety: interlinear comments. I disagree. Interlinear is not third variety, but a subcategory of either top-posting, or

Re: Why bottom-posting is prefered on Vim Mainling List?

2007-05-29 Thread Yakov Lerner
On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: As far as I know, most e-mail clients defaults to top-posting some email clients have an option. But it does not help much. Top-vs-bottom depends on the specific mailing list. If I am on mailing list X which has convention of

Re: VimWiki - First Beta

2007-05-29 Thread Yakov Lerner
On 5/29/07, Sebastian Menge [EMAIL PROTECTED] wrote: Hi all Access the first beta here: http://tinyurl.com/34kfj5 Where can I see the recently posted/by recency view ? In other words, what's used for RSS ? Yakov

Re: Why bottom-posting is prefered on Vim Mainling List?

2007-05-29 Thread Yakov Lerner
On 5/29/07, Ben Kim [EMAIL PROTECTED] wrote: Sounds very archaic, but if I read mails with dumb terminals (baud rate 2400 bps), and if I am not familiar with the subject of the thread, top posting would be painful. It would especially be so to whoever has the honor of answering most of the

Re: breakindent, take 2

2007-05-28 Thread Yakov Lerner
On 5/14/07, Václav Šmilauer [EMAIL PROTECTED] wrote: Hello, I submit patch that implements the 'breakindent' feature. It is on vim todo list, since the moment I tried a few years ago (see e.g. http://marc.info/?l=vim-devm=109921292009721w=1). Picture says what it's about (showbreak is aligned

Re: breakindent, take 2

2007-05-28 Thread Yakov Lerner
On 5/14/07, Václav Šmilauer [EMAIL PROTECTED] wrote: Hello, I submit patch that implements the 'breakindent' feature. It is on vim todo list, since the moment I tried a few years ago (see e.g. http://marc.info/?l=vim-devm=109921292009721w=1). Picture says what it's about (showbreak is aligned

Re: Proposal: adding an extra hook into vim's search

2007-05-28 Thread Yakov Lerner
On 5/28/07, Iain Murray [EMAIL PROTECTED] wrote: On 26/05/07, Iain Murray [EMAIL PROTECTED] wrote: On 26/05/07, Yakov Lerner [EMAIL PROTECTED] wrote: I believe you can achieve what you want using 'cmap expr' cleverly. ... I might still attempt a patch. Having the space replacement actually

Re: VimWiki - Page Titles

2007-05-28 Thread Yakov Lerner
On 5/27/07, Sebastian Menge [EMAIL PROTECTED] wrote: Hi I have prepared a list with problematic page titles. Especially titles with chars like [/#{}[]*] and the like are problematic since mediawiki doesnt allow them Strange. Are you sure? I just created a page on wikia.com, page titled

Re: A performance question (patch included)

2007-05-26 Thread Yakov Lerner
On 5/25/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: John Beckett wrote: A.J.Mechelynck wrote: What about a different function to return, say, the number of 1K blocks (or the number of times 2^n bytes, with a parameter passed to the function) that a file uses? Yes, that's a much

Re: Proposal: adding an extra hook into vim's search

2007-05-26 Thread Yakov Lerner
On 5/26/07, Iain Murray [EMAIL PROTECTED] wrote: Hi, Searching for hello world in vim doesn't match hello\nworld. This is annoying when editing documents. The solution is to search for hello\_sworld. But it is frustrating to type \_s instead of a space in every search. I have been getting

Re: A performance question

2007-05-25 Thread Yakov Lerner
On 5/25/07, John Beckett [EMAIL PROTECTED] wrote: A.J.Mechelynck wrote: What about a different function to return, say, the number of 1K blocks (or the number of times 2^n bytes, with a parameter passed to the function) that a file uses? Yes, that's a much more general and better idea.

Re: A performance question

2007-05-25 Thread Yakov Lerner
On 5/25/07, Yongwei Wu [EMAIL PROTECTED] wrote: On 24/05/07, Robert M Robinson [EMAIL PROTECTED] wrote: On Wed, 23 May 2007, fREW wrote: |Someone recently was emailing the list about looking at a small |section of DNA with vim as text and it was a number of gigs. I think |he ended up using

Re: VimWiki - referring to vimdoc

2007-05-23 Thread Yakov Lerner
On 5/23/07, Sebastian Menge [EMAIL PROTECTED] wrote: Im tweaking the import script right now, and noticed that there are many references to the :help. I would like to replace all the occurrences of sth. like (:help some-text) by a reference to vimdoc. Does someone know how what URL could be

Re: Is it possible to do spelling check for comments only?

2007-05-22 Thread Yakov Lerner
On 5/22/07, Edward L. Fox [EMAIL PROTECTED] wrote: On 5/21/07, Swaroop C H [EMAIL PROTECTED] wrote: When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks

Re: How to get value of ~ (last used replace-to string) in script

2007-05-21 Thread Yakov Lerner
On 5/21/07, Antony Scriven [EMAIL PROTECTED] wrote: On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick hack. --Antony fun! EchoTilde() $ put='' s/^/~/ let tilde

Re: How to compile graphical Vim on Mandriva 2007?

2007-05-21 Thread Yakov Lerner
On 5/21/07, Steve Litt [EMAIL PROTECTED] wrote: On Sunday 20 May 2007 15:51, you wrote: On 5/20/07, Steve Litt [EMAIL PROTECTED] wrote: Hi all, I tried to compile graphical Vim 7.1 on Mandriva 2007. I downloaded vim-7.1.tar.bz2, untarred it, and did the following from the top level

undo replace in multiple files

2007-05-21 Thread Yakov Lerner
Let's say I do multi-file replace like 'argdo %s/foo/bar/g', and I 'autowrite' and 'nohidden' options are set. So the argdo will replace and write files, because of 'autowrite' is on. My question is, is there any trick to do 'undo' after that that would undo all changed files in this situation ?

Re: Vim 7.1 errors

2007-05-21 Thread Yakov Lerner
On 5/21/07, Robert Hicks [EMAIL PROTECTED] wrote: Robert Hicks wrote: This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string

Re: remote editing and spell list sync

2007-05-20 Thread Yakov Lerner
On 5/19/07, Eric Smith [EMAIL PROTECTED] wrote: I use remote editing a lot (rsync protocol) and want to keep the spelling lists on both machines always synchromised. Is the best way with unison(1) or suchlike or is there a better way? I tried unison, but then I found that personal

How to get value of ~ (last used replace-to string) in script

2007-05-20 Thread Yakov Lerner
In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov

Re: How to compile graphical Vim on Mandriva 2007?

2007-05-20 Thread Yakov Lerner
On 5/20/07, Steve Litt [EMAIL PROTECTED] wrote: Hi all, I tried to compile graphical Vim 7.1 on Mandriva 2007. I downloaded vim-7.1.tar.bz2, untarred it, and did the following from the top level directory created (vim71): ./configure --enable-gui make src/vim -g The following error message

Re: C-X C-F completion and paths with spaces

2007-05-20 Thread Yakov Lerner
On 5/20/07, Matthew Winn [EMAIL PROTECTED] wrote: I can't begin to imagine why Microsoft thought it would be a good idea to put spaces in the names of system directories I have two theories about this. 1) MS lifted the idea from Macintosh 2) MS, long humiliated by inferiority complex of the

Re: How to get value of ~ (last used replace-to string) in script

2007-05-20 Thread Yakov Lerner
On 5/21/07, Tim Chase [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? While I've wondered this in the past, and don't have an answer at the moment, It seems natural to patch expand() function to return this. The

Re: how to display a column line at righ margin?

2007-05-19 Thread Yakov Lerner
On 5/19/07, Ken YANG [EMAIL PROTECTED] wrote: hi all, can you guide me how to display a column line at right margin, e.g. 80, as gedit and eclipse do. i find this thread in mails archive: http://tech.groups.yahoo.com/group/vim/message/33159 but the method told in this thread is useless, it

Re: C-X C-F completion and paths with spaces

2007-05-19 Thread Yakov Lerner
On 5/19/07, Maciej Kalisiak [EMAIL PROTECTED] wrote: Hello fellow Vimmers, Can any of you that work on Windows tell me how you handle filename completion (C-X C-F) for paths that contain spaces? I love this completion method, but as soon as I get to C:\Document and Settings\, it stops working,

Re: Re-trigger modelines

2007-05-12 Thread Yakov Lerner
On 5/12/07, Steve Hall [EMAIL PROTECTED] wrote: Is there a way to re-trigger the read/execution of modelines? My autocommands are overriding my modelines but I want the reverse. Maybe you add global flag check to your autocommands; the flag that when set, suppresses your suppression, and then

Re: [Announcement] Subversion repository location changed

2007-05-09 Thread Yakov Lerner
On 5/9/07, Edward L. Fox [EMAIL PROTECTED] wrote: If you had checked out a copy of the sources before, please run this command in your source root directory to switch into the current branch: svn switch https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.1 This switch command gives me

Re: what feature is required to return to last editing position?

2007-05-09 Thread Yakov Lerner
On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When opening a file in vim, the cursor will move to the last position when the file was saved. The feature is enabled by some autocommands in vimrc_example.vim, I copied the code into my .vimrc and use it in all platform. It really does

Re: [Announcement] Subversion repository location changed

2007-05-09 Thread Yakov Lerner
On 5/9/07, Edward L. Fox [EMAIL PROTECTED] wrote: If you had checked out a copy of the sources before, please run this command in your source root directory to switch into the current branch: svn switch https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.1 This switch command gives me

Vim version 7.1a BETA -- runtime files ?

2007-05-07 Thread Yakov Lerner
On 5/5/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Announcing: Vim (Vi IMproved) version 7.1a BETA I compared runtime files form ftp [1] and from svn [2]. Both vims are labeled vim71a. But many runtimes are different. In svn, many files are labeled 2007. In ftp, they are 2006 versions. Why

Re: Vim version 7.1a BETA -- runtime files ?

2007-05-07 Thread Yakov Lerner
On 5/8/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 5/5/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Announcing: Vim (Vi IMproved) version 7.1a BETA I compared runtime files form ftp [1] and from svn [2]. Both vims are labeled vim71a. But many runtimes are different

Re: Vim version 7.1a BETA -- runtime files ?

2007-05-07 Thread Yakov Lerner
On 5/8/07, Yakov Lerner [EMAIL PROTECTED] wrote: Full diffs are attached. Diffs are produced by the script diff-vim-ftp-svn.sh, also attached. Re-sending attachments which came out zero-length in previous email. Yakov diffs Description: Binary data diff-vim-ftp-svn.sh Description: Bourne

filename completion

2007-05-07 Thread Yakov Lerner
Let's say I want to see which files end with t. When I do :e *ttab vim shows not only files anding with t but all files containing t, as if I did :e *t*Tab. How can I limit the filename completion only to files ending with t ? Yakov

Re: Vim version 7.1a BETA -- svn ?

2007-05-06 Thread Yakov Lerner
On 5/6/07, Martin Krischik [EMAIL PROTECTED] wrote: Am Sonntag 06 Mai 2007 schrieb Yakov Lerner: On 2007-05-05, Bram Moolenaar [EMAIL PROTECTED] wrote: Announcing: Vim (Vi IMproved) version 7.1a BETA I tried to build vim7.1 from svn. But all I get from usual svn location (https

Re: how to enable mouse in vim of cygwin

2007-05-04 Thread Yakov Lerner
On 5/4/07, sun [EMAIL PROTECTED] wrote: I'm using cygwin and rxvt. It works quite well, since you don't need to start an X server for the application - it just runs. Put the following in your cygwin launcher (cygwin_rxvt.bat for me): @echo off C: chdir C:\cygwin\bin set

[patch] search() flag to not use smartcase

2007-05-03 Thread Yakov Lerner
The patch adds flag to search() flag to not use smartcase. '*' and '#' do not use smartcase, but search() always uses smartcase (cannot be turned off). When we use search() with @/ pattern that comes from * or #, search() fails because of discrepancy in smartcase handling. Yakov ---

Re: [patch] search() flag to not use smartcase

2007-05-03 Thread Yakov Lerner
On 5/3/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: The patch adds flag to search() flag to not use smartcase. '*' and '#' do not use smartcase, but search() always uses smartcase (cannot be turned off). When we use search() with @/ pattern that comes from

Re: wish: show search progress on slow searches

2007-05-03 Thread Yakov Lerner
On 5/1/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/30/07, Bram Moolenaar [EMAIL PROTECTED] wrote: [This is development, removed the Vim maillist] Yakov Lerner wrote: On 4/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov

Re: undo line numbers wrong

2007-05-03 Thread Yakov Lerner
On 5/2/07, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 5/2/07, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/27/07, Robert Cussons [EMAIL PROTECTED] wrote: Thanks Tony, doubt he'll be that interested as he's an emacs user! But anyway some time

Re: savevers plugin

2007-05-03 Thread Yakov Lerner
On 5/3/07, Waters, Bill [EMAIL PROTECTED] wrote: I am looking at using the savevers plugin. I don't think it does exactly what I am looking for. Why don't you set savevers_max to 9 ? Do you plan to have more than 9 versions ? (if I underdtand your request right). Otherwise,

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread Yakov Lerner
On 4/18/07, sun [EMAIL PROTECTED] wrote: hello, I know that both vim and gvim can jump from one window to another by clicking the mouse, also many other easy facilities. Here I am using cygwin under XP and my gvim works fine with mouse, but the vim doesn't in both cmd.ext environment and xterm

Re: wish: show search progress on slow searches

2007-05-01 Thread Yakov Lerner
On 4/30/07, Bram Moolenaar [EMAIL PROTECTED] wrote: [This is development, removed the Vim maillist] Yakov Lerner wrote: On 4/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Wish: when search is slow, show

Re: determining if buffer is modified.. etc

2007-05-01 Thread Yakov Lerner
On 4/30/07, Normandie Azucena [EMAIL PROTECTED] wrote: -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 1:53 PM To: Normandie Azucena Cc: vim@vim.org Subject: Re: determining if buffer is modified.. etc On 4/30/07, Normandie Azucena [EMAIL

Re: wish: show search progress on slow searches

2007-04-30 Thread Yakov Lerner
On 4/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Wish: when search is slow, show the progress line number every second on the bottom line (like, 12345 of 9). What is slow? To my taste, when something takes

Re: wish: show search progress on slow searches

2007-04-30 Thread Yakov Lerner
On 4/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Wish: when search is slow, show the progress line number every second on the bottom line (like, 12345 of 9). What is slow? To my taste, when something takes

Re: wish: show search progress on slow searches

2007-04-29 Thread Yakov Lerner
On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Wish: when search is slow, show the progress line number every second on the bottom line (like, 12345 of 9). What is slow? To my taste, when something takes longer than 1-2 sec, I'd prefer some visual feedback

moving virual rectange about in virtualedit mode

2007-04-29 Thread Yakov Lerner
I 'set ve=all' and selected a rectangle with Ctrl-V. How can I move this rectangle up/down left/right with arrows ? Thanks Yakov

Re: wish: show search progress on slow searches

2007-04-29 Thread Yakov Lerner
On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Wish: when search is slow, show the progress line number every second on the bottom line (like, 12345 of 9). What is slow? To my taste, when something takes longer than 1-2 sec, I'd prefer some visual feedback

Re: moving virual rectange about in virtualedit mode

2007-04-29 Thread Yakov Lerner
On 4/30/07, Sartak [EMAIL PROTECTED] wrote: On 4/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: I 'set ve=all' and selected a rectangle with Ctrl-V. How can I move this rectangle up/down left/right with arrows ? Thanks Yakov I assume you're asking how you can move the other sides

Re: Backup - always

2007-04-29 Thread Yakov Lerner
On 4/30/07, Fredrik Gustafsson [EMAIL PROTECTED] wrote: Hi, I'm looking for a way to always backup certain filetypes. The backup and writebackup options only works if the file exist. I need a backup even if I create a new file (i.e. the new file should be saved at two locations). how do I do

Re: vim 7.1?

2007-04-27 Thread Yakov Lerner
The svn tree has all patches already inside, it does not matter how many patches are there. You just checkout and build. It's not that you need to download baseline and then 222 patches, no. Yakov On 4/27/07, Jonathan Smith [EMAIL PROTECTED] wrote: With the insane number of patches collecting

change background for range of lines

2007-04-25 Thread Yakov Lerner
Is is possible to change background for range of lines without suppressing the other syntax highlighting in the range ? (I tried something simpler and less useful - match by range of lines (:match Search /\%123l\_.*\%999l/ which suppresses highlighting in the region) but even this did

Re: Mapping to c-q and c-s doesn't work

2007-04-25 Thread Yakov Lerner
On 4/25/07, Mike Mazur [EMAIL PROTECTED] wrote: Hi, I'm running vim in a console using gnome-terminal. I put these mappings in my .vimrc file: map c-q :mksession! ~/.vim/.session cr map c-s :source ~/.vim/.session cr Pressing those buttons (CTRL+Q or CTRL+S) doesn't work. When I map as below

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Yakov Lerner
On 4/24/07, Ilya Sher [EMAIL PROTECTED] wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language As a sarcastic joke, this sounds average. But seriously, vim having supprt for

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Yakov Lerner
On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: On Tue, Apr 24, 2007 at 05:49:19PM +0200, Nikolai Weibull wrote: On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: On Tue, Apr 24, 2007 at 10:49:49AM +0300, Ilya Sher wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript

Re: coredump with match by lines-range (7.0.222); highlighting is not painted fully.

2007-04-24 Thread Yakov Lerner
On 4/24/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Multi-line matches are not always displayed correctly. A match is searched for in the line where redrawing starts, which can be anywhere. Your pattern only matches when redrawing starts at or before line 4078. Maybe we need a pattern that

Re: wish: collaboration of N vim instances editing same file

2007-04-23 Thread Yakov Lerner
as unwanted ? Yakov Lerner wrote -- Ability of N instances of vim to absorb, merge and show changes to the same file made by other running vim instances Yakov

Re: turning arbitrary word change into substitution

2007-04-23 Thread Yakov Lerner
On 4/22/07, Tim Chase [EMAIL PROTECTED] wrote: Is it possible to do the following, or maybe some plugin already exist. If not, how would I script it. Let's say I have some long identifier EXPECTED_GCONFIG scattered around the file. I put cursor after _ and change it to EXPECTED_CONTENTS

search vs closed folds

2007-04-23 Thread Yakov Lerner
When I search and I have closed folds, vim will automatically open the closed fold if next match is in the closed fold. Is there setting to disable this auto-opening ? Not to open the closed fold when searching ? Yakov

Re: turning arbitrary word change into substitution

2007-04-23 Thread Yakov Lerner
-rc-w/ecr Thanks, this sounds very good. Yakov On Sun, 22 Apr 2007, Yakov Lerner wrote: Is it possible to do the following, or maybe some plugin already exist. If not, how would I script it. Let's say I have some long identifier EXPECTED_GCONFIG scattered around the file. I put cursor after

Re: how to determine what filetype vim is using

2007-04-23 Thread Yakov Lerner
On 4/24/07, Andrew Falanga [EMAIL PROTECTED] wrote: Hi again, I've finally found the answer to the indenting problems I was having. I found that the indenting I was used to is present if I start cindent in my .vimrc file. However, now I've got a problem. When I have the starting for all

Re: Describe-key ?

2007-04-16 Thread Yakov Lerner
On 4/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, is there anything like describe-key (EMacs)in vim ? In EMacs vou can submit this command, press a combination of keys and EMacs will tel you the naming convention of this key (for example Meta-p) and its current bindings of that

Re: Troubles configuring vim (multi-questions)

2007-04-13 Thread Yakov Lerner
On 4/13/07, OnionKnight [EMAIL PROTECTED] wrote: Couldn't find anything about command-mode. How is it different from normal mode? Dont confuse 'commandline mode' with 'command mode'. 'comand mode' is same as 'normal mode', they are synonyms [1]. 'commandline mode' is a mode which you enter

wish: collaboration of N vim instances editing same file

2007-04-11 Thread Yakov Lerner
Hello Bram, Is it possible to add this item to the vim voting list ?: collaboration of N vim instances editing same file -- Ability of N instances of vim to absorb, merge and show changes to the same file made by other running vim instances [ either by reading other vim's swapfiles, or

Re: remote-silent and stdin

2007-04-11 Thread Yakov Lerner
On 4/10/07, Mahesh Sivasubramanian [EMAIL PROTECTED] wrote: I am trying to do something to the effect of ls | gvim - --remote-client. or ls | gvim --remote-client - However, vi sees the - as a file name and opens a new filename. Is there way to open the stdin output on a gvim server? Do

wish: collaboration of N vim instances editing same file

2007-04-11 Thread Yakov Lerner
Hello Bram, Is it possible to add this item to the vim voting list ?: collaboration of N vim instances editing same file -- Ability of N instances of vim to absorb, merge and show changes to the same file made by other running vim instances [ either by reading other vim's swapfiles, or

Re: Determining whether a window used :lcd

2007-04-11 Thread Yakov Lerner
On 4/11/07, Bob Hiestand [EMAIL PROTECTED] wrote: Is there any way to determine whether a particular window has its path set with :lcd? I think vi has no direct simple way to determine this. I needed this once in of my script. I ended with some rude simplification/workaround, lackng the

Re: script boolean operators

2007-04-11 Thread Yakov Lerner
On 4/10/07, Horvath Adam [EMAIL PROTECTED] wrote: Thanks, it's really straightforward, but where is it in the manual? http://vimdoc.sourceforge.net/htmldoc/usr_41.html - here I can not find. Notice that usr_41.html is not all-covering. It is not a *reference*. It is only a manual(tutorial).

Re: Vim freezes system ?!

2007-04-10 Thread Yakov Lerner
On 4/10/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Zdenek Sekera wrote: -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: 10 April 2007 09:10 To: Zdenek Sekera Cc: Yakov Lerner; vim@vim.org; Meino Christian Cramer; Bram Moolenaar Subject: Re: Vim freezes

Re: use variable in substitute

2007-04-10 Thread Yakov Lerner
On 4/10/07, Horvath Adam [EMAIL PROTECTED] wrote: Hi, One question again for me. Can I use variable in pattern of substitute() in script? let row = getline(j) 'trallala' let rownext = getline(j+1) 'bimbam' let row = substitute(row, ^\\\(.*\\\)$, \\1 rownext, g) let row = substitute(row,

Re: syntax/man.vim: manSubHeading is a bit too general?

2007-04-09 Thread Yakov Lerner
On 4/9/07, Nikolai Weibull [EMAIL PROTECTED] wrote: The manSubHeading is defined as syn match manSubHeading ^\s\{3\}[a-z][a-z ]*[a-z]$ This will, however, match more lines than I think is intended. It will, for example, match the line \t returns are what are recorded and compared with

Re: how to color the word

2007-04-07 Thread Yakov Lerner
On 4/7/07, flyfish [EMAIL PROTECTED] wrote: i see the help file of vim and some words in the text is colored, for example, when i read the develop.txt help file, some words like Note, design-goal are colored with yellow or pink, how could it be done? i also want to color some keywords in my

Re: how to replace ESC to some other key?

2007-04-06 Thread Yakov Lerner
On 4/6/07, Taylor Venable [EMAIL PROTECTED] wrote: On Wed, 4 Apr 2007 10:22:43 -0400 Yakov Lerner [EMAIL PROTECTED] wrote: On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters (0-9,A-F). To split the line into lines of 72 characters each, I started

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, Yakov Lerner [EMAIL PROTECTED] wrote: ... It took vim ~4 minutes to split ~100 lines. Typo here. This should have been: It took vim ~4 minutes to split ~1000 lines.

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Yakov the vim healer Lerner :) memory size is 2GB Dual channel RAM, swap is 1G... For me it is not a problem to fail with one task (splitting a long line)...there are always better solutions to discover on UNIX systems... :)) The

Re: Silly Question

2007-04-06 Thread Yakov Lerner
Yakov (without quotes) inserts kov after the 1st char. Now, who won ?

Re: Vim freezes system ?!

2007-04-06 Thread Yakov Lerner
On 4/6/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I did th3 follwing: With a program, which generates random numbers in different formats, I created a file, which consists of _one_ line of 2097152 characters (0-9,A-F). To split

wish: show search progress on slow searches

2007-04-04 Thread Yakov Lerner
Wish: when search is slow, show the progress line number every second on the bottom line (like, 12345 of 9). Maybe this can be done with plugin, I'm not sure. Maybe simply status line can be refreshed once in a second, temporarily setting line number to the current search position. Some

Re: case of very slow regex search

2007-04-04 Thread Yakov Lerner
On 4/3/07, Peter Hodge [EMAIL PROTECTED] wrote: --- Yakov Lerner [EMAIL PROTECTED] wrote: I use sometimes the regex that finds paragraphs containing given words w1,w2,... in any order ( I define paragraph as separated by lines, \n\n). I use the pattern like this: (two-word example, w1

Re: highlighting errors

2007-04-04 Thread Yakov Lerner
On 4/4/07, Lionel Flandin [EMAIL PROTECTED] wrote: Hi everyone, I'm trying to find the command that would find the next error in a file. For instance the following code contains a typo, how can one find it ? - #include stdio.h int main(int argc,

Re: my map only works sometimes

2007-04-04 Thread Yakov Lerner
On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't know why. :map ,bb cCRCRESCkpIspanESCA/spanESCkJJ The map works by cutting the highlighted text, putting it on its own

Re: how to replace ESC to some other key?

2007-04-04 Thread Yakov Lerner
On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use Tab as a substitute for Esc. Weird. But it's easier to do in platform-independent way. Yakov

Re: Vim memory leak

2007-04-04 Thread Yakov Lerner
On 4/3/07, Max Dyckhoff [EMAIL PROTECTED] wrote: My instance of vim (gvim on Windows) appears to have a memory leak, which makes me sad. Is this a common thing for everyone, or is there something in my setup which might be causing it? It's pretty serious. When I start gvim and load my

Re: my map only works sometimes

2007-04-04 Thread Yakov Lerner
On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't know why. :map ,bb cCRCRESCkpIspanESCA/spanESCkJJ

Re: my map only works sometimes

2007-04-04 Thread Yakov Lerner
On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't

Re: Vim memory leak

2007-04-04 Thread Yakov Lerner
On 4/4/07, Max Dyckhoff [EMAIL PROTECTED] wrote: My instance of vim (gvim on Windows) appears to have a memory leak, which makes me sad. Is this a common thing for everyone, or is there something in my setup which might be causing it? It's pretty serious. When I start gvim and load my

Re: Vim memory leak

2007-04-04 Thread Yakov Lerner
On 4/4/07, Max Dyckhoff [EMAIL PROTECTED] wrote: On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote: Max, I recalled two more things. Is your 'hidden' option set ? If it's set, vim *will* grow. With 'hidden' set, vim will keep in memory much data about old buffers. If you want to minimize

Re: Executing vimfunctions in background

2007-04-03 Thread Yakov Lerner
On 4/3/07, Chuck Mason [EMAIL PROTECTED] wrote: I'm interested in writing a plugin that could run in the background as I do some work in a buffer. For instance I have a function that appends a line to :copen. I would like to run it in the background continuously. How could I do this and

Re: Executing vimfunctions in background

2007-04-03 Thread Yakov Lerner
? How is adding same position again and again (seems meaningless to me) better than reacting to cursor motion ? Yakov Actually, why isn't there a Timer autocommand? :) Feature request? -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 11:05

case of very slow regex search

2007-04-03 Thread Yakov Lerner
I use sometimes the regex that finds paragraphs containing given words w1,w2,... in any order ( I define paragraph as separated by lines, \n\n). I use the pattern like this: (two-word example, w1 and w2, but easily expandable for N words): /\c\(.\|.\n\)*\w1\\\(.\|.\n\)*\w2\ (and I

Re: How to get the number of occurances of a search pattern ?

2007-03-31 Thread Yakov Lerner
On 3/29/07, MM [EMAIL PROTECTED] wrote: When I do a search using / ,?,* or # how do I determine the number of matches of search pattern in the current buffer ? Try this plugin: http://www.vim.org/scripts/script.php?script_id=1682 Conveniently, it gives you number of matches for *every*

Re: building gvim on debian

2007-03-27 Thread Yakov Lerner
Thanks Tim and Brian. The problem turned to be in our firewall, it suddenly started to block the bz2's that 'apt-get update'. 'apt-get build-dep vim-gtk' command helped. me. Regarding breezy and dapper -- together, yes, this is the sources.list Mepis comed with by default; they are both enabled

Re: autocmd bug?

2007-03-26 Thread Yakov Lerner
On 3/26/07, Michael Wookey [EMAIL PROTECTED] wrote: I have the following in my .vimrc: filetype plugin indent on autocmd FileType c,h,cpp,hpp,cs setlocal cindent number cursorline If I have a new buffer and set the filetype as follows, everything works just fine: :set filetype=c

Re: Keep cursor fixed when scrolling with mouse

2007-03-26 Thread Yakov Lerner
On 3/26/07, Some user [EMAIL PROTECTED] wrote: Hello, I'm using gVim on Windows and like it so far. There is one minor annoyance: when I scroll with the mouse wheel (I'm trying to use only keyboard but it'll take me a lot of time trying to break habit of using mouse to scroll), the cursor

building gvim on debian

2007-03-25 Thread Yakov Lerner
When on FedoraCore, I can build gvim whenever I want and I can install needed dependencies (*-devel). But debian-derived distros are not nice to me ... on the debian-derived distro (mepis), trying to install libgtk for building gvim I got into trouble that I don't know how to solve: 'apt-get

Re: automatically save to filename

2007-03-21 Thread Yakov Lerner
On 3/21/07, Eric Smith [EMAIL PROTECTED] wrote: I know that you can set the interval to auto-save to the swap file but how do I automatically save to the named file itself every n seconds? Yes, you can use 'CursorHold' autocommand for that. The following (untested) is probaly an easy

  1   2   3   4   5   6   7   8   9   >