Re: vim7 possible bug

2006-05-11 Thread Bram Moolenaar
Matt Zyzik wrote: Not a single IDE has the kind of completion system where the entry isn't selected as you type it. It's a speed convenience, that you can hit enter at any time to insert the entry into text. With Vim, I could hit c-l to keep completing, or c-y to select. I don't feel like

Patch for Insert mode completion to try out

2006-05-11 Thread Bram Moolenaar
Using CTRL-L to add a character to the completed text caused the currently selected match to be abandoned, going back to the typed text with one character added. This patch should fix that. This is tricky code, please check for any side effects. If it looks like it is an improvement I'll send

Adding a New Language for Vimtutor

2006-05-11 Thread Ku Joseph
Hi, I am a new subscriber of this mailing list. I am from Taiwan, and I am also a fanatical fan of VIm. The latest Vim, Vim7, does have many great features. And the vimtutor is also updated to version 1.7. Vimtutor is the most important desgin for a vim rookie. However, I found there is no

Re: Adding a New Language for Vimtutor

2006-05-11 Thread Bram Moolenaar
Joseph Ku wrote: I am a new subscriber of this mailing list. I am from Taiwan, and I am also a fanatical fan of VIm. The latest Vim, Vim7, does have many great features. And the vimtutor is also updated to version 1.7. Vimtutor is the most important desgin for a vim rookie. However, I

Re: guifont: a few issues/problems?

2006-05-11 Thread Bram Moolenaar
Zdenek Sekera wrote: Trying gvim-gtk2 and gvim-motif on Linux system (I didn't try other gui's but I could if needed) I found the following differences I am not able to say if they are correct or not: Not surprising, GTK 2 uses completely different font names. - :set guifont=* ..

gvim7 filename tab completion insert CTRL-I

2006-05-11 Thread inet working
I just installed vim7 on windows xp. the installer prog also removed vim6 (i chose to keep the vimrc file i'd). first problem i ran into is, in gvim command mode, typing :Ex c:\LongDirTAB insert ^I instead of completing the file/dir name to LongDirName. This always worked until vim7. Do I

Patch 7.0.011

2006-05-11 Thread Bram Moolenaar
Patch 7.0.011 Problem:Can't compile without the folding and with the eval feature. Solution: Add an #ifdef. (Vallimar) Files: src/option.c *** ../vim-7.0.010/src/option.c Wed May 10 15:22:50 2006 --- src/option.cWed May 10 19:37:10 2006 *** *** 5227,5239

Patch 7.0.012

2006-05-11 Thread Bram Moolenaar
Patch 7.0.012 Problem:Using the matchparen plugin, moving the cursor in Insert mode to a shorter line that ends in a brace, changes the preferred column Solution: Use winsaveview()/winrestview() instead of getpos()/setpos(). Files: runtime/plugin/matchparen.vim ***

Re: SVN and svn:eol-style

2006-05-11 Thread Bill McCarthy
On Thu 11-May-06 2:03am -0600, you wrote: Bill McCarthy wrote: When I checkout vim7 with svn under WinXP Pro, my text files are all coming out as UNIX files (using LF instead of CR/LF). The svn program is designed to handle proper EOL for an operating system when a property called

Re: SVN and svn:eol-style

2006-05-11 Thread Nikolai Weibull
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? I really don't understand what causes you so many problems. Why are you working with the Vim sources

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: vim7 possible bug

2006-05-11 Thread Martin Stubenschrott
On Thu, May 11, 2006 at 03:10:40PM +0200, Pierre Habouzit wrote: Le Jeu 11 Mai 2006 14:57, Pierre Habouzit a écrit : make enter work in popup inoremap cr C-R=pumvisible() ? \ltC-Y : \ltcrcr sadly I can't do the same with esc to exit the completion, because of esc beeing esc

Re: vim7 possible bug

2006-05-11 Thread Pierre Habouzit
Le Jeu 11 Mai 2006 21:55, Martin Stubenschrott a écrit : On Thu, May 11, 2006 at 03:10:40PM +0200, Pierre Habouzit wrote: Le Jeu 11 Mai 2006 14:57, Pierre Habouzit a écrit : make enter work in popup inoremap cr C-R=pumvisible() ? \ltC-Y : \ltcrcr sadly I can't do the

Re: vim7 possible bug

2006-05-11 Thread Aaron Griffin
On 5/11/06, Bram Moolenaar [EMAIL PROTECTED] wrote: 1. Vim is not an IDE 2. Vim works differently 3. Get used to it Hah. Awesome, I literally LOLed

CVS service resumed?

2006-05-11 Thread 滇狐
Hi all, It seems that the CVS service of sourceforge.net resumed again. The host name changed to vim.cvs.sourceforge.net. So what? Regards, Edward Leap Fox

Re: But in Ctrl-N completion

2006-05-11 Thread A.J.Mechelynck
Martin Stubenschrott wrote: I am using vim7 final, and have this problem: Let's assume this buffer (between the quotes): this that Now i start inserting 'th' and press ctrl-n and get a popup menu with two choices 'this' and 'that', while the inserted text still remains 'th' (I am using

RE: Bug i_CTRL-X s and arrow

2006-05-11 Thread Suresh Govindachar
{Added postscript to what I sent a few minutes ago.] Gerald Lai wrote: On Wed, 10 May 2006, Suresh Govindachar wrote: Bram Moolenaar wrote: Suresh Govindachar wrote: version 7.0.1 gvim --noplugin -u NONE -U NONE and type ifooey and do i_CTRL-X s Message at

Re: vim70 and insert tabs

2006-05-11 Thread Yakov Lerner
On 5/11/06, Emmanuel Sixou [EMAIL PROTECTED] wrote: Hi vimmers, vim70 inserts spaces instead of tabs after a non tab char. This behavior differs from vim64 with the same setting. I went through the help on the different tab related options but could not find something that would change this

www.vim.org/tips

2006-05-11 Thread Yakov Lerner
I asked to resolve this inconvenience on www.vim.org/tips website several years ago. I am repeating my plea again. It is very inconvenient that it's impossible to edit my tips on www.vim.org/tips. There are always improvements, additions, reactions user's feedback, typos that one wants to fix.

Re: Bug i_CTRL-X s and arrow

2006-05-11 Thread Edward Wong
Hi Suresh, I'm assuming you have: set cot=menu,preview by default. 1) UP -- just doing 1 UP -- after i_CTRL-X s actually inserts an entry -- Bram says it will not, but it does in fact. Moreover, even though the message at the bottom says Bram's intent Back at original, the

Re: Bug i_CTRL-X s and arrow

2006-05-11 Thread Edward Wong
oh dearI just realize I kept saying omni this and omni that when I read the thread again! Please forgive my stupidity and ignore any word about omni...it should be completion, IT IS *i_ctrl-x_s*. I should stop working and go home. :)

Re: standard distribution of win32 consolve vim

2006-05-11 Thread Bram Moolenaar
Hari Krishna Dara wrote: I observed that the vim7 distribution of console vim for win32 is not compiled with perl and python bindings. This I think is unlike the previous releases when both gvim and vim had the same set of features. Is this a mistake? It has always been like this. Perhaps

RE: vim70 and insert tabs

2006-05-11 Thread Emmanuel Sixou
No matter its value, in both linux and windows, this behavior is the same. Emmanuel Sixou Mobileye Vision Technologies Project Manager - ASIC Department Tel: +972 (2) 541 7311 Fax: +972 (2) 541 7300 Cell: +972 (54) 5665 206 E-mail: [EMAIL PROTECTED] -Original Message- From: Yakov

Re: www.vim.org/tips

2006-05-11 Thread Bram Moolenaar
[removed the vim-dev list, this is not about developing Vim] I asked to resolve this inconvenience on www.vim.org/tips website several years ago. I am repeating my plea again. It is very inconvenient that it's impossible to edit my tips on www.vim.org/tips. There are always improvements,

Re: keymaps in vim7.0, where are they?

2006-05-11 Thread Andrei A. Voropaev
On Wed, May 10, 2006 at 10:02:59PM -0400, Benji Fisher wrote: On Wed, May 10, 2006 at 10:36:52AM +0200, Andrei A. Voropaev wrote: Hi! I've installed vim 7 from sources. This did the installation for the RT, but somehow the keymaps directory is missing. I've copied it from the old 6.3

How to set auto complete python code

2006-05-11 Thread 邓作霖
Hello; I am a beginner use VIM, I can set highlighting the python code but I can't set editor to auto complete the python libary function name and etc. Can VIM do this work like any IDE? And how to enable this function in VIM? Thank you! best regards Deng Zuolin

Re: Shell support in Vim?

2006-05-11 Thread Robert Cussons
Suresh Govindachar wrote: Frank Terbeck wrote: Suresh Govindachar Personally, the step mentioned below, viz., moving the mouse to the xterm is a _big_ pain. As a user, what I like about the idea of a shell inside vim is the means to avoid the mouse. C-Z in console vim does

RE: vim70 and insert tab -

2006-05-11 Thread Emmanuel Sixou
Fortunately, there is another guy here that has started using vim70 and he does not have this behavior. So some settings of mine are the cause, and you should debug it. What is the way for debugging setup? Emmanuel Sixou Mobileye Vision Technologies Project Manager - ASIC Department Tel: +972 (2)

Re: undo/redo mess with version 7.0 and utf-8 text

2006-05-11 Thread Bram Moolenaar
Andrei A. Voropaev wrote: On Wed, May 10, 2006 at 08:08:57PM +0200, Bram Moolenaar wrote: [...] Well, you say it must be japanese, thus it does matter. I have no idea how to enter russian or japanese. I'll have to leave this to someone else. Does the problem go away if you

RE: Bug i_CTRL-X s and arrow

2006-05-11 Thread Gerald Lai
On Wed, 10 May 2006, Suresh Govindachar wrote: [snip] Confirmed for 7.0 release. It seems that i_up-arrow i_down-arrow work un-intuitively as compared to i_ctrl-p i_ctrl-n, respectively. Not exactly -- the bug is _NOT_ un-intutiveness. To both Suresh and Edward: please read my

RE: vim70 and insert tab -

2006-05-11 Thread Emmanuel Sixou
So I am debugging: imap Tab gives me: i Tab@C-R=SNR20_InsertSmartTab()CR and I don't know where it comes from. grep InsertSmartTab on all the files did not find anything. Emmanuel Sixou Mobileye Vision Technologies Project Manager - ASIC Department Tel: +972 (2) 541 7311 Fax: +972 (2)

Re: vim70 and insert tab -

2006-05-11 Thread Yakov Lerner
On 5/11/06, Emmanuel Sixou [EMAIL PROTECTED] wrote: So I am debugging: imap Tab gives me: i Tab@C-R=SNR20_InsertSmartTab()CR and I don't know where it comes from. grep InsertSmartTab on all the files did not find anything. Must come from some plugin you're using. Do :scriptnames

Re: undo/redo mess with version 7.0 and utf-8 text

2006-05-11 Thread Andrei A. Voropaev
On Thu, May 11, 2006 at 10:51:21AM +0200, Bram Moolenaar wrote: Andrei A. Voropaev wrote: [...] I can't enter Japanese if I don't use input method :) You can use CTRL-V u , where is the hex value of the character. To find out the value use ga on a character. Inserting

i_C-r= + \C-o

2006-05-11 Thread Gerald Lai
[GVim 7.0 release for Windows] This is how I do my PageUp/Down: inoremap PageDown C-oC-dC-oC-dC-oC-y inoremap PageUp C-oC-uC-oC-uC-oC-e If I do inoremap PageDown C-r=\ltC-o\ltC-d\ltC-o\ltC-d\ltC-o\ltC-yCR inoremap PageUp

Re: basic question: quick split like awk

2006-05-11 Thread Tim Chase
Is there a way to split a line automatically like awk would? Given A quick brown fox jumped over , awk '{print $3}' ... == brown Well, Vim supports passing a range of lines through awk, so assuming you have awk available, you can just do :%!awk '{print $3}' Fairly

splitting windows

2006-05-11 Thread Raphael Brunner
dear users How can I open four files (eg: file1.txt, file2.txt, file3.txt and file4.txt) for a view as following: VIM ¦file1 ¦file2 ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦

Re: splitting windows

2006-05-11 Thread Tim Chase
How can I open four files (eg: file1.txt, file2.txt, file3.txt and file4.txt) for a view as following: VIM ¦file1 ¦file2 ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦

RE: vim70 and insert tab -

2006-05-11 Thread Emmanuel Sixou
Thank you very much! I found it and I am happy! Here it is: /homes/emmanuel/.vim/plugin/unplugged/ctab.vim:imap buffer tab c-r=SIDInsertSmartTab()cr Apparently, in vim64, the plug-in was not read recursively, and in vim70 it is read recursively. Again, thank you very much. Emmanuel Sixou

Re: Patch for AsNeeded to define proxy commands

2006-05-11 Thread Benji Fisher
On Wed, May 10, 2006 at 09:00:32PM +0200, Thomas wrote: Hi, Here is a small patch for AsNeeded that eliminates the need to call AN(X) for commands. It creates a file called ~/.vim/AsNeeded/ANautoload that contains lines like: command! -range -nargs=* Command delcommand Command | ANX

Re: Python syntax coloring: what are keywords?

2006-05-11 Thread Benji Fisher
On Wed, May 10, 2006 at 03:41:47PM -0500, Stephen Boulet wrote: I have the following line in mycolors.vim: hi Keyword term=bold ctermfg=DarkBlue ctermbg=LightGray gui=bold guifg=DarkBlue In vim7 for win32, python words like 'class', 'for', 'def' are dark blue, but other works like

Re: splitting windows

2006-05-11 Thread Mark Woodward
Hi Raphael, On Thu, 11 May 2006 13:22:54 +0200 (MEST) Raphael Brunner [EMAIL PROTECTED] wrote: dear users How can I open four files (eg: file1.txt, file2.txt, file3.txt and file4.txt) for a view as following: VIM ¦file1 ¦file2

Re: splitting windows

2006-05-11 Thread Eric Arnold
On 5/11/06, Tim Chase [EMAIL PROTECTED] wrote: How can I open four files (eg: file1.txt, file2.txt, file3.txt and file4.txt) for a view as following: VIM ¦file1 ¦file2 ¦ ¦ ¦ ¦ ¦ ¦

Re: Question about using variable with RegEx counter

2006-05-11 Thread Matthew Winn
On Thu, May 11, 2006 at 10:12:32AM -0400, Benji Fisher wrote: On Wed, May 10, 2006 at 02:53:20PM -0600, Shaun Cummins wrote: I would like to use a variable within a regular expression counter. I tried the following, but it gave me a syntax error: :syntax region Keyword

Re: Question about using variable with RegEx counter

2006-05-11 Thread Yakov Lerner
On Wed, May 10, 2006 at 02:53:20PM -0600, Shaun Cummins wrote: :syntax region Keyword start=^\w\+\s\+\z(\d\+\) end=#\(\s*\(.\+\|'.\+'\).*\n\)\{\z1\}# How about :syntax region Keyword start=^\w\+\s\+\z(\d\+\) \ end=#^\s*[A-Z]*\z1# ? Yakov

I'm up and running again (sort of)

2006-05-11 Thread A.J.Mechelynck
Hi Vimmers, Sorry for having been away so long. My Windows (laptop) computer was broken down (and still is -- but I've sent it in for repairs). I have a Linux (desktop) computer but it's only today that I've succeeded to configure its Internet connection. So: - I'm online again; but it may

Detect current tab style and mimic?

2006-05-11 Thread mal content
Hello. I'm relatively new to VIM, I wondered if there was a way to mimic the style used in the current file. I use two spaces to indent my code (two real spaces, not tab characters) but I know that many people use real tabs. I would like to be able to automatically mimic the style of the file

Re: Detect current tab style and mimic?

2006-05-11 Thread Russell Bateman
I systematically place a comment at the bottom of files that establishes tabular format: /* vim: set tabstop=2 shiftwidth=2: */ and even in scripts and other files: # This enforces this script's tab settings... # /* vim: set tabstop=2 shiftwidth=2: */ That way, the problem is solved for

Slow startup

2006-05-11 Thread Jeffrey Pratt
Hi: I just built Vim 7 on Cygwin, linked with ncurses, and it takes 54 sec to start in rxvt! (It starts normally if done from the regular Cygwin Bash Prompt.) I've built it on two other machines with the same configuration options, and neither of them take so much time in rxvt. Does anyone

RE: Bug i_CTRL-X s and arrow

2006-05-11 Thread Suresh Govindachar
I have finally correctly understood Bram's intent regarding what can happen after i_CTRL s and things indeed work that way. --Suresh

i_CTRL-E when completeopt has longest

2006-05-11 Thread Suresh Govindachar
Edward Wong wrote: But I do find another separate issue. Helps to start a new thread. When I have: set cot=menu,preview,longest 1) i_ctrl-e doesn't restore the original word Don't know whether this is intentional or not, but I can confirm the lack of

RE: Column Selection

2006-05-11 Thread Gerald Lai
On Thu, 11 May 2006, Suresh Govindachar wrote: Elias Chatzigeorgiou wrote: I use the mswin behaviour and insert mode for editing (source mswin.vim and set insertmode in _vimrc ) To enable column selection I use the sequence: CTRL-O, g, CTRL-H and hold the SHIFT during the

RE: Column Selection

2006-05-11 Thread Hari Krishna Dara
On Thu, 11 May 2006 at 6:37pm, Gerald Lai wrote: On Thu, 11 May 2006, Suresh Govindachar wrote: Elias Chatzigeorgiou wrote: I use the mswin behaviour and insert mode for editing (source mswin.vim and set insertmode in _vimrc ) To enable column selection I use the

RE: Column Selection

2006-05-11 Thread Gerald Lai
On Thu, 11 May 2006, Hari Krishna Dara wrote: On Thu, 11 May 2006 at 6:37pm, Gerald Lai wrote: On Thu, 11 May 2006, Suresh Govindachar wrote: Elias Chatzigeorgiou wrote: I use the mswin behaviour and insert mode for editing (source mswin.vim and set insertmode in _vimrc ) To

RE: lookupfile.vim (WAS Re: fast file opening / find file as you type)

2006-05-11 Thread David Fishburn
-Original Message- From: Hari Krishna Dara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 10:06 PM To: Benjamin Reitzammer Cc: Benjamin Reitzammer; vim@vim.org Subject: lookupfile.vim (WAS Re: fast file opening / find file as you type) Actually, I started with the

RE: perlcomplete.vim -- anyone working on this?

2006-05-11 Thread David Fishburn
-Original Message- From: Kevin Old [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 3:46 PM To: vim@vim.org Subject: perlcomplete.vim -- anyone working on this? Hello, I was shocked that there wasn't a perlcomplete.vim in the source and would like to create one or

Re: Shell support in Vim?

2006-05-11 Thread Linsong
François Pinard wrote: [Aaron Griffin] Bram has spoken - vim is an editor. It is not a shell. Quite granted. I see *nothing* that another terminal cannot do. I'm happy with what Vim is. However, here, you could use some more imagination :-). There are a few things another terminal