... Hi Justin and Tony, I'm lucky my wheel works but I tried out what Tony said (apart from looking into the help file) and if it's any help, here are the...
Hi, do you know how to delete, say, nine lines every ten lines in a data file? For instance, delete all lines betwenn the line with xxxxx and eeeeee here...
63743
Andrej Mikus
vim-user@...
Dec 1, 2005 12:40 pm
... This appears a task for batch processing, not editor. like perl -ne 'print unless $. % 10' ... perl -ne 'print unless /xxxxx/ .. /eeeeee/' this deletes...
63744
Gareth Oakes
goakes@...
Dec 1, 2005 12:56 pm
<esc>qa9ddjq@a@a@a@a@.......
63745
Harry Putnam
reader@...
Dec 1, 2005 1:25 pm
... What is that? Can you explain what is supposed to happen in the above command? `CTRL-R CTRL - O *'. Did you mean: `CTRL-R CTRL-0' or what? I'm not seeing...
63746
Bahadir Balban
bahadir.balban@...
Dec 1, 2005 1:38 pm
Hi, I'm using vim 6.3.84. If I want to view a C file, and specify the .vimrc file on the command line as below: % vim main.c -u .vimrc The main.c file is not...
63747
Harry Putnam
reader@...
Dec 1, 2005 1:59 pm
... You are speaking of gvim here right? But I don't normally use gvim. I prefer plain vim from too much work in console mode....
63748
Tim Chase
vim@...
Dec 1, 2005 2:05 pm
... My first thought is that syntax highlighting is enabled in a system-wide vimrc (likely /etc/vimrc or something of the like), and by specifying your custom...
63749
Tim Chase
vim@...
Dec 1, 2005 2:32 pm
... If you're looking for a pure Vim solution (rather than Andrej's Perl solution), you may have to tag each line, then delete the ... One non-solution that...
63750
Robert Cussons
r.cussons@...
Dec 1, 2005 2:39 pm
Hi all, I just found out about putting: set -o vi in my .bashrc to get vim style command line editing in bash, I have the feeling that this could be very...
63751
Georg Lohrer
vim@...
Dec 1, 2005 2:46 pm
... The recording-feature of vim is one of my absolute favourites. It has saved me hours of time while changing and reformatting bunches of source-code with ...
63752
Charles E. Campbell, ...
drchip@...
Dec 1, 2005 3:04 pm
... Assuming you have :set mouse=a in your .vimrc: noremap <middlemouse> :set paste<cr><middlemouse>:set nopaste<cr> which selectively turns paste mode on...
63753
Chris Allen
c.d.allen@...
Dec 1, 2005 3:07 pm
... Ironically, the vi key bindings are the only key binding set required of a sh-style shell by the Single Unix Specification. Equally ironically, they have...
63754
Chris Allen
c.d.allen@...
Dec 1, 2005 3:18 pm
... No, the advice given applies to console Vim running within XTerm. XTerm can make mouse events visible to console applications. Under GVim all that stuff...
63755
Antony Scriven
adscriven@...
Dec 1, 2005 3:24 pm
... Antony...
63756
Jean-Rene David
jrdavid@...
Dec 1, 2005 3:40 pm
... Two thoughts: - although useful on this list for informational purposes, I think requests to modify bash will be more useful on a bash-related list; - I...
63757
Chris Hudson
chudson@...
Dec 1, 2005 4:23 pm
How would I replace every line in a file that starts with certain text, for example every line that begins with 22. Thanks, Chris...
63758
Matthew Winn
matthew@...
Dec 1, 2005 4:36 pm
... I've had trouble with recent versions of Zsh and Vim on some platforms. With Zsh version 4.x.x everything would work OK until I went into Vim and then used...
63759
Robert Cussons
r.cussons@...
Dec 1, 2005 4:39 pm
... Hi Jean, thanks for the advice, it wasn't so much a request to modify bash, it was a request for advice on how to work around bash in its present state ...
63760
Charles E. Campbell, ...
drchip@...
Dec 1, 2005 4:40 pm
... Hopefully no one has received your email in error! However, how does one notify a sender that has been destroyed already? Besides, is there a preferred...
63761
Charles E. Campbell, ...
drchip@...
Dec 1, 2005 4:46 pm
... If you wanted to avoid lines that began with 221, though... ... Regards, Chip Campbell...
63762
Peter Palm
peterp@...
Dec 1, 2005 4:46 pm
... What do you mean by "replace every line", replace with what? Given the following contents: 22 one 11 two 33 three 2222 four ... replaces, on every line...
63763
Tim Chase
vim@...
Dec 1, 2005 4:48 pm
... Should be in the tutorial or in the FAQ, but the short answer would be ... If you want lines that begin with "22", but not "222", then you can use ... or ...
63764
Pete Johns
paj-vim@...
Dec 1, 2005 4:51 pm
... See ... Hope this helps; --paj -- Pete Johns <http://johnsy.com/> Tel/Fax numbers and IM information:...
63765
Alan G Isaac
aisaac@...
Dec 1, 2005 5:00 pm
... hth, Alan Isaac...
63766
Gareth Oakes
goakes@...
Dec 1, 2005 5:07 pm
... -G...
63767
Bob Hiestand
bob.hiestand@...
Dec 1, 2005 5:11 pm
63768
A. S. Budden
abudden@...
Dec 1, 2005 5:17 pm
... To read this, find all the files that have a start of line (^) immediately followed by two '2's and delete them (d) ... Al...
63769
Chris Allen
c.d.allen@...
Dec 1, 2005 5:41 pm
... The 'substitute39; command. For example: %s/^22.*$/my replacement text/ That would replace anywhere in the whole file (%) a string which started (^) with 22...