Vim Visual wrote:
> do you know how to delete, say, nine lines every ten lines in a data file?
Assuming you want to keep the first and every tenth line in the buffer,
you could use eg.
If you want to keep every tenth line, you need a little magic:
Here nine lines are deleted and the tenth is moved after itself.
This little trick removes the tenth line from the list of lines that
:global processes (as does the deletion of line 2 to 9).
se nocp cpo=BceFsx!$ hid bs=2 ls=2 hls ic " P. Guldberg /bin/vi@...
se scs ai isf-== fdo-=block cino=t0,:0 hi=100 ru so=4 noea lz|if has('unix')
se sh=/bin/sh|en|syn on|filetype plugin indent on|ono S V/\n^-- $\\|\%$/<CR>
cno <C-A> <C-B>|au FileType vim,mail se sw=4 sts=4 et|let&tw=72+6*(&ft=~'v')