Monday, December 31, 2012

Re: displaying unicode control sequences

* Shlomi Fish <shlomif@shlomifish.org> [01/01/13 01:52]:
> Hi Moshe,
>
> On Mon, 31 Dec 2012 12:47:09 +0200
> Moshe Kamensky <moshe.kamensky@googlemail.com> wrote:
>
> > Hi,
> >
> > I am editing a document that contains the bidi control sequences LRE
> > (unicode 202a) and PDF (unicode 202c). These characters are displayed
> > with their unicode value in angle brackets, like this: <202a>. As a
> > result, the line breaking (among other things) is wrong. This happens
> > both in the gui (gtk2) and in the terminal, despite the fact that the
> > font I am using appears to have glyphs for these characters. So my
> > question is, is it possible to cause vim to display the actual glyphs,
> > instead of the unicode value?
> >
>
> Vim does not support bidirectional editing of bidirectional (mixed
> Hebrew/Latin, Arabic/Latin , etc.) text - it can either display the text
> left to right or right to left, with some fragments displayed reversed.
>
> Also see: http://ae-www.technion.ac.il/pkgs/t-z/vim/
>

Thanks, I know vim itself doesn't support bidi, I'm using it with a
terminal that (somewhat) supports it (urxvt with a perl plugin). The
problem is that I sometimes need to insert explicit direction marks, and
I would like them to be displayed properly, i.e., occupy only one cell.
Otherwise, the display gets completely garbled.

Thanks,
Moshe

--
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: increment existing numbers by 1

I found this

You have to use normal to execute normal mode commands in command mode:

:g/searchString/ normal ^A

Note that you have to press Ctrl-V Ctrl-A to get the ^A character.

I have

:s@\d\+@\=submatch(0) +1@g

to do what I want.

But can CTRL-A or ^A be used in a :s@search@replace@g command? I
haven't found anything that shows that it can be used that way. I saw
in :help that it can be used in a macro. It seems if it could be used
in a single line search with global replacement at the command line
then it could also be used in a map.

I'm just curious because I found a workable solution when I was trying
to figure out if CTRL-A could be used.

Thanks

--
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: displaying unicode control sequences

Hi Moshe,

On Mon, 31 Dec 2012 12:47:09 +0200
Moshe Kamensky <moshe.kamensky@googlemail.com> wrote:

> Hi,
>
> I am editing a document that contains the bidi control sequences LRE
> (unicode 202a) and PDF (unicode 202c). These characters are displayed
> with their unicode value in angle brackets, like this: <202a>. As a
> result, the line breaking (among other things) is wrong. This happens
> both in the gui (gtk2) and in the terminal, despite the fact that the
> font I am using appears to have glyphs for these characters. So my
> question is, is it possible to cause vim to display the actual glyphs,
> instead of the unicode value?
>

Vim does not support bidirectional editing of bidirectional (mixed
Hebrew/Latin, Arabic/Latin , etc.) text - it can either display the text
left to right or right to left, with some fragments displayed reversed.

Also see: http://ae-www.technion.ac.il/pkgs/t-z/vim/

Regards,

Shlomi Fish

> Thank you,
> Moshe
>



--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
List of Text Editors and IDEs - http://shlom.in/IDEs

Judaism: God is all the shit, all the non‐shit and all the intermediate
demi‐shits in between.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
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: Opening/creating a filename with a space using the :e command?

On Monday, December 31, 2012 1:45:48 PM UTC-6, stillLearningVim wrote:
> > :e ~/File name
> >
> > E172: Only one file name allowed
> The space is causing vim to think it's trying to open more than one file
>
> > :e "~/File name"
> >
> > E32: No file name
> " is for a comment in vimscript, so vim is ignoring the rest of the command.
>
> > :e ~/"File name"
> >
> > "~/" Illegal file name
> This is the same problem, vim ignores everything after the ". Since this ends in a / vim thinks it's a directory, not a file.
>
>
> > Do I need to do some kind of special escape sequence in order to open it, or is VIM just designed such that I can't do this?
> All the previous posts about using the \ character to escape a space should work.

Actually, I figured this out myself after looking up "escape sequences," and this was the second one I tried. First I tried using a %20 as a space, which didn't work, and then I tried proceeding the backslash with a space... and that worked perfectly.

Thanks for your post though, the explanation about VIM script was interesting because I was wondering why VIM can't understand quotes. Bash and the Windows Command Line both recognize that usage to input long file names, so I was rather confused when it didn't work here.

I'm actually using Ubuntu Linux right now, but I do use GVIM on my Windows machine as well... I've been avoiding spaces and/or renaming files to get around this limitation for a while now, and finally decided to look up how to deal with it properly.

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

Having trouble using conceal

I have a map I use that inserts a timestamp in the form of

__TS:1356990559|Dec 31, 2012 14:49__

The dual nature allows me to visually parse the date, and process my entries easily with a program that parses the file.

I'm trying to conceal the TS:...| part to make it visually more pleasing. Basically, eye-candy. But I am not succeeding at all.

This is what I have (if you want the context, see it here: http://goo.gl/EDZ3q )

if has( 'conceal' )

" How can I use variables for the patterns?
"syntax region myTimeStamp start="__TS:" end="\|" oneline conceal cchar=_
syntax region myTimeStamp start="__TS:" end="\|"
"highlight link myTimeStamp Conceal
highlight myTimeStamp ctermfg=red ctermbg=blue
set conceallevel=2

endif

Obviously, I'm misunderstanding syntax highlighting in general, because the region isn't being highlighted, let aloned concealed (when uncommented).

What am I doing wrong?

--
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: Opening/creating a filename with a space using the :e command?

> :e ~/File name
>
> E172: Only one file name allowed
The space is causing vim to think it's trying to open more than one file

> :e "~/File name"
>
> E32: No file name
" is for a comment in vimscript, so vim is ignoring the rest of the command.

> :e ~/"File name"
>
> "~/" Illegal file name
This is the same problem, vim ignores everything after the ". Since this ends in a / vim thinks it's a directory, not a file.


> Do I need to do some kind of special escape sequence in order to open it, or is VIM just designed such that I can't do this?
All the previous posts about using the \ character to escape a space should work.

--
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: Vim on the iPad

On Mon, Dec 31, 2012 at 1:04 PM, Benjamin Klein <ben@silver-chalice.com> wrote:
>
> On Dec 31, 2012, at 8:35 AM, Eric Weir <eeweir@bellsouth.net> wrote:
>
> > Couple of questions: Do Android tablets have a file system? [Or is that what would be provided by Jeroen's third option, installing a Debian kit?] Is iOS still a version of Uniix?
>
> From Wikipedia: "iOS is derived from OS X, with which it shares the Darwin foundation, and is therefore a Unix operating system." So to the iOS question: Yes. And you can get at a lot of the underlying Unix OS if you're OK with jailbreaking — but there are plenty of power user types that decide to not do that, and it probably would require a bit of hacker-type setup to be able to comfortably use Vim on a jailbroken iPad with files etc. managed by hand through the filesystem.
>
> Be warned that I have never used an Android device. :} However from what I have read it seems that although there is no native Android file browser, there are multiple choices from third parties for this (the most popular or well-known seems to be Astro — https://play.google.com/store/apps/details?id=com.metago.astro&hl=en). And there are also nice terminal emulators in Google Play (for Android). So in an Android tablet it looks like you would have the filesystem issue taken care of, and it would only remain to be seen if the native vim included in whatever Android variant you ended up using would be usable enough for the type of writing that you do.
>
> If you do decide to go with an Android device, this article could perhaps be useful: http://gdr.geekhood.net/gdrwpl/vim-android.php.


Eric, you have a lot more flexibility with Android than you do with
ipad. My computer runs Linux and my phone runs Android and my nook
runs Android. I can do the same things on both the nook and the phone.
I have not attempted to run Vim on either. I much rather sit in front
of my large wide screen desktop monitor for text editing.

--
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: Opening/creating a filename with a space using the :e command?

On Mon, Dec 31, 2012 at 07:48:58AM -0800, delph367 wrote:
> I've tried searching for an answer on Google, but I keep getting tons of irrelevant results that have nothing to do with this topic.

> Here's a list of what I've tried:

> :e ~/File name

> E172: Only one file name allowed

> :e "~/File name"

> E32: No file name

> :e ~/"File name"

> "~/" Illegal file name

> I've also tried all three combinations with /home/username instead of the ~/ shortcut. It seems like no matter what I try, it just won't open a file name with a space in it.

> Do I need to do some kind of special escape sequence in order to open it, or is VIM just designed such that I can't do this?

no, not special, the most common, mundane escape sequence in all of
computerland:

:e ~/File\ name

should get you what you want.

sc

--
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: Debugging Error In VIM Script

On Monday, December 31, 2012 10:07:17 AM UTC-6, Rakesh UV wrote:
> Dear Vim users,
>
> while starting gvim.exe some plugin is throwing a message, there is line number or script name or error just a value 0 with a OK button :-).
>
> I have press OK button to continue, it was annoying, but now i am annoyed as well as very curious in understand a perfect method to debug such situation.
>
> I have a attached a image of the message, i am not sure if it will be any help, but would help in understanding the problem.
>
> Any enough would be enough
>

It looks like some plugin or another is using echomsg or echoerr before the GUI starts.

Try removing half your plugins. If the problem persists, remove half of the remainder. If the problem goes away, try again with the half you removed. Repeat until you find the offending plugin.

Then you can contact the plugin maintainer about the problem. In the meantime, look for an echomsg or echoerr command getting triggered during plugin load.

It might be worthwhile first trying with NO plugins via the --noplugin startup flag, to make sure it's not something you introduced in your own .vimrc.

--
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: Debugging Error In VIM Script

Excerpts from Rakesh UV's message of Mon Dec 31 17:07:17 +0100 2012:
> Dear Vim users,
>
> while starting gvim.exe some plugin is throwing a message, there is
> line number or script name or error just a value 0 with a OK button
> :-).

:messages will reshow them.
https://github.com/c9s/vim-dev-plugin -> how to debug VimL

The -V20 trick logging all viml lines might be of use, have a look at
the file while the message box is open, then you understand what vim is
doing (hopefully)

Marc Weber

--
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: Opening/creating a filename with a space using the :e command?

On Monday, December 31, 2012 12:36:26 PM UTC-6, Tim Chase wrote:
> On 12/31/12 09:48, delph367 wrote:
>
> > Do I need to do some kind of special escape sequence in order to
>
> > open it, or is VIM just designed such that I can't do this?
>
>
>
> I don't know which OS you're on, but you might try using a backslash
>
> to escape the space:
>
>
>
> :e ~/path/to/file\ with\ space
>

Vim handles the file path internally so this is how to do it on any system, even Windows.

--
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: Opening/creating a filename with a space using the :e command?

On 12/31/12 09:48, delph367 wrote:
> Do I need to do some kind of special escape sequence in order to
> open it, or is VIM just designed such that I can't do this?

I don't know which OS you're on, but you might try using a backslash
to escape the space:

:e ~/path/to/file\ with\ space

or, you can try using <tab> expansion to let Vim auto-complete the
filename.

-tkc



--
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: Vim on the iPad

On Dec 31, 2012, at 8:35 AM, Eric Weir <eeweir@bellsouth.net> wrote:

> Couple of questions: Do Android tablets have a file system? [Or is that what would be provided by Jeroen's third option, installing a Debian kit?] Is iOS still a version of Uniix?

From Wikipedia: "iOS is derived from OS X, with which it shares the Darwin foundation, and is therefore a Unix operating system." So to the iOS question: Yes. And you can get at a lot of the underlying Unix OS if you're OK with jailbreaking — but there are plenty of power user types that decide to not do that, and it probably would require a bit of hacker-type setup to be able to comfortably use Vim on a jailbroken iPad with files etc. managed by hand through the filesystem.

Be warned that I have never used an Android device. :} However from what I have read it seems that although there is no native Android file browser, there are multiple choices from third parties for this (the most popular or well-known seems to be Astro — https://play.google.com/store/apps/details?id=com.metago.astro&hl=en). And there are also nice terminal emulators in Google Play (for Android). So in an Android tablet it looks like you would have the filesystem issue taken care of, and it would only remain to be seen if the native vim included in whatever Android variant you ended up using would be usable enough for the type of writing that you do.

If you do decide to go with an Android device, this article could perhaps be useful: http://gdr.geekhood.net/gdrwpl/vim-android.php.

--
b

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

Debugging Error In VIM Script

Dear Vim users,

while starting gvim.exe some plugin is throwing a message, there is line number or script name or error just a value 0 with a OK button :-).

I have press OK button to continue, it was annoying, but now i am annoyed as well as very curious in understand a perfect method to debug such situation.

I have a attached a image of the message, i am not sure if it will be any help, but would help in understanding the problem.

Any enough would be enough

Thanks in advance.
Rakesh UV

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

Opening/creating a filename with a space using the :e command?

I've tried searching for an answer on Google, but I keep getting tons of irrelevant results that have nothing to do with this topic.

Here's a list of what I've tried:

:e ~/File name

E172: Only one file name allowed

:e "~/File name"

E32: No file name

:e ~/"File name"

"~/" Illegal file name

I've also tried all three combinations with /home/username instead of the ~/ shortcut. It seems like no matter what I try, it just won't open a file name with a space in it.

Do I need to do some kind of special escape sequence in order to open it, or is VIM just designed such that I can't do this?

--
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: Vim on the iPad

On Dec 31, 2012, at 9:35 AM, Eric Weir <eeweir@bellsouth.net> wrote:

>
> On Dec 30, 2012, at 5:37 PM, Benjamin Klein wrote:
>
>> Eric: Yes, this seems to be about the only practical method (short of jailbreaking) by which we currently can use Vim on an iPad: an external keyboard for input and a remote server (something other than your actual local filesystem) for the actual edited files.
>>
>> If you are willing to jailbreak your device, though (and this *is* a bit of a techie-ish thing to do, although I can say from my experience that some of the more popular tools for this are becoming quite usable for non-hacker-type users lately), a reasonable-sounding approach would be to do something like what I now see David Sanson suggested way back in September — use something like Prompt to ssh into localhost and use whatever vim is available there. I guess a downside to that approach would be that you don't necessarily have a terribly-complete vim built in, but at that point you would be in a position to compile a flavor of your own choosing, with all of the generally-required dependencies. I have never yet had occasion to do this myself do perhaps I should cease to advise you on how best to do it, though. :}
>>
>> The last place of all to check in my opinion would be the iOS app. For me anything short of a standard filesystem would simply be too clumsy to work with, but worse than that, as of Nov. 14 this year it seems that the iOS app does not even have Dropbox support, and the only mentioned means of getting to your files is through iTunes File Sharing.
>>
>> So to summarize my rambling here:
>>
>> 1. There isn't yet a practical way of using standard "vim with filesystem" on iOS *without either jailbreaking or ssh-ing into a remote server.* (If there's anyone on the list who knows of something available or being developed to answer this problem, please point this out to me.)
>>
>> 2. The provided iOS keyboard is no good for Vim, so you should use an external keyboard of one form or another for maximum vimmability (whether a keyboard case or an Apple wireless keyboard).
>
> Thanks, Benjamin. "SSH-ing into local host" is Greek to me at the moment. But as I say so was Vim a couple years ago. Perhaps I'll consider it down the road. A main use of the iPad for me will be simply reading and annotating pdfs. Writing would be another one if I could get Vim running on it. And I can't imagine Vim without my plugins and .vimrc configuration.
>
> The Android options described by Jeroen, especially the one that allows a fully-functioning Vim, is appealing.
>
> Couple of questions: Do Android tablets have a file system? [Or is that what would be provided by Jeroen's third option, installing a Debian kit?] Is iOS still a version of Uniix?
>
You can read and richly annotate PDF files under iOS using GoodReader

--
David

--
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: Vim on the iPad

On Dec 30, 2012, at 5:37 PM, Benjamin Klein wrote:

> Eric: Yes, this seems to be about the only practical method (short of jailbreaking) by which we currently can use Vim on an iPad: an external keyboard for input and a remote server (something other than your actual local filesystem) for the actual edited files.
>
> If you are willing to jailbreak your device, though (and this *is* a bit of a techie-ish thing to do, although I can say from my experience that some of the more popular tools for this are becoming quite usable for non-hacker-type users lately), a reasonable-sounding approach would be to do something like what I now see David Sanson suggested way back in September — use something like Prompt to ssh into localhost and use whatever vim is available there. I guess a downside to that approach would be that you don't necessarily have a terribly-complete vim built in, but at that point you would be in a position to compile a flavor of your own choosing, with all of the generally-required dependencies. I have never yet had occasion to do this myself do perhaps I should cease to advise you on how best to do it, though. :}
>
> The last place of all to check in my opinion would be the iOS app. For me anything short of a standard filesystem would simply be too clumsy to work with, but worse than that, as of Nov. 14 this year it seems that the iOS app does not even have Dropbox support, and the only mentioned means of getting to your files is through iTunes File Sharing.
>
> So to summarize my rambling here:
>
> 1. There isn't yet a practical way of using standard "vim with filesystem" on iOS *without either jailbreaking or ssh-ing into a remote server.* (If there's anyone on the list who knows of something available or being developed to answer this problem, please point this out to me.)
>
> 2. The provided iOS keyboard is no good for Vim, so you should use an external keyboard of one form or another for maximum vimmability (whether a keyboard case or an Apple wireless keyboard).

Thanks, Benjamin. "SSH-ing into local host" is Greek to me at the moment. But as I say so was Vim a couple years ago. Perhaps I'll consider it down the road. A main use of the iPad for me will be simply reading and annotating pdfs. Writing would be another one if I could get Vim running on it. And I can't imagine Vim without my plugins and .vimrc configuration.

The Android options described by Jeroen, especially the one that allows a fully-functioning Vim, is appealing.

Couple of questions: Do Android tablets have a file system? [Or is that what would be provided by Jeroen's third option, installing a Debian kit?] Is iOS still a version of Uniix?

Sincerely,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net

"Imagining the other is a powerful antidote to fanaticism and hatred."

- Amos Oz

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

displaying unicode control sequences

Hi,

I am editing a document that contains the bidi control sequences LRE
(unicode 202a) and PDF (unicode 202c). These characters are displayed
with their unicode value in angle brackets, like this: <202a>. As a
result, the line breaking (among other things) is wrong. This happens
both in the gui (gtk2) and in the terminal, despite the fact that the
font I am using appears to have glyphs for these characters. So my
question is, is it possible to cause vim to display the actual glyphs,
instead of the unicode value?

Thank you,
Moshe

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

Sunday, December 30, 2012

Re: Reload Buffer

Using $MYVIMRC is definitely a smart move. I'm not sure why the function has to be silent though. I'm also not sure why the autocmd is nested. Don't we only want it to call the function once?

The "!" after autocmd fixes the problem I was having though. Every time I :source vimrc, it re-added the autocmd, so when saved there were 2 autocmds doing the same thing, then 4, then 8, etc.

I love the key map to edit the vimrc, beautiful! The key map to sourcing the vimrc however leads to problems mentioned above, like when you remove a map or an autocmd. I think calling a function from a keymap is much more useful.

Also, I was wrong au! does not remove all autocommands, so using Gary's suggestion of putting them in groups I think is best (or using au! to define them). Also comclear is causing problems. Here's where I'm at within the function for the moment:
set all&
" comclear
abclear
mapclear
xmapclear
smapclear
mapclear!
lmapclear
so $MYVIMRC
set filetype=vim

Thanks

--
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: Vim on the iPad

On Dec 30, 2012, at 3:40 PM, Chris Schneider <chris@christopher-schneider.com> wrote:

> Vim is usable on a remote server with my ipad & external keyboard.
>
> I use `prompt` to ssh up to a remote server I own and then just attach to tmux from there. Specifically I use a logitech ultrathin keyboard case. It works well enough, but there's no explicit esc key, so you need to get used to using ctrl-[ instead. Not that big of a deal if you do it often enough.

Eric: Yes, this seems to be about the only practical method (short of jailbreaking) by which we currently can use Vim on an iPad: an external keyboard for input and a remote server (something other than your actual local filesystem) for the actual edited files.

If you are willing to jailbreak your device, though (and this *is* a bit of a techie-ish thing to do, although I can say from my experience that some of the more popular tools for this are becoming quite usable for non-hacker-type users lately), a reasonable-sounding approach would be to do something like what I now see David Sanson suggested way back in September — use something like Prompt to ssh into localhost and use whatever vim is available there. I guess a downside to that approach would be that you don't necessarily have a terribly-complete vim built in, but at that point you would be in a position to compile a flavor of your own choosing, with all of the generally-required dependencies. I have never yet had occasion to do this myself do perhaps I should cease to advise you on how best to do it, though. :}

The last place of all to check in my opinion would be the iOS app. For me anything short of a standard filesystem would simply be too clumsy to work with, but worse than that, as of Nov. 14 this year it seems that the iOS app does not even have Dropbox support, and the only mentioned means of getting to your files is through iTunes File Sharing.

So to summarize my rambling here:

1. There isn't yet a practical way of using standard "vim with filesystem" on iOS *without either jailbreaking or ssh-ing into a remote server.* (If there's anyone on the list who knows of something available or being developed to answer this problem, please point this out to me.)

2. The provided iOS keyboard is no good for Vim, so you should use an external keyboard of one form or another for maximum vimmability (whether a keyboard case or an Apple wireless keyboard).

--
b

Sent from my iPhone

--
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: Vim on the iPad


On Dec 30, 2012, at 3:40 PM, Chris Schneider wrote:

Vim is usable on a remote server with my ipad & external keyboard.

I use `prompt` to ssh up to a remote server I own and then just attach to tmux from there.  Specifically I use a logitech ultrathin keyboard case.  It works well enough, but there's no explicit esc key, so you need to get used to using ctrl-[ instead.  Not that big of a deal if you do it often enough.

Thanks, Chris. The earlier discussion produced a link to a detailed account of this option. It was what I was referring to when I said the options suggested were pretty complicated for me. I use Vim for plain old-fashioned writing, not coding, and needed a lot of help initially in learning how to work with Vim and getting it to work for me. 

My naivete will probably be on display in this question, but I'm curious what operating system you're in when you're on the server. 

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
eeweir@bellsouth.net

"Uncertainty is an uncomfortable position, 
but certainty is an absurd one."
 
- Voltaire

Re: Vim on the iPad

Vim is usable on a remote server with my ipad & external keyboard.

I use `prompt` to ssh up to a remote server I own and then just attach to tmux from there.  Specifically I use a logitech ultrathin keyboard case.  It works well enough, but there's no explicit esc key, so you need to get used to using ctrl-[ instead.  Not that big of a deal if you do it often enough.



On Sun, Dec 30, 2012 at 12:33 PM, Jeroen Budts <jeroen@lightyear.be> wrote:
On 12/30/2012 07:26 PM, Eric Weir wrote:
>
> I'm likely to purchase an iPad soon and I'm wondering if there have been
> any developments since the discussion here back in September.
> <http://groups.google.com/group/vim_use/browse_frm/month/2012-09> At
> that time absence of the escape and control keys, lack of a file system,
> and getting files to and from the iPad were the main obstacles.
>
> There were work-arounds for most of them, but most of them, especially
> those addressing the lack of a file system, were complicated and
> over-the-head of this non-techie user. But that was true of Vim itself
> when I first contemplated giving it a try, and now whether there's a way
> to get it working on an iPad is a consideration in thinking about
> purchasing an iPad.
>
> So I thought I'd check to see if the situation has changed since
> September.

I have no idea about the ipad, but I do have some experience in running
Vim on a cheap Android tablet.

For Android there are at least 3 methods:
* vimtouch: which is a touch-optimized version of vim, but restricted by
the normal android rules (no access to most files etc). For me
personally that is rahter useless.
* Terminal IDE: This is a lightweight Unix environment for Android which
includes a fully functional vim.
* Debian Kit: this allows you to install a full (terminal only) Debian
(or Ubuntu) on your Android, which runs together with Android. I really
like this, as it allows you to install most commandline applications
using apt-get, including a full vim (with Python, Ruby) etc, with your
own config, plugins etc.

Considering the keyboard: if you install the 'hackers keyboard' (free
from Google Play) you get a full qwerty keyboard which includes keys
like control and escape.

Not sure if this helps...

Jeroen

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

--
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: Vim on the iPad

On 12/30/2012 07:26 PM, Eric Weir wrote:
>
> I'm likely to purchase an iPad soon and I'm wondering if there have been
> any developments since the discussion here back in September.
> <http://groups.google.com/group/vim_use/browse_frm/month/2012-09> At
> that time absence of the escape and control keys, lack of a file system,
> and getting files to and from the iPad were the main obstacles.
>
> There were work-arounds for most of them, but most of them, especially
> those addressing the lack of a file system, were complicated and
> over-the-head of this non-techie user. But that was true of Vim itself
> when I first contemplated giving it a try, and now whether there's a way
> to get it working on an iPad is a consideration in thinking about
> purchasing an iPad.
>
> So I thought I'd check to see if the situation has changed since
> September.

I have no idea about the ipad, but I do have some experience in running
Vim on a cheap Android tablet.

For Android there are at least 3 methods:
* vimtouch: which is a touch-optimized version of vim, but restricted by
the normal android rules (no access to most files etc). For me
personally that is rahter useless.
* Terminal IDE: This is a lightweight Unix environment for Android which
includes a fully functional vim.
* Debian Kit: this allows you to install a full (terminal only) Debian
(or Ubuntu) on your Android, which runs together with Android. I really
like this, as it allows you to install most commandline applications
using apt-get, including a full vim (with Python, Ruby) etc, with your
own config, plugins etc.

Considering the keyboard: if you install the 'hackers keyboard' (free
from Google Play) you get a full qwerty keyboard which includes keys
like control and escape.

Not sure if this helps...

Jeroen

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

Vim on the iPad


I'm likely to purchase an iPad soon and I'm wondering if there have been any developments since the discussion here back in September. <http://groups.google.com/group/vim_use/browse_frm/month/2012-09> At that time absence of the escape and control keys, lack of a file system, and getting files to and from the iPad were the main obstacles. 

There were work-arounds for most of them, but most of them, especially those addressing the lack of a file system, were complicated and over-the-head of this non-techie user. But that was true of Vim itself when I first contemplated giving it a try, and now whether there's a way to get it working on an iPad is a consideration in thinking about purchasing an iPad. 

So I thought I'd check to see if the situation has changed since September.  

Thanks,
------------------------------------------------------------------------------------------
Eric Weir

"The invincible shield of caring
Is a weapon sent from the sky 
against being dead." 

- Tao Te Ching 67







Saturday, December 29, 2012

Re: matchpairs and Unicode

diff --git a/src/misc1.c b/src/misc1.c
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2288,14 +2288,18 @@
*/
if (p_sm && (State & INSERT)
&& msg_silent == 0
-#ifdef FEAT_MBYTE
- && charlen == 1
-#endif
#ifdef FEAT_INS_EXPAND
&& !ins_compl_active()
#endif
)
- showmatch(c);
+ {
+#ifdef FEAT_MBYTE
+ if (has_mbyte)
+ showmatch(mb_ptr2char(buf));
+ else
+#endif
+ showmatch(c);
+ }

#ifdef FEAT_RIGHTLEFT
if (!p_ri || (State & REPLACE_FLAG))
diff --git a/src/option.c b/src/option.c
--- a/src/option.c
+++ b/src/option.c
@@ -6149,16 +6149,46 @@
/* 'matchpairs' */
else if (gvarp == &p_mps)
{
- /* Check for "x:y,x:y" */
- for (p = *varp; *p != NUL; p += 4)
- {
- if (p[1] != ':' || p[2] == NUL || (p[3] != NUL && p[3] != ','))
- {
- errmsg = e_invarg;
- break;
- }
- if (p[3] == NUL)
- break;
+#ifdef FEAT_MBYTE
+ if (has_mbyte)
+ {
+ p = *varp;
+ while (*p)
+ {
+ int x2,x3 = -1;
+
+ if (*p != NUL)
+ p += mb_ptr2len(p);
+ if (*p != NUL)
+ x2 = *p++;
+ if (*p != NUL)
+ {
+ x3 = mb_ptr2char(p);
+ p += mb_ptr2len(p);
+ }
+ if (x2 != ':' || x2 == -1 || x3 == -1)
+ {
+ errmsg = e_invarg;
+ break;
+ }
+ if (*p == ',')
+ p++;
+ }
+ }
+ else
+#endif
+ {
+ /* Check for "x:y,x:y" */
+ for (p = *varp; *p != NUL; p += 4)
+ {
+ if (p[1] != ':' || p[2] == NUL || (p[3] != NUL && p[3] != ','))
+ {
+ errmsg = e_invarg;
+ break;
+ }
+ if (p[3] == NUL)
+ break;
+ }
}
}

@@ -11453,3 +11483,105 @@
{
return curbuf->b_p_sts < 0 ? get_sw_value() : curbuf->b_p_sts;
}
+
+/*
+ * Check matchpairs option for given chars, returns findc or NULL,
+ * if not found in 'mps' setting
+ */
+
+ void
+find_mps_values(initc, findc, backwards, switchit)
+ int *initc;
+ int *findc;
+ int *backwards;
+ int switchit;
+
+{
+ char_u *ptr;
+
+#ifdef FEAT_MBYTE
+ ptr = curbuf->b_p_mps;
+ while (*ptr)
+ {
+ if (*findc)
+ return;
+ if (has_mbyte)
+ {
+ if (*ptr == ',')
+ ptr++;
+ if (mb_ptr2char(ptr) == *initc)
+ {
+ if (switchit)
+ {
+ (*findc) = (*initc);
+ (*initc) = mb_ptr2char(ptr + mb_ptr2len(ptr) + 1);
+ (*backwards) = TRUE;
+ }
+ else
+ {
+ (*findc) = mb_ptr2char(ptr + mb_ptr2len(ptr) + 1);
+ (*backwards) = FALSE;
+ }
+ return;
+ }
+ ptr += mb_ptr2len(ptr) + 1;
+ if (mb_ptr2char(ptr) == *initc)
+ {
+ if (switchit)
+ {
+ (*findc) = (*initc);
+ (*initc) = mb_ptr2char(ptr - mb_ptr2len(ptr) - 1);
+ (*backwards) = FALSE;
+ }
+ else
+ {
+ (*findc) = mb_ptr2char(ptr - mb_ptr2len(ptr) - 1);
+ (*backwards) = TRUE;
+ }
+ return;
+ }
+ ptr += mb_ptr2len(ptr);
+ }
+ else
+#endif
+ {
+ if (*ptr == ',')
+ ptr++;
+ if (*ptr == *initc)
+ {
+ if (switchit)
+ {
+ (*backwards) = TRUE;
+ (*findc) = *initc;
+ (*initc) = ptr[2];
+ }
+ else
+ {
+ (*backwards) = FALSE;
+ (*findc) = ptr[2];
+ }
+ return;
+ }
+ ptr += 2;
+ if (*ptr == *initc)
+ {
+ if (switchit)
+ {
+ (*backwards) = FALSE;
+ (*findc) = *initc;
+ (*initc) = ptr[-2];
+ }
+ else
+ {
+ (*backwards) = TRUE;
+ (*findc) = ptr[-2];
+ }
+ return;
+ }
+ if (!*++ptr)
+ break;
+ ptr++;
+ }
+ }
+ return;
+}
diff --git a/src/proto/option.pro b/src/proto/option.pro
--- a/src/proto/option.pro
+++ b/src/proto/option.pro
@@ -59,4 +59,5 @@
int check_ff_value __ARGS((char_u *p));
long get_sw_value __ARGS((void));
long get_sts_value __ARGS((void));
+void find_mps_values __ARGS((int *initc, int *findc, int *backwards, int switchit));
/* vim: set ft=c : */
diff --git a/src/search.c b/src/search.c
--- a/src/search.c
+++ b/src/search.c
@@ -1786,28 +1786,8 @@
}
else if (initc != '#' && initc != NUL)
{
- /* 'matchpairs' is "x:y,x:y" */
- for (ptr = curbuf->b_p_mps; *ptr; ptr += 2)
- {
- if (*ptr == initc)
- {
- findc = initc;
- initc = ptr[2];
- backwards = TRUE;
- break;
- }
- ptr += 2;
- if (*ptr == initc)
- {
- findc = initc;
- initc = ptr[-2];
- backwards = FALSE;
- break;
- }
- if (ptr[1] != ',')
- break;
- }
- if (!findc) /* invalid initc! */
+ find_mps_values(&initc, &findc, &backwards, TRUE);
+ if (!findc)
return NULL;
}
/*
@@ -1887,27 +1867,14 @@
for (;;)
{
initc = linep[pos.col];
+#ifdef FEAT_MBYTE
+ if (has_mbyte)
+ initc = mb_ptr2char(linep + pos.col);
+#endif
if (initc == NUL)
break;

- for (ptr = curbuf->b_p_mps; *ptr; ++ptr)
- {
- if (*ptr == initc)
- {
- findc = ptr[2];
- backwards = FALSE;
- break;
- }
- ptr += 2;
- if (*ptr == initc)
- {
- findc = ptr[-2];
- backwards = TRUE;
- break;
- }
- if (!*++ptr)
- break;
- }
+ find_mps_values(&initc, &findc, &backwards, FALSE);
if (findc)
break;
#ifdef FEAT_MBYTE
@@ -2350,7 +2317,11 @@
/* Check for match outside of quotes, and inside of
* quotes when the start is also inside of quotes. */
if ((!inquote || start_in_quotes == TRUE)
- && (c == initc || c == findc))
+ && (c == initc || c == findc
+#ifdef FEAT_MBYTE
+ || mb_ptr2char(linep + pos.col) == findc)
+#endif
+ )
{
int col, bslcnt = 0;

@@ -2469,20 +2440,44 @@
* Only show match for chars in the 'matchpairs' option.
*/
/* 'matchpairs' is "x:y,x:y" */
- for (p = curbuf->b_p_mps; *p != NUL; p += 2)
+ for (p = curbuf->b_p_mps; *p != NUL;
+#ifdef FEAT_MBYTE
+ p += mb_ptr2len(p) + 1
+#else
+ p += 2
+#endif
+ )
{
+ if ((*p == c
+#ifdef FEAT_MBYTE
+ || c == mb_ptr2char(p))
+#endif
#ifdef FEAT_RIGHTLEFT
- if (*p == c && (curwin->w_p_rl ^ p_ri))
+ && (curwin->w_p_rl ^ p_ri)
+#endif
+ )
break;
+#ifdef FEAT_MBYTE
+ if (has_mbyte)
+ p += mb_ptr2len(p) + 1;
+ else
#endif
- p += 2;
- if (*p == c
+ p += 2;
+ if ((*p == c
+#ifdef FEAT_MBYTE
+ || mb_ptr2char(p) == c
+#endif
+ )
#ifdef FEAT_RIGHTLEFT
&& !(curwin->w_p_rl ^ p_ri)
#endif
)
break;
- if (p[1] != ',')
+ if (
+#ifdef FEAT_MBYTE
+ p[mb_ptr2len(p)] != ',' &&
+#endif
+ p[1] != ',')
return;
}

diff --git a/src/testdir/test69.in b/src/testdir/test69.in
--- a/src/testdir/test69.in
+++ b/src/testdir/test69.in
@@ -1,4 +1,5 @@
Test for multi-byte text formatting.
+Also test, that 'mps' with multibyte chars works.

STARTTEST
:so mbyte.vim
@@ -134,6 +135,15 @@
}

STARTTEST
+/^{/+1
+:set mps+=u2018:u2019
+d%
+ENDTEST
+
+{
+‘ two three ’ four
+}
+STARTTEST
:g/^STARTTEST/.,/^ENDTEST/d
:1;/^Results/,$wq! test.out
ENDTEST
diff --git a/src/testdir/test69.ok b/src/testdir/test69.ok
--- a/src/testdir/test69.ok
+++ b/src/testdir/test69.ok
@@ -140,3 +140,7 @@
a
}

+
+{
+ four
+}
Hi

On Do, 27 Dez 2012, KamilS wrote:

> > Thanks. If I have some spare time, I'll look into enhancing the
> > 'matchpairs' option.
>
> This is fantastic, thanks a lot!

Bram,
here is a patch to make the matchpairs setting multibyte aware.

regards,
Christian
--
Bei ARD und ZDF reihern Sie in den 1. Sitzen.

--
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: textobj-lastpat plugin: text object not capturing last character of the match?

> Is your 'selection' option set to 'exclusive'? (This is the default if you
have "behave mswin" in your .vimrc).
> This option causes problems in a *lot* of plugins. Try setting 'selection'
> to "inclusive".
> If the problem goes away, alert the plugin maintainer.

Yep, that was it. Many thanks! I will try to get in touch with the
maintainer (Kana Natsuno).




--
View this message in context: http://vim.1045645.n5.nabble.com/textobj-lastpat-plugin-text-object-not-capturing-last-character-of-the-match-tp5712850p5712864.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
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: Capture output of command line completion in script

Christian Brabandt wrote:

> On Mi, 26 Dez 2012, Bram Moolenaar wrote:
>
> >
> > Christian Brabandt wrote:
> >
> > > On Di, 25 Dez 2012, Luca Pette wrote:
> > >
> > > > On Saturday, 26 March 2011 00:10:52 UTC+1, Rickard Lindberg wrote:
> > > > > Hi,
> > > > >
> > > > >
> > > > >
> > > > > If I type CTRL-D on the command line it will show a list of possible
> > > > >
> > > > > matches (:e foo<CTRL-D>).
> > > > >
> > > > >
> > > > >
> > > > > Is it possible to capture this result list in a vim script?
> > > >
> > > > I was searching for this too. Any new suggestion? It would be
> > > > awesome if it would be possible to capture the output of command
> > > > line completion with vimscript/
> > >
> > > Bram,
> > > here is a patch, that enables redirecting when using <ctrl-d> for
> > > commandline completion:
> >
> > Hmm, I wonder why this request was made. Wouldn't it be more useful to
> > add a Vim script function to access the completions?
>
> Right. But shouldn't :redir also be useable to capture all available
> completions? We can still think about adding another completion
> vimscript function for returning all matches.

That depends. If someone uses :redir to capture the result of a
command, then the list of completions just gets in the way. Generally,
redirection is to capture the output of the command, not what was done
to edit it. We could perhaps add a flag to :redir to also capture
everything that was typed and displayed, but that's getting complicated.
With a Vim funtion it should be a lot easier and straightforward to get
what you want.

--
hundred-and-one symptoms of being an internet addict:
206. You religiously respond immediately to e-mail, while ignoring
your growing pile of snail mail.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
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: vim: vim plugin rate system

Well - maybe often - but there are some well known cases where
malicious downvotings have taken place - so just don't trust them.

One famous example is vim-addon-manager:
http://www.vim.org/scripts/script.php?script_id=2905
In the past it has had a good voting - and suddenly voting dropped.

I could fetch the details from the dabase - I'm too lazy this time.

I can digg up old posting why I think the voting is bad:
It doesn't provide feedback to the programmer about how to improve a
plugin. It just leads to bad feelings everywhere.

Never ever trust votings anywhere on the internet unless you know
votings were written by a friend.

Marc Weber

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

vim: vim plugin rate system

hi guys:
I had a (stupid) questions for a long time not ask yet.
when I browse the vim plugin sites, I always took a quite look at the
current "rate"/"download" counters.
my guess is the ratio mostly reflect how "good"(I know, there is no
simple standard, don't want to argument that part) that plugin is and
how people like it.

say, this "script karma" line:

* script karma * Rating*1290/366*, Downloaded by 7451
* Comments, bugs, improvements * Vim wiki
<http://vim.wikia.com/wiki/Script:2975>



and, consider these rate options:

*rate this script*Life ChangingHelpfulUnfulfilling

so in average, 7451 persons rate it as "3.52459", which is between
"helpful"(3) and life changing(4)?


in contrast, rate for this script:
*script karma * Rating*3/3*, Downloaded by 380
* Comments, bugs, improvements * Vim wiki
<http://vim.wikia.com/wiki/Script:2355>


so only 3 persons rate it , in average to "1", means "helpful"?
"unfulfilling"?

so I'm a bit confused here...

--
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: spam

Gerald Klein wrote:

> Yea that's a feather in your cap, your a viable human being that is
> contributing to society in a constructive and useful way. I am glad you
> feel good about yourself and no longer feel that the world has treated you
> unfairly, forcing you to invade someones privacy with your own self serving
> issues. Hooray for you.
>
> On Thu, Dec 27, 2012 at 6:37 AM, Dan Astle <maximmagazine10@gmail.com>wrote:
>
> > Your just as insignificant as me except I can do porn and your not so
> > usefull in that field..

Please do not feed the trolls!

Once in a while you will see messages that are unrelated to Vim,
sometimes intentionally offensive. Either ignore them or reply directly
to the sender, do NOT copy the list.

In case of repeated trolling contact a moderator, if they haven't taken
action already. In this case John already looked into it.

--
hundred-and-one symptoms of being an internet addict:
204. You're being audited because you mailed your tax return to the IRC.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
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: textobj-lastpat plugin: text object not capturing last character of the match?

Hi zpkarol!

On Fr, 28 Dez 2012, zpkarol wrote:

> Hi guys, does anyone use textobj-lastpat plugin?
>
> http://www.vim.org/scripts/script.php?script_id=2355
>
> I tried it and it seems to have a bug: the text object omits the last
> character in a match.
> For example, if I start with the following text
>
> foo bar baz
>
> Then I do
>
> /bar<CR>
>
> The word "bar" is highlighted and the cursor is at first "b" character (as
> expected), but when I try, say
>
> da/
>
> I end up with this
>
> foo r baz
>
> I would expect the following result:
>
> foo baz
>
> Is this behavior correct? And if so, how can I achieve what I want, i.e.
> have a text object that encompasses the whole match?

recent Vim version have something like this almost build in. Use dgn to
delete the next match.

regards,
Christian
--
Computerviren verbreiten sich prinzipiell über >>garantiert unverseuchte<<
Disks.

--
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: Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

Hi Ben,

On Fri, 28 Dec 2012 16:22:36 -0800 (PST)
Ben Fritz <fritzophrenic@gmail.com> wrote:

> On Thursday, December 27, 2012 1:41:11 AM UTC-6, Shlomi Fish wrote:
> >
> > In any case, while the wiki is a useful resource,
> > as some people told me on IRC:
> >
> >
> >
> > <<<
> > the vim wiki is a mess, the help is too hard to navigate for
> > newcomers
> > >>>
> >
>
> It's a wiki. I think fixing the wiki would be easier than starting over from
> scratch. For beginners, there is even a "getting started" section with some
> decent starter tips. It's easy enough for any community-edited page to become
> "a mess", all it takes is a lot of "drive by editing" and not enough
> long-term maintainers.

Right, and that's why I sometimes prefer a centrally managed static or mostly
static HTML site, which I have control of, and which I can edit locally using
Vim (or $EDITOR_OF_CHOICE), a nice terminal emulator (I'm using konsole) and
shell (Bash in my case), and a nice version control system. Add to that that
the MediaWiki syntax is horrible, and that the Wikimedia people have a separate
mailing list for ranting about the horrible code and design of its parser.

There are other problems with Wikis such as rampant spam, but Wikia appears to
handle them pretty well so far (touch wood).

In any case, adding a common navigation menu is easier in Jekyll than it would
be in a Wikia MediaWiki instance that I don't control, but I guess I can
contribute to http://vim.wikia.com/ as well.

Also see:
http://www.shlomifish.org/humour/fortunes/show.cgi?id=perl-petdance-thousand-flowers .


>
> >
> > Another problem with the wiki is that being hosted on Wikia, there are some
> > intrusive ads by default.
> >
>
> I can't argue with that. But most of the time the ads are normal easily
> ignored banner ads. And you can create an account and log in to hide most of
> those.

True, but many (most?) people who stumble upon the Wiki will run into the ads
(assuming they are not using AdBlock Plus or whatever), and it leaves a bad
taste in the mouth.

Regards,

Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/

An apple a day keeps the doctor away.
Two apples a day will keep two doctors away.
— one of Shlomi Fish's relatives

Please reply to list if it's a mailing list post - http://shlom.in/reply .

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

Friday, December 28, 2012

Re: regex needed

Thanks, Jack, this works too.
Yes, I must check Friedl's book!
Thanks again!


Am Samstag, 29. Dezember 2012 06:43:09 UTC+1 schrieb Jack Gates:
> On Fri, Dec 28, 2012 at 11:28 PM, MacVlad <vlad.ghitulescu@gmx.de> wrote:
>
> > Hello!
>
> >
>
> >
>
> > I have a text-file that looks like this:
>
> >
>
> > ---
>
> > R UNZK904326 57075
>
> > P UNZK904385 57127
>
> > P UNZK904328 57053
>
> > P ULZK908062 57101
>
> > P UNZK904322 56498
>
> > R UNZK904386 57108
>
> > P UNZK904288 56383
>
> > P UNZK904397 56383
>
> > P UNZK904444 56878
>
> > R UNZK904465 57253
>
> > R UNEK919821 57025
>
> > R UNEK919745 57259
>
> > R UNZK904527 55769
>
> > R UNEK919814 55944
>
> > R ULZK908272 57376
>
> > R UNZK904471 56355
>
> > R ULZK908371 55393
>
> > R UNZK904574 56646
>
> > R UNEK919701 56974
>
> > R UNZK904565 57598
>
> > R UNZK904603 57649
>
> > R ULZK908326 57471
>
> > R UNZK904588 57610
>
> > R ULZK908324 57514
>
> > R ULZK908307 57614
>
> > P ULZK908369 57149
>
> > R UNZK904603 57649
>
> > R UNEK919933 57643
>
> > P ULEK935569 56373
>
> > P ULEK935571 57504
>
> > P ULZK908295 56122
>
> > P ULZK908484 57149
>
> > P UNEK919781 56816
>
> > P UNEK919785 56747
>
> > P UNEK919959 56615
>
> > P ULEK935884 56951
>
> > P ULEK935886 56845
>
> > P UNZK904559 57572
>
> > R ULEK935659 57784
>
> > R ULEK935727 56203
>
> > R ULEK935729 56474
>
> > R ULEK935860 57871
>
> > R ULEK935938 57946
>
> > R ULEK935866 57885
>
> > R ULZK908389 57584
>
> > R ULZK908389 57743
>
> > R ULZK908397 57707
>
> > R ULZK908401 57743
>
> > R ULZK908477 57647
>
> > R ULZK908505 57853
>
> > R ULZK908508 57672
>
> > R UNZK904601 57598
>
> > R UNZK904597 56581
>
> > R ULZK908545 57897
>
> > R ULZK908270 57469
>
> > R UNZK904619 57688
>
> > V ULZK908382 57724
>
> > V ULZK908431 57724
>
> > R UNZK904746 56581
>
> > R ULZK908686 57754
>
> > R ULEK935997 56474
>
> > R ULZK908690 57975
>
> > R ULEK936068 57999
>
> > R ULZK908692 57208
>
> > R ULEK935991 57956
>
> > R ULZK908696 57955
>
> > R ULEK936078 57983
>
> > R UNZK904463 55662
>
> > R ULEK936070 56010
>
> > P ULEK936122 56478
>
> > R ULZK908377 57623
>
> > P ULEK936126 57671
>
> > P ULEK936136 56784
>
> > P ULEK936148 57102
>
> > R UNEK920127 57622
>
> > R UNZK904680 57294
>
> > P ULEK936158 56303
>
> > R ULEK935862 57800
>
> > R ULZK908515 57636
>
> > R ULEK935862 58097
>
> > R ULEK936166 57800
>
> > R ULZK908377 57623
>
> > ---
>
> >
>
> > I want to make the following changes:
>
> >
>
> > 1.- Every time when a "R UN" in column 1 occurs, replace then the 5 digits ##### on column 14 (like 57075 in the first row) with "SM##### SLA KSR-Netz SST" (that would change the first row from "R UNZK904326 57075" to "R UNZK904326 SM57075 SLA KSR-Netz SST");
>
> >
>
> > 2.- For every row with "R UL" in column 1, replace then the 5 digits ##### on column 14 (like 57376 in the row 15) with "SM##### SLA KSR-Lief SST" (that would change the row 15 from "R ULZK908272 57376" to "R ULZK908272 SM57376 SLA KSR-Lief SST");
>
> >
>
> > 3.- Leave the others rows unchanged.
>
> >
>
> > Could you please help me with a regex in order to do this in VIM? Thank you!
>
>
>
> Do this on the first one:
>
>
>
> :%s/\(R UN\)\([A-Z]\{2}\d\{6}[ ]\)\(\d\{5}\)/\1\2SM\3 SLA KSR-Netz SST/g
>
>
>
> Alter the pattern to do the same thing on the second one.
>
>
>
> Check out Mastering Regular Expressions Third Edition by Jeffrey E. F. Friedl

--
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: regex needed

Thanks, sunja, it works!


Am Samstag, 29. Dezember 2012 06:00:51 UTC+1 schrieb sunjia:
> 1.- Every time when a "R UN" in column 1 occurs, replace then the 5 digits ##### on column 14 (like 57075 in the first row) with "SM##### SLA KSR-Netz SST" (that would change the first row from "R UNZK904326 57075" to "R UNZK904326 SM57075 SLA KSR-Netz SST");
>
>
>
> [sunjia:]
> :g/^R UN/s/\d\{5}$/SM& SLA KSR-Netz SST/
>
> 2.- For every row with "R UL" in column 1, replace then the 5 digits ##### on column 14 (like 57376 in the row 15) with "SM##### SLA KSR-Lief SST" (that would change the row 15 from "R ULZK908272 57376" to "R ULZK908272 SM57376 SLA KSR-Lief SST");
>
>
>
>
> [sunjia:]
> :g/^R UL/s/\d\{5}$/SM& SLA KSR-Lief SST/
>
>
>
>
> other lines will not be changed.
>
>
>
> 2012/12/29 MacVlad <vlad.gh...@gmx.de>
>
> Hello!
>
>
>
>
>
> I have a text-file that looks like this:
>
>
>
> ---
>
> R UNZK904326 57075
>
> P UNZK904385 57127
>
> P UNZK904328 57053
>
> P ULZK908062 57101
>
> P UNZK904322 56498
>
> R UNZK904386 57108
>
> P UNZK904288 56383
>
> P UNZK904397 56383
>
> P UNZK904444 56878
>
> R UNZK904465 57253
>
> R UNEK919821 57025
>
> R UNEK919745 57259
>
> R UNZK904527 55769
>
> R UNEK919814 55944
>
> R ULZK908272 57376
>
> R UNZK904471 56355
>
> R ULZK908371 55393
>
> R UNZK904574 56646
>
> R UNEK919701 56974
>
> R UNZK904565 57598
>
> R UNZK904603 57649
>
> R ULZK908326 57471
>
> R UNZK904588 57610
>
> R ULZK908324 57514
>
> R ULZK908307 57614
>
> P ULZK908369 57149
>
> R UNZK904603 57649
>
> R UNEK919933 57643
>
> P ULEK935569 56373
>
> P ULEK935571 57504
>
> P ULZK908295 56122
>
> P ULZK908484 57149
>
> P UNEK919781 56816
>
> P UNEK919785 56747
>
> P UNEK919959 56615
>
> P ULEK935884 56951
>
> P ULEK935886 56845
>
> P UNZK904559 57572
>
> R ULEK935659 57784
>
> R ULEK935727 56203
>
> R ULEK935729 56474
>
> R ULEK935860 57871
>
> R ULEK935938 57946
>
> R ULEK935866 57885
>
> R ULZK908389 57584
>
> R ULZK908389 57743
>
> R ULZK908397 57707
>
> R ULZK908401 57743
>
> R ULZK908477 57647
>
> R ULZK908505 57853
>
> R ULZK908508 57672
>
> R UNZK904601 57598
>
> R UNZK904597 56581
>
> R ULZK908545 57897
>
> R ULZK908270 57469
>
> R UNZK904619 57688
>
> V ULZK908382 57724
>
> V ULZK908431 57724
>
> R UNZK904746 56581
>
> R ULZK908686 57754
>
> R ULEK935997 56474
>
> R ULZK908690 57975
>
> R ULEK936068 57999
>
> R ULZK908692 57208
>
> R ULEK935991 57956
>
> R ULZK908696 57955
>
> R ULEK936078 57983
>
> R UNZK904463 55662
>
> R ULEK936070 56010
>
> P ULEK936122 56478
>
> R ULZK908377 57623
>
> P ULEK936126 57671
>
> P ULEK936136 56784
>
> P ULEK936148 57102
>
> R UNEK920127 57622
>
> R UNZK904680 57294
>
> P ULEK936158 56303
>
> R ULEK935862 57800
>
> R ULZK908515 57636
>
> R ULEK935862 58097
>
> R ULEK936166 57800
>
> R ULZK908377 57623
>
> ---
>
>
>
> I want to make the following changes:
>
>
>
> 1.- Every time when a "R UN" in column 1 occurs, replace then the 5 digits ##### on column 14 (like 57075 in the first row) with "SM##### SLA KSR-Netz SST" (that would change the first row from "R UNZK904326 57075" to "R UNZK904326 SM57075 SLA KSR-Netz SST");
>
>
>
>
> 2.- For every row with "R UL" in column 1, replace then the 5 digits ##### on column 14 (like 57376 in the row 15) with "SM##### SLA KSR-Lief SST" (that would change the row 15 from "R ULZK908272 57376" to "R ULZK908272 SM57376 SLA KSR-Lief SST");
>
>
>
>
> 3.- Leave the others rows unchanged.
>
>
>
> Could you please help me with a regex in order to do this in VIM? Thank you!
>
>
>
>
>
> Regards,
>
> Vlad Ghitulescu
>
>
>
> --
>
> 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

--
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: regex needed

On Fri, Dec 28, 2012 at 11:28 PM, MacVlad <vlad.ghitulescu@gmx.de> wrote:
> Hello!
>
>
> I have a text-file that looks like this:
>
> ---
> R UNZK904326 57075
> P UNZK904385 57127
> P UNZK904328 57053
> P ULZK908062 57101
> P UNZK904322 56498
> R UNZK904386 57108
> P UNZK904288 56383
> P UNZK904397 56383
> P UNZK904444 56878
> R UNZK904465 57253
> R UNEK919821 57025
> R UNEK919745 57259
> R UNZK904527 55769
> R UNEK919814 55944
> R ULZK908272 57376
> R UNZK904471 56355
> R ULZK908371 55393
> R UNZK904574 56646
> R UNEK919701 56974
> R UNZK904565 57598
> R UNZK904603 57649
> R ULZK908326 57471
> R UNZK904588 57610
> R ULZK908324 57514
> R ULZK908307 57614
> P ULZK908369 57149
> R UNZK904603 57649
> R UNEK919933 57643
> P ULEK935569 56373
> P ULEK935571 57504
> P ULZK908295 56122
> P ULZK908484 57149
> P UNEK919781 56816
> P UNEK919785 56747
> P UNEK919959 56615
> P ULEK935884 56951
> P ULEK935886 56845
> P UNZK904559 57572
> R ULEK935659 57784
> R ULEK935727 56203
> R ULEK935729 56474
> R ULEK935860 57871
> R ULEK935938 57946
> R ULEK935866 57885
> R ULZK908389 57584
> R ULZK908389 57743
> R ULZK908397 57707
> R ULZK908401 57743
> R ULZK908477 57647
> R ULZK908505 57853
> R ULZK908508 57672
> R UNZK904601 57598
> R UNZK904597 56581
> R ULZK908545 57897
> R ULZK908270 57469
> R UNZK904619 57688
> V ULZK908382 57724
> V ULZK908431 57724
> R UNZK904746 56581
> R ULZK908686 57754
> R ULEK935997 56474
> R ULZK908690 57975
> R ULEK936068 57999
> R ULZK908692 57208
> R ULEK935991 57956
> R ULZK908696 57955
> R ULEK936078 57983
> R UNZK904463 55662
> R ULEK936070 56010
> P ULEK936122 56478
> R ULZK908377 57623
> P ULEK936126 57671
> P ULEK936136 56784
> P ULEK936148 57102
> R UNEK920127 57622
> R UNZK904680 57294
> P ULEK936158 56303
> R ULEK935862 57800
> R ULZK908515 57636
> R ULEK935862 58097
> R ULEK936166 57800
> R ULZK908377 57623
> ---
>
> I want to make the following changes:
>
> 1.- Every time when a "R UN" in column 1 occurs, replace then the 5 digits ##### on column 14 (like 57075 in the first row) with "SM##### SLA KSR-Netz SST" (that would change the first row from "R UNZK904326 57075" to "R UNZK904326 SM57075 SLA KSR-Netz SST");
>
> 2.- For every row with "R UL" in column 1, replace then the 5 digits ##### on column 14 (like 57376 in the row 15) with "SM##### SLA KSR-Lief SST" (that would change the row 15 from "R ULZK908272 57376" to "R ULZK908272 SM57376 SLA KSR-Lief SST");
>
> 3.- Leave the others rows unchanged.
>
> Could you please help me with a regex in order to do this in VIM? Thank you!

Do this on the first one:

:%s/\(R UN\)\([A-Z]\{2}\d\{6}[ ]\)\(\d\{5}\)/\1\2SM\3 SLA KSR-Netz SST/g

Alter the pattern to do the same thing on the second one.

Check out Mastering Regular Expressions Third Edition by Jeffrey E. F. Friedl

--
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: regex needed

1.- Every time when a "R UN" in column 1 occurs, replace then the 5 digits ##### on column 14 (like 57075 in the first row) with "SM##### SLA KSR-Netz SST" (that would change the first row from "R UNZK904326 57075" to "R UNZK904326 SM57075 SLA KSR-Netz SST");

[sunjia:]
:g/^R UN/s/\d\{5}$/SM& SLA KSR-Netz SST/

2.- For every row with "R UL" in column 1, replace then the 5 digits ##### on column 14 (like 57376 in the row 15) with "SM##### SLA KSR-Lief SST" (that would change the row 15 from "R ULZK908272 57376" to "R ULZK908272 SM57376 SLA KSR-Lief SST");

[sunjia:]
:g/^R UL/s/\d\{5}$/SM& SLA KSR-Lief SST/

other lines will not be changed.


2012/12/29 MacVlad <vlad.ghitulescu@gmx.de>
Hello!


I have a text-file that looks like this:

---
R UNZK904326 57075
P UNZK904385 57127
P UNZK904328 57053
P ULZK908062 57101
P UNZK904322 56498
R UNZK904386 57108
P UNZK904288 56383
P UNZK904397 56383
P UNZK904444 56878
R UNZK904465 57253
R UNEK919821 57025
R UNEK919745 57259
R UNZK904527 55769
R UNEK919814 55944
R ULZK908272 57376
R UNZK904471 56355
R ULZK908371 55393
R UNZK904574 56646
R UNEK919701 56974
R UNZK904565 57598
R UNZK904603 57649
R ULZK908326 57471
R UNZK904588 57610
R ULZK908324 57514
R ULZK908307 57614
P ULZK908369 57149
R UNZK904603 57649
R UNEK919933 57643
P ULEK935569 56373
P ULEK935571 57504
P ULZK908295 56122
P ULZK908484 57149
P UNEK919781 56816
P UNEK919785 56747
P UNEK919959 56615
P ULEK935884 56951
P ULEK935886 56845
P UNZK904559 57572
R ULEK935659 57784
R ULEK935727 56203
R ULEK935729 56474
R ULEK935860 57871
R ULEK935938 57946
R ULEK935866 57885
R ULZK908389 57584
R ULZK908389 57743
R ULZK908397 57707
R ULZK908401 57743
R ULZK908477 57647
R ULZK908505 57853
R ULZK908508 57672
R UNZK904601 57598
R UNZK904597 56581
R ULZK908545 57897
R ULZK908270 57469
R UNZK904619 57688
V ULZK908382 57724
V ULZK908431 57724
R UNZK904746 56581
R ULZK908686 57754
R ULEK935997 56474
R ULZK908690 57975
R ULEK936068 57999
R ULZK908692 57208
R ULEK935991 57956
R ULZK908696 57955
R ULEK936078 57983
R UNZK904463 55662
R ULEK936070 56010
P ULEK936122 56478
R ULZK908377 57623
P ULEK936126 57671
P ULEK936136 56784
P ULEK936148 57102
R UNEK920127 57622
R UNZK904680 57294
P ULEK936158 56303
R ULEK935862 57800
R ULZK908515 57636
R ULEK935862 58097
R ULEK936166 57800
R ULZK908377 57623
---

I want to make the following changes:

1.- Every time when a "R UN" in column 1 occurs, replace then the 5 digits ##### on column 14 (like 57075 in the first row) with "SM##### SLA KSR-Netz SST" (that would change the first row from "R UNZK904326 57075" to "R UNZK904326 SM57075 SLA KSR-Netz SST");

2.- For every row with "R UL" in column 1, replace then the 5 digits ##### on column 14 (like 57376 in the row 15) with "SM##### SLA KSR-Lief SST" (that would change the row 15 from "R ULZK908272 57376" to "R ULZK908272 SM57376 SLA KSR-Lief SST");

3.- Leave the others rows unchanged.

Could you please help me with a regex in order to do this in VIM? Thank you!


Regards,
Vlad Ghitulescu

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

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

regex needed

Hello!


I have a text-file that looks like this:

---
R UNZK904326 57075
P UNZK904385 57127
P UNZK904328 57053
P ULZK908062 57101
P UNZK904322 56498
R UNZK904386 57108
P UNZK904288 56383
P UNZK904397 56383
P UNZK904444 56878
R UNZK904465 57253
R UNEK919821 57025
R UNEK919745 57259
R UNZK904527 55769
R UNEK919814 55944
R ULZK908272 57376
R UNZK904471 56355
R ULZK908371 55393
R UNZK904574 56646
R UNEK919701 56974
R UNZK904565 57598
R UNZK904603 57649
R ULZK908326 57471
R UNZK904588 57610
R ULZK908324 57514
R ULZK908307 57614
P ULZK908369 57149
R UNZK904603 57649
R UNEK919933 57643
P ULEK935569 56373
P ULEK935571 57504
P ULZK908295 56122
P ULZK908484 57149
P UNEK919781 56816
P UNEK919785 56747
P UNEK919959 56615
P ULEK935884 56951
P ULEK935886 56845
P UNZK904559 57572
R ULEK935659 57784
R ULEK935727 56203
R ULEK935729 56474
R ULEK935860 57871
R ULEK935938 57946
R ULEK935866 57885
R ULZK908389 57584
R ULZK908389 57743
R ULZK908397 57707
R ULZK908401 57743
R ULZK908477 57647
R ULZK908505 57853
R ULZK908508 57672
R UNZK904601 57598
R UNZK904597 56581
R ULZK908545 57897
R ULZK908270 57469
R UNZK904619 57688
V ULZK908382 57724
V ULZK908431 57724
R UNZK904746 56581
R ULZK908686 57754
R ULEK935997 56474
R ULZK908690 57975
R ULEK936068 57999
R ULZK908692 57208
R ULEK935991 57956
R ULZK908696 57955
R ULEK936078 57983
R UNZK904463 55662
R ULEK936070 56010
P ULEK936122 56478
R ULZK908377 57623
P ULEK936126 57671
P ULEK936136 56784
P ULEK936148 57102
R UNEK920127 57622
R UNZK904680 57294
P ULEK936158 56303
R ULEK935862 57800
R ULZK908515 57636
R ULEK935862 58097
R ULEK936166 57800
R ULZK908377 57623
---

I want to make the following changes:

1.- Every time when a "R UN" in column 1 occurs, replace then the 5 digits ##### on column 14 (like 57075 in the first row) with "SM##### SLA KSR-Netz SST" (that would change the first row from "R UNZK904326 57075" to "R UNZK904326 SM57075 SLA KSR-Netz SST");

2.- For every row with "R UL" in column 1, replace then the 5 digits ##### on column 14 (like 57376 in the row 15) with "SM##### SLA KSR-Lief SST" (that would change the row 15 from "R ULZK908272 57376" to "R ULZK908272 SM57376 SLA KSR-Lief SST");

3.- Leave the others rows unchanged.

Could you please help me with a regex in order to do this in VIM? Thank you!


Regards,
Vlad Ghitulescu

--
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: textobj-lastpat plugin: text object not capturing last character of the match?

On Friday, December 28, 2012 2:06:56 PM UTC-6, zpkarol wrote:
> Hi guys, does anyone use textobj-lastpat plugin?
>
>
>
> http://www.vim.org/scripts/script.php?script_id=2355
>
>
>
> I tried it and it seems to have a bug: the text object omits the last
>
> character in a match.
>
> For example, if I start with the following text
>
>
>
> foo bar baz
>
>
>
> Then I do
>
>
>
> /bar<CR>
>
>
>
> The word "bar" is highlighted and the cursor is at first "b" character (as
>
> expected), but when I try, say
>
>
>
> da/
>
>
>
> I end up with this
>
>
>
> foo r baz
>
>
>
> I would expect the following result:
>
>
>
> foo baz
>
>
>
> Is this behavior correct? And if so, how can I achieve what I want, i.e.
>
> have a text object that encompasses the whole match?
>
>
>
> Thx for help!
>

Is your 'selection' option set to 'exclusive'? (This is the default if you have "behave mswin" in your .vimrc). This option causes problems in a *lot* of plugins. Try setting 'selection' to "inclusive". If the problem goes away, alert the plugin maintainer.

--
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: Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

On Thursday, December 27, 2012 1:41:11 AM UTC-6, Shlomi Fish wrote:
>
> In any case, while the wiki is a useful resource,
> as some people told me on IRC:
>
>
>
> <<<
> the vim wiki is a mess, the help is too hard to navigate for
> newcomers
> >>>
>

It's a wiki. I think fixing the wiki would be easier than starting over from scratch. For beginners, there is even a "getting started" section with some decent starter tips. It's easy enough for any community-edited page to become "a mess", all it takes is a lot of "drive by editing" and not enough long-term maintainers.

>
> Another problem with the wiki is that being hosted on Wikia, there are some
> intrusive ads by default.
>

I can't argue with that. But most of the time the ads are normal easily ignored banner ads. And you can create an account and log in to hide most of those.

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

textobj-lastpat plugin: text object not capturing last character of the match?

Hi guys, does anyone use textobj-lastpat plugin?

http://www.vim.org/scripts/script.php?script_id=2355

I tried it and it seems to have a bug: the text object omits the last
character in a match.
For example, if I start with the following text

foo bar baz

Then I do

/bar<CR>

The word "bar" is highlighted and the cursor is at first "b" character (as
expected), but when I try, say

da/

I end up with this

foo r baz

I would expect the following result:

foo baz

Is this behavior correct? And if so, how can I achieve what I want, i.e.
have a text object that encompasses the whole match?

Thx for help!
Karol



--
View this message in context: http://vim.1045645.n5.nabble.com/textobj-lastpat-plugin-text-object-not-capturing-last-character-of-the-match-tp5712850.html
Sent from the Vim - General mailing list archive at Nabble.com.

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