Howard Glynn wrote: > In essence I would like to collapse huge (single) lines of tags to > something like <a id="xyz" href="/img .......
There is a simple solution, maybe too simple, but... if you only have one tag per line, or if you can reformat your file in such a way, it might be enough to disable line wrap: :set nowrap You can map a function key to toggling line wrap: :map <F9> :set wrap!<CR> Type that literally, with < > and everything, or put it into ~/.vimrc HTH Tobia