how to write omnifunction?

2010-08-17 Thread aleCodd
I would like the items in the popupmenu to be more than simple strings, i mean that after i select an item i want the cursor to automatically jump to specific locations. let me give a simple example, from JavaScript: when i type: document.getEle and then i want it to complete to docum

key binding for bash "the vim way"

2010-08-17 Thread aleCodd
if i want to customise and define my _own_ mapping for the command line, is there a way to define these mapping like in vim i.e. :noremap or :noabbreviate etc. or do i have to learn the gun readline style to do this.. i don't want to learn a new style in order to get further confused... the only

Re: how to write omnifunction?

2010-08-17 Thread Tony Mechelynck
On 17/08/10 08:28, aleCodd wrote: I would like the items in the popupmenu to be more than simple strings, i mean that after i select an item i want the cursor to automatically jump to specific locations. let me give a simple example, from JavaScript: when i type: document.getEle and then

Re: Abbreviation is expanded by only pressing the key , how to do?

2010-08-17 Thread coolesting
Hi ,Tim, it is reasonable to your advice and reference, as mention early i said, maybe is not sufficient detail for express this problem, let me show the instance as the following, " a abbreviation in .vimrc file :ab php " a ex command-line will be issue in vim :newtab /var/www/index.php so,

Re: Abbreviation is expanded by only pressing the key , how to do?

2010-08-17 Thread bill lam
Втр, 17 Авг 2010, coolesting писал(а): > > Hi ,Tim, it is reasonable to your advice and reference, > as mention early i said, maybe is not sufficient detail for express this > problem, > let me show the instance as the following, > > " a abbreviation in .vimrc file > :ab php > > " a ex command-

Re: how to write omnifunction?

2010-08-17 Thread ale
Did you try ending your completion text with "\" e.g. :return "document.getElementById()\" (with double quotes and a backslash before the less-than sign)? (I haven't, so I don't know if it works.) unfortunately it doesnt work.. alex -- You received this message from the "vim_use" maillist. Do

Re: how to write omnifunction?

2010-08-17 Thread ale
Did you try ending your completion text with "\" e.g. :return "document.getElementById()\" (with double quotes and a backslash before the less-than sign)? (I haven't, so I don't know if it works.) unfortunately it doesnt work.. alex -- You received this message from the "vim_use" maillist. Do

Re: Abbreviation is expanded by only pressing the key , how to do?

2010-08-17 Thread Tim Chase
On 08/17/10 04:37, coolesting wrote: " a abbreviation in .vimrc file :ab php " a ex command-line will be issue in vim :newtab /var/www/index.php so, it is not work as i expected when issue the ex command and press the ENTER key, the word "php" at the end of ex command sequence will be expande

Re: key binding for bash "the vim way"

2010-08-17 Thread Stahlman Family
aleCodd wrote: if i want to customise and define my _own_ mapping for the command line, is there a way to define these mapping like in vim i.e. :noremap or :noabbreviate etc. or do i have to learn the gun readline style to do this.. i don't want to learn a new style in order to get further con

Re: key binding for bash "the vim way"

2010-08-17 Thread Bernd Strohhäcker
Am 17.08.2010 08:29, schrieb aleCodd: > ... > > and in general what is the best shell with text editing capabilities that > resembles vim the most, but more importantly i want it to be dinmically > modifiable like vim, ֠_not_ like the fixed option of set -o vi command in > bash which set a _static

Re: Mouse select / insert question

2010-08-17 Thread Horatiu German
Yegappan, You're right, it did :-) ! Many, many thanks! Horaţiu 2010/8/16 Yegappan Lakshmanan > Hi, > > On Mon, Aug 16, 2010 at 8:33 AM, Horatiu German > wrote: > > Hi, > > > > I recently upgraded from Vim 5.8 to Vim 7.2 on WinXP. > > > > One setting that I had in 5.8and I'd like to ha

Re: If I always use mouse under GTK to browse text file in gvim, sometimes gvim stops working.

2010-08-17 Thread H Xu
On Tue, Aug 10, 2010 at 12:32 PM, H Xu wrote: > On 2010/8/9 16:10, Tony Mechelynck wrote: > >> On 08/08/10 18:38, H Xu wrote: >> >>> Hello everybody, >>> >>> >>> If I always use mouse under GTK to browse text file in gvim, sometimes >>> gvim stops working: >>> It will not respond any key stroke

Re: Vim mutilating file permissions through Samba?

2010-08-17 Thread Ben Fritz
On Aug 16, 6:29 pm, John wrote: > > I'm currently contemplating adding autocmds for BufWritePre and > BufWritePost, to check if the file is accessible under cygwin, or via > ssh to a linux server, and send the appropriate commands to get the > file permissions before write, then restore them aft

Re: Fold display configuration. Is that possible?

2010-08-17 Thread Ben Fritz
On Aug 16, 9:45 am, Jeri Raye wrote: > Hi, > > Is it possible to configure vim how you want to have your folds displayed? > I would like to see child folds as an indented fold of it's parent fold. If I understand correctly, you just want to be able to configure the text displayed for a fold. Th

Re: Number ranges in vim regex

2010-08-17 Thread Christian Brabandt
Hi Albert! On Mo, 16 Aug 2010, Albert wrote: > Christian Brabandt wrote: > > > > I think this should work: > > /\<\%([0-9]\|[^2-9][0-9]\|20\)\> > > > > Which translates roughly to > > \<          " beginning of a word > > \%(...\)    " Start a group > > [0-9]       " either 0-9 > > \|          "

Forbidding Visual Mode.

2010-08-17 Thread John Culleton
I am editing a long document with many { } pairs and some spurious entries of either { or }. I want to click on one member of the pair and have the other highlighted. This works fine. But when I click on a spurious } Gvim switches to visual mode and if I delete it I am likely to delete a whol

ctags + php + static methods/methods with similar names

2010-08-17 Thread sveri
Hi, i am trying furthermore to replace netbeans by vim, cause netbeans becomes so slow on handling massive files. However, i got very far with nerdtree, taglist and ctags, but there are two things that bug me: 1. When i parse my code with ctags it seem to work well, and i can omnicomplete and thi

Problem with feedkeys()

2010-08-17 Thread SirVer
Hi, I am the developer of UltiSnips, the ultimate snippet solution for vim[1]. A user of mine has reported a bug [2] that is hard for me to fix and I am in search of inspiration on this list. UltiSnips selects part of text by using feedkeys(). For example to select two lines for overwriting in in

Re: how to write omnifunction?

2010-08-17 Thread aleCodd
just noticed that you helped me in the forum :-) thanks... hope youve seen the answer and the script i linked cheers alex On Tue, Aug 17, 2010 at 6:08 PM, Tony Mechelynck [via VIM] < ml-node+2637823-1740051624-48...@n5.nabble.com > wrote: > On 17/08/10 08:28, aleCodd wrote: > > > > > I would l

Re: how to write omnifunction?

2010-08-17 Thread aleCodd
ok..next time but why didn't you forwayd my reply and why do i have still to wait for every reply, with all due respect...its like torture.. why should i have to wait hours just to get my answer through... maybe somebody wants to help but now i will have to wait for tomorrow before he sees the me

Re: how to write omnifunction?

2010-08-17 Thread aleCodd
just a minor correction to the script... i.e. the line "return start" was moved after "endwhile" as it should be... here is the script: http://vim.1045645.n5.nabble.com/file/n2637872/test test -- View this message in context: http://vim.1045645.n5.nabble.com/how-to-write-omnifunction-tp26377

vim 7.3, lusty explorer (and python ?)

2010-08-17 Thread Davido
Dear list, First, sorry for my poor English. I've just compiled and installed vim 7.3. The naked version (I mean without any plugin) seems to be working fine, but when I load lusty-explorer plugin and just try to enter insert mode, it crashes. So, as a workaround, I've inserted these lines in my

ctags + php + static methods/methods with similar names

2010-08-17 Thread Sven Richter
Hi, i am trying furthermore to replace netbeans by vim, cause netbeans becomes so slow on handling massive files. However, i got very far with nerdtree, taglist and ctags, but there are two things that bug me: 1. When i parse my code with ctags it seem to work well, and i can omnicomplete and thi

i really think the moderating is insulting to say the least

2010-08-17 Thread aleCodd
ive been a user for months and even helped out many times, i dont see any justification that i have to wait days before my messages get approved.. for example now i posted a question and i wanted to reply to somebody help but guess what? i have to wait another day for this message to go through..s

Re: how to write omnifunction?

2010-08-17 Thread aleCodd
seems like the right answer, but what i get is the following: getElementById()<80>kl can you please check the linked script http://vim.1045645.n5.nabble.com/file/n2637863/test test ? thanks -- View this message in context: http://vim.1045645.n5.nabble.com/how-to-write-omnifunction-tp2637764p26

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread Tony Mechelynck
On 17/08/10 10:52, aleCodd wrote: ive been a user for months and even helped out many times, i dont see any justification that i have to wait days before my messages get approved.. for example now i posted a question and i wanted to reply to somebody help but guess what? i have to wait another d

Re: Problem with feedkeys()

2010-08-17 Thread ZyX
Ответ на сообщение «Problem with feedkeys()», присланное в 18:33:47 17 августа 2010, Вторник, отправитель SirVer: Maybe you should try using ``normal!'' command? Or feedkeys with string "n" as a second argument: I do not know how it interacts with langmap, but it does not let remapping fed key

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread Erik Falor
On Tue, Aug 17, 2010 at 01:52:37AM -0700, aleCodd wrote: > > ive been a user for months and even helped out many times, i dont see any > justification that i have to wait days before my messages get approved.. > for example now i posted a question and i wanted to reply to somebody help > but guess

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread Tony Mechelynck
On 17/08/10 19:04, Tony Mechelynck wrote: On 17/08/10 10:52, aleCodd wrote: ive been a user for months and even helped out many times, i dont see any justification that i have to wait days before my messages get approved.. for example now i posted a question and i wanted to reply to somebody he

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread Jeffrey 'jf' Lim
On Wed, Aug 18, 2010 at 1:34 AM, Tony Mechelynck wrote: > On 17/08/10 19:04, Tony Mechelynck wrote: >> >> On 17/08/10 10:52, aleCodd wrote: >>> >>> ive been a user for months and even helped out many times, i dont see any >>> justification that i have to wait days before my messages get approved..

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread AK
On 08/17/2010 01:34 PM, Tony Mechelynck wrote: On 17/08/10 19:04, Tony Mechelynck wrote: On 17/08/10 10:52, aleCodd wrote: ive been a user for months and even helped out many times, i dont see any justification that i have to wait days before my messages get approved.. for example now i posted

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread Benjamin R. Haskell
On Tue, 17 Aug 2010, Tony Mechelynck wrote: > On 17/08/10 10:52, aleCodd wrote: > > > > ive been a user for months and even helped out many times, i dont > > see any justification that i have to wait days before my messages > > get approved.. for example now i posted a question and i wanted to

Re: Problem with feedkeys()

2010-08-17 Thread Christian Brabandt
Hi SirVer! On Di, 17 Aug 2010, SirVer wrote: > I am the developer of UltiSnips, the ultimate snippet solution for > vim[1]. A user of mine has reported a bug [2] that is hard for me to > fix and I am in search of inspiration on this list. > > UltiSnips selects part of text by using feedkeys(). F

Re: Forbidding Visual Mode.

2010-08-17 Thread Charles Campbell
John Culleton wrote: I am editing a long document with many { } pairs and some spurious entries of either { or }. I want to click on one member of the pair and have the other highlighted. This works fine. But when I click on a spurious } Gvim switches to visual mode and if I delete it I am likel

Re: Problem with feedkeys()

2010-08-17 Thread Andy Wokula
Am 17.08.2010 16:33, schrieb SirVer: Hi, I am the developer of UltiSnips, the ultimate snippet solution for vim[1]. A user of mine has reported a bug [2] that is hard for me to fix and I am in search of inspiration on this list. UltiSnips selects part of text by using feedkeys(). For example to

Re: If I always use mouse under GTK to browse text file in gvim, sometimes gvim stops working.

2010-08-17 Thread Matt Wozniski
On Tue, Aug 17, 2010 at 10:11 AM, H Xu wrote: > > > On Tue, Aug 10, 2010 at 12:32 PM, H Xu wrote: >> >>  On 2010/8/9 16:10, Tony Mechelynck wrote: >>> >>> On 08/08/10 18:38, H Xu wrote: Hello everybody, If I always use mouse under GTK to browse text file in gvim, sometime

Re: Gvim + Win7 + dual monitors

2010-08-17 Thread Bram Moolenaar
Michael Wookey wrote: > [cross posting from vim_use to vim_dev...sorry] > > On 17 August 2010 10:05, Michael Wookey wrote: > > On 17 August 2010 09:08, George V. Reilly wrote: > >> On Mon, Aug 16, 2010 at 3:18 PM, Eric Tetz wrote: > >>> > >>> I'm trying to use Vim in a dual monitor setup unde

Re: Vim 7.3 released!

2010-08-17 Thread Bram Moolenaar
Yongwei - > The sources page only lists 7.2? > > http://www.vim.org/sources.php > > (Manually changing 7.2 to 7.3 in the URL seems to work for > vim-7.3.tar.bz2, but not for vim-7.3-extra.tar.gz.) Thanks for the hint, I have updated the page. - Bram -- >From "know your smileys": 2B|^2B M

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread Tony Mechelynck
On 17/08/10 19:58, Benjamin R. Haskell wrote: On Tue, 17 Aug 2010, Tony Mechelynck wrote: On 17/08/10 10:52, aleCodd wrote: ive been a user for months and even helped out many times, i dont see any justification that i have to wait days before my messages get approved.. for example now i pos

Re: i really think the moderating is insulting to say the least

2010-08-17 Thread bill lam
Apparently you posted throught nabble. Did you examine the email header to identify where the delay was? You may try post throught google group website or the real gmail smtp for comparison. BTW I think you owned the moderators an apology. -- regards, ===

Re: Vim mutilating file permissions through Samba?

2010-08-17 Thread John
Thanks for the suggestion Ben. I'm hesitant to bypass Vim's default write mechanism - as I suspect there could well be lots of subtleties about it that I might learn about one by one, painfully. For example, the fileformat handling and backup file handling. I have written a get-permissions/set-perm

Re: ctags + php + static methods/methods with similar names

2010-08-17 Thread bill lam
Втр, 17 Авг 2010, Sven Richter писал(а): > 2. When i try to follow a method with CTRL+] it works, but jumps into > the first found method. > For instance, almost every class has a method called: > fetchById() > and i want to get into the class that is being called and not the > first found one. Yo

Re: ctags + php + static methods/methods with similar names

2010-08-17 Thread Dominique Pellé
bill lam wrote: > Втр, 17 Авг 2010, Sven Richter писал(а): >> 2. When i try to follow a method with CTRL+] it works, but jumps into >> the first found method. >> For instance, almost every class has a method called: >> fetchById() >> and i want to get into the class that is being called and not th

Re: Gvim + Win7 + dual monitors

2010-08-17 Thread Sergey Khorev
> Is there a function to ask the system what the valid coordinates are? > Simply removing these lines will mean that resizing may result in the > gvim window being outside of the screen boundaries on a single monitor. It seems GetSystemMetrics can do the trick ( http://msdn.microsoft.com/en-us/lib