Re: how to prevent loading python.vim

2010-08-13 Thread Tony Mechelynck
On 13/08/10 05:13, pansz wrote: On Aug 13, 10:19 am, bill lamcbill@gmail.com wrote: Чтв, 12 Авг 2010, pansz писал(а): 1. vim-tiny: This is Tiny version of vim, pretty useless IMO. This is an insult to the original vi. ;-) More seriously, after using vim.tiny for a week, I found it fit

Re: syn region question

2010-08-13 Thread Jeri Raye
entity is a VHDL word, as well as if. foo is a made up word. It's also for the VHDL reserved words process, case, architecture. I can't believe VIM can't fold reserved words? Or is this a bug? I did change entity into entit (so removing the y char) in the given syn region. When I now type

source at runtime

2010-08-13 Thread Mostafa S.Ari
I have written a script that some options could be set from a separate option file. It seems the source command only work when the vim start because when I change that option file and source that again the changes doesn't have any effect. Should I use any other command instead of source? Mostafa

Re: PHP trick/tips solicited

2010-08-13 Thread caruso_g
On Aug 12, 12:58 am, Tim Johnson t...@johnsons-web.com wrote: I've used vim for years for other programming languages other than PHP. Now I'm starting to learn PHP. I have downloaded the *piv* package.http://www.vim.org/scripts/script.php?script_id=3125 I am sure that `piv' is going to be

Re: PHP trick/tips solicited

2010-08-13 Thread Joan Miquel Torres Rigo
2010/8/13 caruso_g peppecar...@gmail.com: On Aug 12, 12:58 am, Tim Johnson t...@johnsons-web.com wrote: I've used vim for years for other programming languages other than PHP. Now I'm starting to learn PHP. I have downloaded the *piv*

Re: syn region question

2010-08-13 Thread Andrew Long
On 13 Aug 2010, at 08:04, Jeri Raye wrote: entity is a VHDL word, as well as if. foo is a made up word. It's also for the VHDL reserved words process, case, architecture. I can't believe VIM can't fold reserved words? Or is this a bug? I did change entity into entit (so removing the

Re: syn region question

2010-08-13 Thread Christian Brabandt
Hi Andrew! On Fr, 13 Aug 2010, Andrew Long wrote: Are they declared as 'syntax keyword'? If so, I think that trumps any attempt to redefine them as regions/matches/etc. I had that problem when writing a syntax file for another language; declaring keywords highlights them unconditionally,

Do any people use gVim with C.vim in windows?

2010-08-13 Thread eliweiq001
I use gvim in windows. C.VIM has a folder named c-support. This folder can only be put in $VIM\vimfiles\ in my compter. If I put this folder in $HOME\vimfiles\ or $HOME\.vim\ , when start gvim it will pop-up a messagebox says that C/C++ template file 'D:

use the variable

2010-08-13 Thread eliweiq001
suppose I have such sentences in vimrc: source .\mydir\aaa.vim set xxxdir=.\mydir and if now I add a new a variable let yyy = .\mydir Now can I use the variable yyy instead of .\mydir in the sentences above ? How ? Thanks! -- You received this message from the vim_use maillist. Do not

Re: use the variable

2010-08-13 Thread thinca
let xxxdir = yyy :help expr-option -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: Do any people use gVim with C.vim in windows?

2010-08-13 Thread winterTTr
On 13 August 2010 18:57, eliweiq001 eliweiq...@gmail.com wrote: I use gvim in windows. C.VIM has a folder named c-support. This folder can only be put in $VIM\vimfiles\  in my compter. If I put this folder in $HOME\vimfiles\ or $HOME\.vim\ , when start gvim it will pop-up a messagebox says

Re: Unexpected cursor position when opening a file by clicking in netrw (v138b)

2010-08-13 Thread Jean Johner
On Aug 10, 9:56 pm, Charles Campbell charles.e.campb...@nasa.gov wrote: Hello, Jean: I didn't see this effect when I disabled viminfo  and some restore-position code in my .vimrc.  Please try this with simple.vimrc: set nocp filetype plugin on vim -u simple.vimrc file1 ..etc..

Re: Unexpected cursor position when opening a file by clicking in netrw (v138b)

2010-08-13 Thread Jean Johner
Hello Chip, I tried with lastpos and foldsearch plugins inactivated (plus _viminfo suppressed and simple.vimrc) Always the same error. Could you try again and give me your detailed config in the case where the bug vanishes. Best regards. Jean Johner -- You received this message from the

Re: Do any people use gVim with C.vim in windows?

2010-08-13 Thread Jeri Raye
On Fri, Aug 13, 2010 at 2:19 PM, winterTTr winterttr@gmail.com wrote: On 13 August 2010 18:57, eliweiq001 eliweiq...@gmail.com wrote: I use gvim in windows. C.VIM has a folder named c-support. This folder can only be put in $VIM\vimfiles\  in my compter. If I put this folder in

Re: syn region question

2010-08-13 Thread Jeri Raye
Hi Andrew, On Fri, Aug 13, 2010 at 1:21 PM, Christian Brabandt cbli...@256bit.org wrote: Hi Andrew! On Fr, 13 Aug 2010, Andrew Long wrote: Are they declared as 'syntax keyword'? Yes they are. If so, I think that trumps any attempt to redefine them as regions/matches/etc. I had that problem

Re: source at runtime

2010-08-13 Thread Gary Johnson
On 2010-08-13, Mostafa S.Ari wrote: I have written a script that some options could be set from a separate option file. It seems the source command only work when the vim start because when I change that option file and source that again the changes doesn't have any effect. Should I use any

Re: use the variable

2010-08-13 Thread Gary Johnson
On 2010-08-13, eliweiq001 wrote: suppose I have such sentences in vimrc: source .\mydir\aaa.vim set xxxdir=.\mydir and if now I add a new a variable let yyy = .\mydir Now can I use the variable yyy instead of .\mydir in the sentences above ? How ? The command to help you do

Re: syn region question

2010-08-13 Thread Jeri Raye
I can imagine something like this: sy match vhdlFoo \foo\ sy match vhdlBar \bar\ sy region vhdlFooBarFold \ start= \ end= \ fold transparent \ keepend What to fill in for the start and end parameter of the region, to get the folding as: +-- x lines: foo

Re: syn region question

2010-08-13 Thread Benjamin R. Haskell
On Fri, 13 Aug 2010, Jeri Raye wrote: I can imagine something like this: sy match vhdlFoo \foo\ sy match vhdlBar \bar\ sy region vhdlFooBarFold \ start= \ end= \ fold transparent \ keepend What to fill in for the start and end parameter of the region, to get

Re: syn region question

2010-08-13 Thread Benjamin R. Haskell
On Fri, 13 Aug 2010, Benjamin R. Haskell wrote: [...] The attached file seems to do what you want, w.r.t. [...] not modifying the original $VIMRUNTIME/syntax/vhdl.vim. Hmm. I think I might have conflated two threads. I think you're already using an 'after' directory. It still solves

Re: syn region question

2010-08-13 Thread Benjamin R. Haskell
On Fri, 13 Aug 2010, Benjamin R. Haskell wrote: On Fri, 13 Aug 2010, Jeri Raye wrote: [...] The attached file seems to do what you want, w.r.t. [...] not modifying the original $VIMRUNTIME/syntax/vhdl.vim. Hmm. I think I might have conflated two threads. I think you're already using

Using vim as Python-IDE

2010-08-13 Thread meino . cramer
Hi, for developing python scripts I want to convert my vim into a a Python IDE. I searched the web and found dozens of tricks tips and other things how to accomplish that. I tried to combine all that bits and pieces and end up with a bunch full of warnings and errors from wrong configs and script

Vim 7.3f ready for beta testing

2010-08-13 Thread Bram Moolenaar
Hello Vim users, Announcing: Vim (Vi IMproved) version 7.3f BETA This is the last BETA release of Vim 7.3. It consists of Vim 7.2 plus all patches, updated runtime files and some more. ONLY ONE DAY TO CHECK THERE IS NOTHING WRONG! The biggest additions since 7.2: - Persistent undo and

Re: Using vim as Python-IDE

2010-08-13 Thread Marc Weber
Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to convert my vim into a a Python IDE. Hi meino.cramer Maybe start explaining what you expect from an IDE. Also telling I have many errors without telling which won't help us

Re: Using vim as Python-IDE

2010-08-13 Thread Reid Thompson
On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to convert my vim into a a Python IDE. google pida google vimmate -- You received this message from the vim_use

Re: howto setup vim to ignore font space and allow maximize?

2010-08-13 Thread Daniel Nelson
On Sunday 08 August 2010 11:25:43 am Tony Mechelynck wrote: On 07/08/10 17:24, Aljosa Mohorovic wrote: under kde i can't get vim to maximize like other windows. if i understood correctly this is because vim calculates space font occupies and it resizes window to match font space. is there

Re: PHP trick/tips solicited

2010-08-13 Thread Tim Johnson
* Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net [100813 01:54]: 2010/8/13 caruso_g peppecar...@gmail.com: On Aug 12, 12:58 am, Tim Johnson t...@johnsons-web.com wrote: I would welcome any other tips, tricks, recipes, and vim scripts, that other may have found useful for PHP

Re: Using vim as Python-IDE

2010-08-13 Thread meino . cramer
Reid Thompson reid.thomp...@ateb.com [10-08-13 23:00]: On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to convert my vim into a a Python IDE. google pida google

Re: use the variable

2010-08-13 Thread eliweiq001
Wonderful! Thank yo so much! On 8月14日, 上午12时12分, Gary Johnson garyj...@spocom.com wrote: On 2010-08-13, eliweiq001 wrote: suppose I have such sentences in vimrc: source .\mydir\aaa.vim set xxxdir=.\mydir and if now I add a new a variable let yyy = .\mydir Now can I use the

Re: INSERT mode

2010-08-13 Thread Tim Chase
On 08/13/10 10:45, r48gx wrote: For years I have been using vi, and when you move the cursor in vim, it stays in insert mode. Is there anyway vim can be told to leave insert mode when a cursor jey is being pressed ? I suspect it may be a 'timeoutlen'/'ttimeoutlen' issue: :help 'tm' which

Re: INSERT mode

2010-08-13 Thread bill lam
Птн, 13 Авг 2010, Tim Chase писал(а): :inoremap left escleft :inoremap right escright ... to force the behavior you want. I guess the old vi does not recognise arrow keys in input mode, pressing arrow keys will just generate the sequences ^[OC etc. The OP might want a imap to map

Re: Do any people use gVim with C.vim in windows?

2010-08-13 Thread eliweiq001
By the way, in my gvim, $VIM = D:\gVimPortable\App\Vim $HOME = D:\gVimPortable\Data\settings the doc,plugin,color, folders are in $HOME\vimfiles All the plugins are put in $HOME\vimfiles\plugin , including plugin C.VIM. Now I want to put the c.vim's folder c-support in

Re: Do any people use gVim with C.vim in windows?

2010-08-13 Thread eliweiq001
Thanks. What's your $VIM and $HOME? Can you put your c-support in $HOME\vimfiles\c-support ? On 8月13日, 下午11时41分, Jeri Raye jeri.r...@gmail.com wrote: On Fri, Aug 13, 2010 at 2:19 PM, winterTTr winterttr@gmail.com wrote: On 13 August 2010 18:57, eliweiq001 eliweiq...@gmail.com wrote: I

Re: source at runtime

2010-08-13 Thread Mostafa S.Ari
Thank you Gary You are right. The problem was the if exists() ... at the start of the file that prevent reloading of the file. removing it solved the problem. best Mostafa On Fri, Aug 13, 2010 at 7:24 PM, Gary Johnson garyj...@spocom.com wrote: On 2010-08-13, Mostafa S.Ari wrote: I have

to :iunmap the maps which begis with some key

2010-08-13 Thread eliweiq001
I want to :iunmap all the maps which begins with Leader How can I do it easily? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: PHP trick/tips solicited

2010-08-13 Thread Joan Miquel Torres Rigo
2010/8/13 Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net: set foldmethod=marker               Lets me to group code by functionality and abstraction level. (see example below). Finally I forginven the example... (I also add below a few extraction of the ~/.vimrc in my personal machine

Re: Vim mutilating file permissions through Samba?

2010-08-13 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Apart from VIM's internal commands , try with standard UNIX umask command if possible. And should VIM add this as a feature (e.g internal command like pwd) ? On 08/12/2010 12:29 PM, John wrote: Hi all, I'm using Vim 7.2.411 on Windows XP (from

Re: Vim mutilating file permissions through Samba?

2010-08-13 Thread Tony Mechelynck
On 12/08/10 06:29, John wrote: Hi all, I'm using Vim 7.2.411 on Windows XP (from the Cream web site), to edit files hosted on a linux server. I have the linux directory as a Windows mapped network drive (via samba). If via the linux box, I set the permissions on a file to 775, I can edit and

Re: Limiting the range of a search

2010-08-13 Thread Tony Mechelynck
On 12/08/10 10:20, James Kanze wrote: I'm currently editing some files which contain several more or less independent sets of data. At any one time, I'm generally working on one, and only one set, delimited as a contiguous range of lines. I'd like to limit all of the search commands to only