Help, please

2011-01-30 Thread Ed Bradford
I use DropBox. I edit a file on computer A and FORGET to exit vim. Now on computer B, the .swp file prevents me from editing. I know I can ignore and just to go computer. However, VIM and DropBox could solve my problem by having an option to update on 1,4,16,64,256 second intervals and abandoning

Re: How do the default key commands work

2011-01-30 Thread Marco
On 2011-01-30 meino.cra...@gmx.de wrote: for those keys, for which is true, that they are mapped to a function call try using :map Thanks. I was aware of this command. But there are just the definded mappings listed, not the basic built-in commands like »%«, »e« or »w«. Marco -- You

Re: Basic scripting question

2011-01-30 Thread Christian Brabandt
Hi meino.cramer! On So, 30 Jan 2011, meino.cra...@gmx.de wrote: this is a very basic question ... I am currently learning vim scripting. With getline(.) I can get the contents of a line of a buffer. But: i How can I replace a line in the buffer with another contents? Use setline() or

Re: Basic scripting question

2011-01-30 Thread meino . cramer
Christian Brabandt cbli...@256bit.org [11-01-30 10:40]: Hi meino.cramer! On So, 30 Jan 2011, meino.cra...@gmx.de wrote: this is a very basic question ... I am currently learning vim scripting. With getline(.) I can get the contents of a line of a buffer. But: i How can I

Invitation to connect on LinkedIn

2011-01-30 Thread Yang Zhou
I'd like to add you to my professional network on LinkedIn. - Yang Yang Zhou Video Codec Software Engineer at Polycom Confirm that you know Yang Zhou https://www.linkedin.com/e/tuoc8u-gjjsmirq-6c/isd/2236375880/1uRIHvke/EML-invite_guest_snackified_59/

Re: Typing numbers

2011-01-30 Thread John Little
In the spirit of this thread, I'll bite... Chris said: There's only so much can fit under my skull.. I don't believe that limit is relevant; there's only a few hundred vim commands, if you use them you'll remember them. ... and I prefer to stick with a limited subset of keyboard actions that

Re: How do the default key commands work

2011-01-30 Thread Tim Chase
On 01/30/11 03:25, Marco wrote: there are just the definded mappings listed, not the basic built-in commands like »%«, »e« or »w«. The natively functionality for these is defined in C functions and mapped in Vim's source-code. If you want a catalog of the functionality, you can look at

Re: Typing numbers

2011-01-30 Thread Tim Chase
On 01/30/11 04:52, John Little wrote: There's only so much can fit under my skull.. I don't believe that limit is relevant; there's only a few hundred vim commands, if you use them you'll remember them. Now settable *options* ... ;-) -tim -- You received this message from the vim_use

Re: Typing numbers

2011-01-30 Thread Dotan Cohen
On Fri, Jan 28, 2011 at 16:18, adroid28 d.athina...@gmail.com wrote: Hi all :) I am fairly new in vim and also my touch typing is not that great. Although I can deal very well with all the vim commands I found my self always looking down when I need to write a number argument. I was

Re: Access vim command from the lua end WAS: How do the default key commands work

2011-01-30 Thread Marco
On 2011-01-30 Tim Chase v...@tim.thechases.com wrote: If you want a catalog of the functionality, you can look at things like [...] or more generically: :h index.txt Nice list I didn't know before. They're available natively from within a noremap version of a mapping. So if

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
I'm curious why this doesn't work: :g/^\d/norm 16(press control-a) I tried just going :norm 16^A but that also doesn't work (they both just increment the number by 1). I know that pressing 16^a in normal mode works correctly so that isn't the problem. ~Adam~ -- You received this message from

Re: Delete, add 16, and insert

2011-01-30 Thread Tim Chase
On 01/30/11 12:46, Adam wrote: :g/^\d/norm 16(press control-a) I tried just going :norm 16^A but that also doesn't work (they both just increment the number by 1). I know that pressing 16^a in normal mode works correctly so that isn't the problem. If you only pressed ^A then it wasn't part

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
What you want is to enter the ^A literally which can be done by prefixing it with control+V: Oh sorry yeah that's what I did do (^V^A) I guess I left it out. When you do that it appears that it's only incrementing by 1 though instead of the prefix that you give it (16 in this case) ~Adam~

Re: Delete, add 16, and insert

2011-01-30 Thread ZyX
Reply to message «Re: Delete, add 16, and insert», sent 23:26:19 30 January 2011, Sunday by Adam: Then you may have some plugin remapping C-a? Try doing execute normal! 16\C-a and see whether it helps. There is a known (and fixed in vim-7.3.100) bug that count is not passed to plugins in

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
Then you may have some plugin remapping C-a? Try doing execute normal! 16\C-a and see whether it helps. There is a known (and fixed in vim-7.3.100) bug that count is not passed to plugins in normal commands. Yup I must have some plugin that is doing that (the execute worked just fine).

Re: Delete, add 16, and insert

2011-01-30 Thread Tim Chase
On 01/30/11 14:26, Adam wrote: What you want is to enter the ^A literally which can be done by prefixing it with control+V: Oh sorry yeah that's what I did do (^V^A) I guess I left it out. When you do that it appears that it's only incrementing by 1 though instead of the prefix that you give

Re: Scrolling screen lines, I knew, it's impossible.

2011-01-30 Thread Bram Moolenaar
Ben Schmidt wrote: On 27/01/11 3:38 AM, oCameLo wrote: There's so many questions and feature requests about use mouse to scroll screen lines, but until now, it's still impossible. Bram, you're not opposed to this kind of feature, are you? So if I did some work on it, it could be

Re: Typing numbers

2011-01-30 Thread adroid28
Wow! A lot of info! Dotan Cohen wrote: I took a file to the F, J, 4, 8, F4, and F8 keys on the keyboard to help find them faster. Then I painted the whole keyboard black! Although painting may be a bit extreme, I do recommend filing a notch into the aforementioned keys. Years later and

Re: Typing numbers

2011-01-30 Thread ZyX
Reply to message «Re: Typing numbers», sent 01:55:03 31 January 2011, Monday by adroid28: Thanks for the advice but I have a macbook so I wouldn't want to do that to it.. :) If I was using an external keyboard I would definitely do the painting part. I think that would help! Instead of

Re: Access vim command from the lua end WAS: How do the default key commands work

2011-01-30 Thread Ben Schmidt
It's not about remapping. I'm writing a vimscript in lua. In a function I need the position of the opening and closing bracket. So in vim I would execute »%« twice. Than I have both positions. If there would be functions for the basic comands I just would execute the corresponding function. But

Re: Substitute within a highlight group.

2011-01-30 Thread sergio
On 01/28/2011 07:27 PM, David Fishburn wrote: SRSearch optionally takes parameters. Oh. I'v already done without srhg. May be it will be usefull for someone. This function finds DNS zone serial and increments it. function AdjustSerial() let l:pos = getpos( '.' ) call