Thanks for help! I want to write the digits and actually my full regex in vim is: /[-0-9]\{13,17\} I want numbers with 13 to 17 digits even if they have...
125697
Marcin Szamotulski
mszamot@...
Sep 1, 2011 9:41 am
... (it will copy all the lines which starts with more than one digit). I think you had a small typo in your pattern. The meaning of ^ inside [] is to not...
125698
Lars Iselid
larsiselid@...
Sep 1, 2011 10:01 am
... I still not just get the 13 to 17 digits strings. You say it will copy all the lines that starts with digits. I don't want the whole line just the digit...
125699
Christian Brabandt
cblists@...
Sep 1, 2011 10:25 am
Hi Lars! ... I think it was correct to have the negation in the s/ command, because you want to delete (replace) all characters, but digits. Anyway, :w will ...
125700
Lars Iselid
larsiselid@...
Sep 1, 2011 11:02 am
Still gets the whole content to the my.txt file. How to not write the whole buffer? Lars Iselid ... -- You received this message from the "vim_use" maillist. ...
125701
Christian Brabandt
cblists@...
Sep 1, 2011 11:06 am
Hi Lars! ... Please show the exact command you used. regards, Christian -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your...
125702
Lars Iselid
larsiselid@...
Sep 1, 2011 12:22 pm
Checked carefully again and I had missed a point. Sorry! But in my result each string of digits (10 to 17) from same line (or paragraph) is sorted in one...
125703
Christian Brabandt
cblists@...
Sep 1, 2011 12:29 pm
Hi Lars! ... Can you please share an example, what your data looks like before and what it looks like afterwards and how it should differ. I find it hard to...
125704
Tim Chase
vim@...
Sep 1, 2011 1:24 pm
... For this, I'd tend to do something like put each match on its own line and then delete all lines that don't contain that pattern. Something like ... Note...
125705
Paul Giannaros
p.a.giannaros@...
Sep 1, 2011 3:10 pm
Hi. I use a light background (set background=light). I like tab indicators with lower contrast, so I highlight them with light grey: hi SpecialKey...
125706
David Sanson
dsanson@...
Sep 1, 2011 3:10 pm
Three thoughts: 1. You might try asking on vim_mac to see if anyone there has advice. 2. Install [XCode 2.5][]. That should include a CLI-only vim binary, as...
125707
Tony Mechelynck
antoine.mechelynck@...
Sep 1, 2011 4:02 pm
... After a little experimenting it seems to be not only the CursorLine highlight but also the Visual highlight: when I use V followed by up-down motion to...
125708
Tim Chase
vim@...
Sep 1, 2011 4:04 pm
... While I acknowledge it's still early, it might be helpful to know what sorts of expectations exist for participating (whether as a presenter or as a...
125709
Andy Wokula
anwoku@...
Sep 1, 2011 5:35 pm
... Looks like the Enter-key has been remapped for Cmdline mode (you can check with ... ), and the right-hand-side contains some Ex-commands. Now when pressing...
125710
Andy Wokula
anwoku@...
Sep 1, 2011 5:48 pm
... I'd use the following test (echos 1 (= true) if cursor is on initial ... Example: a mapping for the <Home> key ... -- Andy -- You received this message...
125711
Rice
heconghui@...
Sep 2, 2011 3:31 am
That is a good idea. It works for me. ... -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are...
125712
Gerardo Marset
gammer1994@...
Sep 2, 2011 4:03 am
... Nice! However that code takes tabs into account too, as well as, maybe, other whitespace characters I didn't try. Thanks anyway, i'll definitely save it,...
125713
Gerardo Marset
gammer1994@...
Sep 2, 2011 4:11 am
... Real spaces only. ... Excluding. ... Nice, but it seems to have a little mistake. I had to add brackets like this: if getline('.') =~ '^ \{' . (col('.39;) -...
125714
zhchbin@...
Sep 2, 2011 6:46 am
Thank You very much!I got the idea and have solved this problem I meet! ... -- You received this message from the "vim_use" maillist. Do not top-post! Type...
125715
Hozzy2u
tfhosmer@...
Sep 2, 2011 6:46 am
63 and a complete noobe to Vim, I've installed version 7.3 in Windows Vista. I'm trying to find an extra income source and settled on formatting plain text...
125716
tplarkin7
timothypatricklarkin@...
Sep 2, 2011 6:46 am
I would like to capitalize the words, "Narrator (v.o.)" between the paragraph tags below: I need to keep the entire tag as shown. For example, other tags have...
125717
Erik Christiansen
dvalin@...
Sep 2, 2011 8:15 am
... Well, Vim is "Vi Improved", and as such provides a superset of vi capability. It can be used in "compatibility mode", or allowed to bend some of the old vi...
125718
Lars Iselid
larsiselid@...
Sep 2, 2011 9:02 am
I would suggest Vim recipes http://vim.runpaint.org/vim-recipes.pdf and the vimtutor in vim for learning the vim editor. Both free of course! Lars On Fri, Sep...
125719
Tim Chase
vim@...
Sep 2, 2011 11:33 am
... You seem to be referencing example HTML code blocks that didn't appear in your message. Without any actual code, the best I can do is suggest you use gUit...
125720
John Goche
johngoche99@...
Sep 2, 2011 11:44 am
Hello, I am used to searching for the word under the cursor by hitting the '*' character and then navigating with the 'n' (next match) and 'N' (previous match)...
125721
Tim Gray
tgray@...
Sep 2, 2011 12:18 pm
... It's not a bad book. But if you want to save some cash, either buy it used, or just use the references found here: http://www.vim.org/docs.php I'd like to...
125722
Tim Chase
vim@...
Sep 2, 2011 12:24 pm
... This (as you may have discovered) searches for the third match of the single word under the cursor. ... Knowing were to delimit and how many words/Words to...
125723
Russell Bateman
russ@...
Sep 2, 2011 12:29 pm
Everyone learns differently, but the O'Reilly book is just about the only one there is and it's not bad. I learned vi 30 years ago rubbing shoulders with UNIX...
125724
Erik Christiansen
dvalin@...
Sep 2, 2011 12:43 pm
... And you can use the cursor keys, until hjkl seem more convenient. (There's more than enough to learn at first, so reusing what you can makes for an easier...
125725
Tim Chase
vim@...
Sep 2, 2011 12:49 pm
... Indeed, Vim has a learning-curve a bit like a brick wall. Once you understand the modal nature, and the {count}{operator}{motion} pattern of commands, you...