... 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...
Vim Visual
vim.unix@...
Dec 1, 2005 12:27 pm
63743
... This appears a task for batch processing, not editor. like perl -ne 'print unless $. % 10' ... perl -ne 'print unless /xxxxx/ .. /eeeeee/' this deletes...
Andrej Mikus
vim-user@...
Dec 1, 2005 12:40 pm
63744
<esc>qa9ddjq@a@a@a@a@.......
Gareth Oakes
goakes@...
Dec 1, 2005 12:56 pm
63745
... 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...
Harry Putnam
reader@...
Dec 1, 2005 1:25 pm
63746
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...
Bahadir Balban
bahadir.balban@...
Dec 1, 2005 1:38 pm
63747
... 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....
Harry Putnam
reader@...
Dec 1, 2005 1:59 pm
63748
... 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...
Tim Chase
vim@...
Dec 1, 2005 2:05 pm
63749
... 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...
Tim Chase
vim@...
Dec 1, 2005 2:32 pm
63750
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...
Robert Cussons
r.cussons@...
Dec 1, 2005 2:39 pm
63751
... 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 ...
Georg Lohrer
vim@...
Dec 1, 2005 2:46 pm
63752
... Assuming you have :set mouse=a in your .vimrc: noremap <middlemouse> :set paste<cr><middlemouse>:set nopaste<cr> which selectively turns paste mode on...
Charles E. Campbell, ...
drchip@...
Dec 1, 2005 3:04 pm
63753
... 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...
Chris Allen
c.d.allen@...
Dec 1, 2005 3:07 pm
63754
... 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...
Chris Allen
c.d.allen@...
Dec 1, 2005 3:18 pm
63755
... Antony...
Antony Scriven
adscriven@...
Dec 1, 2005 3:24 pm
63756
... 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...
Jean-Rene David
jrdavid@...
Dec 1, 2005 3:40 pm
63757
How would I replace every line in a file that starts with certain text, for example every line that begins with 22. Thanks, Chris...
Chris Hudson
chudson@...
Dec 1, 2005 4:23 pm
63758
... 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...
Matthew Winn
matthew@...
Dec 1, 2005 4:36 pm
63759
... 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 ...
Robert Cussons
r.cussons@...
Dec 1, 2005 4:39 pm
63760
... 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...
Charles E. Campbell, ...
drchip@...
Dec 1, 2005 4:40 pm
63761
... If you wanted to avoid lines that began with 221, though... ... Regards, Chip Campbell...
Charles E. Campbell, ...
drchip@...
Dec 1, 2005 4:46 pm
63762
... 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...
Peter Palm
peterp@...
Dec 1, 2005 4:46 pm
63763
... 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 ...
Tim Chase
vim@...
Dec 1, 2005 4:48 pm
63764
... See ... Hope this helps; --paj -- Pete Johns <http://johnsy.com/> Tel/Fax numbers and IM information:...
Pete Johns
paj-vim@...
Dec 1, 2005 4:51 pm
63765
... hth, Alan Isaac...
Alan G Isaac
aisaac@...
Dec 1, 2005 5:00 pm
63766
... -G...
Gareth Oakes
goakes@...
Dec 1, 2005 5:07 pm
63767
Bob Hiestand
bob.hiestand@...
Dec 1, 2005 5:11 pm
63768
... To read this, find all the files that have a start of line (^) immediately followed by two '2's and delete them (d) ... Al...
A. S. Budden
abudden@...
Dec 1, 2005 5:17 pm
63769
... The 'substitute' command. For example: %s/^22.*$/my replacement text/ That would replace anywhere in the whole file (%) a string which started (^) with 22...