Re: Forms highlighting

2006-10-02 Thread Hari Krishna Dara
I have updated it again. The main difference is some syntax highlighting rules and some tweaks. I also changed the hotkey to link to Underlined, which has both a color as well as underscore by default (and I doubt any colorscheme change this). I also added a few extra rules/conditions to highlight

php online help in windowsXP

2006-10-02 Thread Vu The Cuong
I already read vim tip about online-refer to function of PHP. http://www.vim.org/tips/tip.php?tip_id=598 It said: == set keywordprg=a_script What it does: default, when you ar with the cursor on a WORD and press K (SHIFT+k) in `command mode', the vim will r

Re: Questions regarding auto-guessing the encoding

2006-10-02 Thread Yegappan Lakshmanan
Hello, On 10/2/06, Yongwei Wu <[EMAIL PROTECTED]> wrote: * Is there a way to tell a user-defined command to have file name completion? Yes. You can use the "-complete=file" option when defining the command. For example, command -nargs=1 -complete=file EditFile edit For additional suppor

Re: Questions regarding auto-guessing the encoding

2006-10-02 Thread Yongwei Wu
On 10/3/06, Yongwei Wu <[EMAIL PROTECTED]> wrote: * Why keymap/accents.vim is opened as UTF-8 and fails the conversion when fencs=ucs-bom,utf-8,cp936? (It is opened as Latin1 when fencs=ucs-bom,utf-8,latin1, and this inconsistency is a little annoying to me to determine in a handler whether the f

Re: ?

2006-10-02 Thread Meino Christian Cramer
From: "Yakov Lerner" <[EMAIL PROTECTED]> Subject: Re: ? Date: Mon, 2 Oct 2006 22:18:31 +0300 > On 10/2/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > From: "Yakov Lerner" <[EMAIL PROTECTED]> > > Subject: Re: ? > > Date: Mon, 2 Oct 2006 22:12:46 +0300 > > > > > On 10/2/06, Meino Christ

RE: Uppercase keywords

2006-10-02 Thread David Fishburn
> -Original Message- > From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] > Sent: Monday, October 02, 2006 7:44 AM > To: Marius Roets > Cc: vim@vim.org > Subject: Re: Uppercase keywords > > Marius Roets wrote: > > Hi Vimmers, > > I have a big a (3000+ lines) source code file. The syntax >

RE: Detecting when in omnicomplete

2006-10-02 Thread David Fishburn
> -Original Message- > From: Karl Guertin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 26, 2006 4:10 PM > To: [EMAIL PROTECTED] > Cc: VIM Help > Subject: Re: Detecting when in omnicomplete > > On 9/26/06, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > If you have a look at

Questions regarding auto-guessing the encoding

2006-10-02 Thread Yongwei Wu
Hi Bram and Vim gurus, I wrote a little program to guess the encoding of a text file, and I intend to use it with vim. (So it currently supports ASCII, Latin1, GB2312, GBK, and Big5 files, but no UTF-x, since it might not be necessary.) While trying to make it work together, I encountered some pr

Re: imd don't take effect under linux

2006-10-02 Thread Dasn
On Mon, Oct 02, 2006 at 01:50:44PM +0200, A.J.Mechelynck wrote: > >On Sun, Oct 01, 2006 at 01:37:53PM +0800, Eddy Zhao wrote: > >>Hello all, > >> > >>I'm use setting below to disable input method when enter normal mode > >> > >> inoremap :set imd > >> > >>The setting works under window, but under

Re: Forms highlighting

2006-10-02 Thread Hari Krishna Dara
My comments below. If anyone is still interested to try, here is how you do it: - Download the below file and put it in your autoload directory: http://haridara.googlepages.com/forms.vim - Start a fresh Vim session and execute: :call forms#demo() - Optionally, remove the downloaded file after you

Re: Colorschemes Need Updating

2006-10-02 Thread Bill McCarthy
On Mon 2-Oct-06 1:40am -0600, Peter Hodge wrote: >> I found no way to change Gvim's default highlighting for >> these groups. What I found is a mapping of the groups to >> group names in the setting 'highlight'. > > I believe you're supposed to change these default mappings > in your .vimrc file,

Forms highlighting

2006-10-02 Thread Mikolaj Machowski
Hello, Below patch to yesterday version of forms.vim . Rather proof of concept than full solution but looks much nicer: Features: - highlight header of form in Comment - highlight labels of fields as Questions - hightlight hotkeys as Statements Limitations: - Buttons are not supported Proble

Re: vim backspace

2006-10-02 Thread cga2000
On Mon, Oct 02, 2006 at 04:07:10PM EDT, Charles E Campbell Jr wrote: > cga2000 wrote: > > >I don't suppose there's any way I can save the current interactively- > >modified colorscheme to a file? > > > > Perhaps http://vim.sourceforge.net/scripts/script.php?script_id=1081 > will be helpful for w

Re: Colorschemes Need Updating

2006-10-02 Thread Bill McCarthy
On Mon 2-Oct-06 1:34am -0600, Georg Dahn wrote: > --- Bill McCarthy <[EMAIL PROTECTED]> wrote: >> From my 161 colorschemes in vimfiles\colors (obtained at Vim >> Online): > What do you do with so many color schemes? Some of them have > been updated already, just fetch the new versions. For examp

Re: @ macro history

2006-10-02 Thread Torur Andreassen
On Mon, Oct 02, 2006 at 01:13:47PM -0500, Tom Purl wrote: > I'm trying to execute a series of Vim commands on multiple files. Here's > the workflow: > > 1. Open a file using gvim > 2. Execute a named macro (that was recorded using the `q + a` command) > 3. Save and close my file (which forces me

Re: Mapping of keysequences...

2006-10-02 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2-Oct-06, at 3:51 PM, Andy Wokula wrote: Meino Christian Cramer schrieb: Thanks for all, Tony!!! :O) I think Bram should add :he Tony Add it yourself :e ~/.vim/doc/tony.txt :i *tony.txt* Tony's mail address *Tony* "A.J.Mechelynck"

Re: vim backspace

2006-10-02 Thread Charles E Campbell Jr
cga2000 wrote: I don't suppose there's any way I can save the current interactively- modified colorscheme to a file? Perhaps http://vim.sourceforge.net/scripts/script.php?script_id=1081 will be helpful for what you want to do. Interactively adjust the colorscheme using hicolors' colorschem

Re: copy a word without moving cursor

2006-10-02 Thread Charles E Campbell Jr
Osho GG wrote: I am already putting this segment in much larger map that does other things on "a contents. However, the way I currently do it has a disadvantage that the cursor moves and then it moves back and then the screen flashes - all for nothing really. "ayaw or "ayiw doesn't work for me b

Re: Mapping of keysequences...

2006-10-02 Thread Andy Wokula
Meino Christian Cramer schrieb: > Thanks for all, Tony!!! :O) > > I think Bram should add > > :he Tony > > -support in vim which prints your email address... > or may be it is not what you really want, isn't ir ;O) > > (just kidding) > > Keep hacking! > mcc Add it yourself :e ~/.vim/d

Re: ?

2006-10-02 Thread Yakov Lerner
On 10/2/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: From: "Yakov Lerner" <[EMAIL PROTECTED]> Subject: Re: ? Date: Mon, 2 Oct 2006 22:12:46 +0300 > On 10/2/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > what does it mean or what is the meaining of: > > > > When i_Ctrl-k r

Re: ?

2006-10-02 Thread Meino Christian Cramer
From: "Yakov Lerner" <[EMAIL PROTECTED]> Subject: Re: ? Date: Mon, 2 Oct 2006 22:12:46 +0300 > On 10/2/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > what does it mean or what is the meaining of: > > > > When i_Ctrl-k returns??? > > It means you pressed Ctrl-@ > > Yakov > In

Re: ?

2006-10-02 Thread Yakov Lerner
On 10/2/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: what does it mean or what is the meaining of: When i_Ctrl-k returns??? It means you pressed Ctrl-@ Yakov

Re: @ macro history

2006-10-02 Thread Tim Chase
recorded a macro to the "q" register, ran it a couple times, and quit, then restarted vim, and tried "@a" again to execute the macro. Worked like a charm. I looked in my .viminfo file under the "#Registers:" section, and I didn't see a "q" register. I saw 0-9, and a few other letters, but no "

Re: @ macro history

2006-10-02 Thread Tom Purl
Thanks again for all of the great tips Tim! >> set viminfo='50,<1000,s100 > Strange. You are correct that the viminfo setting you list > *should* do the trick. To evidence this, I started up vim, > recorded a macro to the "q" register, ran it a couple times, and > quit, then restarted vim,

Re: @ macro history

2006-10-02 Thread Tim Chase
Thanks for the quick reply Tim! I did a little more research based on your help, and I found the options.txt help file. From what I understand, to do what I want to do, I should put the following line in my ~/.vimrc: set viminfo='50,<1000,s100 However, this still doesn't cause vim to remem

Re: @ macro history

2006-10-02 Thread Tom Purl
Thanks for the quick reply Tim! I did a little more research based on your help, and I found the options.txt help file. From what I understand, to do what I want to do, I should put the following line in my ~/.vimrc: set viminfo='50,<1000,s100 However, this still doesn't cause vim to rememb

Re: @ macro history

2006-10-02 Thread Tim Chase
I'm trying to execute a series of Vim commands on multiple files. Here's the workflow: 1. Open a file using gvim 2. Execute a named macro (that was recorded using the `q + a` command) 3. Save and close my file (which forces me to close gvim in this example). 4. Repeat on the next file without ha

@ macro history

2006-10-02 Thread Tom Purl
I'm trying to execute a series of Vim commands on multiple files. Here's the workflow: 1. Open a file using gvim 2. Execute a named macro (that was recorded using the `q + a` command) 3. Save and close my file (which forces me to close gvim in this example). 4. Repeat on the next file without hav

?

2006-10-02 Thread Meino Christian Cramer
Hi, what does it mean or what is the meaining of: When i_Ctrl-k returns??? Do I have pressed a ghost-key ??? Keep hacking mcc

Re: I cannot install gvim7.0

2006-10-02 Thread Tom Purl
Please reply to the list so that others can learn from our mistakes :) > I think it works. But it's really surprising. I run apt-get > build-dep vim-gnome, then run ./configure the same result:"checking > --enable-gui argument... no GUI support". You can also try the `apt-get build-dep` command

Re: imd don't take effect under linux

2006-10-02 Thread Eddy Zhao
2006/10/2, A.J.Mechelynck <[EMAIL PROTECTED]>: Eddy Zhao wrote: > 2006/10/2, A.J.Mechelynck <[EMAIL PROTECTED]>: >> Dasn wrote: >> > On Sun, Oct 01, 2006 at 01:37:53PM +0800, Eddy Zhao wrote: >> >> Hello all, >> >> >> >> I'm use setting below to disable input method when enter normal mode >> >> >

Re: How to check the difference with the origin file

2006-10-02 Thread Gregory SACRE
Thank you very much Yakov! It worked perfectly! On 10/2/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 10/2/06, Gregory SACRE <[EMAIL PROTECTED]> wrote: > I was wondering if there is a way to see the differences between the > file you are modifying and its original version. The following nice t

Re: How to check the difference with the origin file

2006-10-02 Thread Tim Chase
I was wondering if there is a way to see the differences between the file you are modifying and its original version. If you haven't saved the file yet, you can compare the current buffer with the original file contents as described at http://tech.groups.yahoo.com/group/vim/message/72287 a w

Re: How to check the difference with the origin file

2006-10-02 Thread Yakov Lerner
On 10/2/06, Gregory SACRE <[EMAIL PROTECTED]> wrote: I was wondering if there is a way to see the differences between the file you are modifying and its original version. The following nice thing comes from Donn Washburn: command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | winc

Re: How to check the difference with the origin file

2006-10-02 Thread Péter Zsoldos
Hi, Gregory SACRE wrote: I was wondering if there is a way to see the differences between the file you are modifying and its original version. Let's say I'm editing a text file. I finished editing it and I'd like to see all the changes I've performed on it since I opened it (to write down the ch

How to check the difference with the origin file

2006-10-02 Thread Gregory SACRE
Hello Vimmers, I was wondering if there is a way to see the differences between the file you are modifying and its original version. For example: Let's say I'm editing a text file. I finished editing it and I'd like to see all the changes I've performed on it since I opened it (to write down t

Re: imd don't take effect under linux

2006-10-02 Thread A.J.Mechelynck
Eddy Zhao wrote: 2006/10/2, A.J.Mechelynck <[EMAIL PROTECTED]>: Dasn wrote: > On Sun, Oct 01, 2006 at 01:37:53PM +0800, Eddy Zhao wrote: >> Hello all, >> >> I'm use setting below to disable input method when enter normal mode >> >> inoremap :set imd >> >> The setting works under window, but un

Re: Vi use up-down-left-right in insert mode

2006-10-02 Thread Tim Chase
Note that this mailing list deals only with vim, not with any other flavors of vi. Some of us are a little more cosmopolitan, willing to discuss obscure features of other versions of vi... :) (at least if we have access to 'em, such as the stock version of vi I have on my OpenBSD machines).

Re: imd don't take effect under linux

2006-10-02 Thread Eddy Zhao
2006/10/2, A.J.Mechelynck <[EMAIL PROTECTED]>: Dasn wrote: > On Sun, Oct 01, 2006 at 01:37:53PM +0800, Eddy Zhao wrote: >> Hello all, >> >> I'm use setting below to disable input method when enter normal mode >> >> inoremap :set imd >> >> The setting works under window, but under linux the sett

Re: imd don't take effect under linux

2006-10-02 Thread Eddy Zhao
2006/10/2, Dasn <[EMAIL PROTECTED]>: On Sun, Oct 01, 2006 at 01:37:53PM +0800, Eddy Zhao wrote: > Hello all, > > I'm use setting below to disable input method when enter normal mode > > inoremap :set imd > > The setting works under window, but under linux the setting don't > take effect. Does

Re: imd don't take effect under linux

2006-10-02 Thread A.J.Mechelynck
Dasn wrote: On Sun, Oct 01, 2006 at 01:37:53PM +0800, Eddy Zhao wrote: Hello all, I'm use setting below to disable input method when enter normal mode inoremap :set imd The setting works under window, but under linux the setting don't take effect. Does ":set imd" take effect in Normal mod

Re: Uppercase keywords

2006-10-02 Thread A.J.Mechelynck
Marius Roets wrote: Hi Vimmers, I have a big a (3000+ lines) source code file. The syntax highlighting works perfectly, so all keywords are highlighted correctly. Is there any way that I can use this fact to convert all keywords to uppercase, or do I have to do them all one by one? Thanks Marius

Re: imd don't take effect under linux

2006-10-02 Thread Dasn
On Sun, Oct 01, 2006 at 01:37:53PM +0800, Eddy Zhao wrote: > Hello all, > > I'm use setting below to disable input method when enter normal mode > > inoremap :set imd > > The setting works under window, but under linux the setting don't > take effect. Does ":set imd" take effect in Normal mod

Uppercase keywords

2006-10-02 Thread Marius Roets
Hi Vimmers, I have a big a (3000+ lines) source code file. The syntax highlighting works perfectly, so all keywords are highlighted correctly. Is there any way that I can use this fact to convert all keywords to uppercase, or do I have to do them all one by one? Thanks Marius

Re: Vi use up-down-left-right in insert mode

2006-10-02 Thread Yakov Lerner
On 10/1/06, samitj <[EMAIL PROTECTED]> wrote: I am a new vi user switching from emacs. Is it possible to use up-down-left-right,backspace and delete in Vi in insert mode. Are you using vim or [non-vim] vi ? What you ask works in vim, but does not work in vi. First make sure you use *vim*, not s

Re: forms support for Vim

2006-10-02 Thread Mikolaj Machowski
Dnia poniedziałek, 2 października 2006 01:41, Hari Krishna Dara napisał: > First, a big thank you for trying it and giving feedback. > > On Sun, 1 Oct 2006 at 4:11pm, Mikolaj Machowski wrote: > > Hello, > > > > Interesting concept. The most difficult thing are Vim habits. Seeing > > spelling error

Re: change right arrow behaviour in normal mode

2006-10-02 Thread Kamaraju Kusumanchi
On Sunday 01 October 2006 12:31, Yakov Lerner wrote: > > See :help 'whichwrap' > > I have this in my .vimrc: >:set whichwrap=<,>,[,] > Perfect! Exactly what I was searching for! Thanks. raju