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 e

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 A

Re: PHP trick/tips solicited

2010-08-13 Thread caruso_g
On Aug 12, 12:58 am, Tim Johnson 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 really helpful. > > I

Re: PHP trick/tips solicited

2010-08-13 Thread Joan Miquel Torres Rigo
2010/8/13 caruso_g : > On Aug 12, 12:58 am, Tim Johnson 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 t

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 re

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: \gVimPortable\App\vim\vimfiles\c-supp

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 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 that "C/C+

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 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.. > > Regards, > Chip Campbe

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 wrote: > On 13 August 2010 18:57, eliweiq001 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\ , w

Re: syn region question

2010-08-13 Thread Jeri Raye
Hi Andrew, On Fri, Aug 13, 2010 at 1:21 PM, Christian Brabandt 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 >> when

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 a

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 t

Re: syn region question

2010-08-13 Thread Jeri Raye
I can imagine something like this: sy match vhdlFoo "\" sy match vhdlBar "\" 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 "\" > sy match vhdlBar "\" > > sy region vhdlFooBarFold > \ start="" > \ end="" > \ fold transparent > \ keepend > > What to fill in for the start and end parameter of the reg

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 u

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 scrip

Re: use the variable

2010-08-13 Thread ZyX
Ответ на сообщение «Re: use the variable», присланное в 20:12:30 13 августа 2010, Пятница, отправитель Gary Johnson: > exe "source " . yyy . "\aaa.vim" Here you must replace yyy with fnameescape(yyy), see :h fnameescape(). Текст сообщения: > On 2010-08-13, eliweiq001 wrote: > > suppose I hav

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 un

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 hel

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_

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. > >

Re: PHP trick/tips solicited

2010-08-13 Thread Tim Johnson
* Joan Miquel Torres Rigo [100813 01:54]: > 2010/8/13 caruso_g : > > On Aug 12, 12:58 am, Tim Johnson wrote: > >> > >> I would welcome any other tips, tricks, recipes, and vim scripts, > >> that other may have found useful for PHP programming. > > I don't use any special pluggin nowadays, but I

Re: Using vim as Python-IDE

2010-08-13 Thread meino . cramer
Reid Thompson [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 vi

Re: use the variable

2010-08-13 Thread eliweiq001
Wonderful! Thank yo so much! On 8月14日, 上午12时12分, Gary Johnson 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 variab

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 > :inoremap > ... > > 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 all arrow keys to n

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 $HOME\vimfiles\c-

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 wrote: > On Fri, Aug 13, 2010 at 2:19 PM, winterTTr wrote: > > On 13 August 2010 18:57, eliweiq001 wrote: > > >> I use gvim in windows. > >> C.VIM has a folder named "c-s

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 wrote: > On 2010-08-13, Mostafa S.Ari wrote: > > I have written a script th

to :iunmap the maps which begis with some key

2010-08-13 Thread eliweiq001
I want to :iunmap all the maps which begins with 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 : > > 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 (out of my job and less

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 s

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 con

Re: syn region question

2010-08-13 Thread Jeri Raye
Hi Ben, On Fri, Aug 13, 2010 at 8:45 PM, Benjamin R. Haskell wrote: > The attached file seems to do what you want, w.r.t. both the multiple > block keywords, and not modifying the original > $VIMRUNTIME/syntax/vhdl.vim.  To use it, put it in your > ~/.vim/after/syntax/ directory (create if needed

Re: INSERT mode

2010-08-13 Thread r48gx
Just put this in my .vimrc ro...@novaprospect:~$ more .vimrc inoremap inoremap inoremap inoremap ro...@novaprospect:~$ It does exactly what I want now. It exits insert mode when I hit a cursor key. Thank you so much ! I was about to remove vim from my ubuntu ! Now I don't have to think ab

Re: INSERT mode

2010-08-13 Thread bill lam
Does it moves an extra character position to the left? Птн, 13 Авг 2010, r48gx писал(а): > Just put this in my .vimrc > > ro...@novaprospect:~$ more .vimrc > inoremap > inoremap > inoremap > inoremap > ro...@novaprospect:~$ > > It does exactly what I want now. It exits insert mode when I