I have trawled google, www.vim.org and vim.wikia.com to try and find
this one out...
Does anyone know if it is possible to make a column marker display in
vim - e.g. a thin line at a given column number that runs down the
screen so you can see at a glance where that column is. I find such a
thing useful for when doing block comments and stuff like that.
I used to be able to do this yonks ago when I used EditPlus on
windows. Is it possible with Vim?
Pete
No. you can highlight characters which are after some column instead.
m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
vim.pl - http://skawina.eu.org/mikolaj
CLEWN - http://clewn.sf.net
Not exactly what you want. The following will highlight
characters greater than column 80.
:match Todo '\%81v.*'
> Does anyone know if it is possible to make a column marker display in
> vim -
set cursorcolumn
> e.g. a thin line at a given column number that runs down the
> screen so you can see at a glance where that column is. I find such a
> thing useful for when doing block comments and stuff like that.
not exactly what you want because it follows your moves but it can help
you to align your comment block.
--
Arnaud Schmittbuhl
Well, he can always combine it with
set virtualedit=all
ldigas
You've had the answer, but here is the tip (recently cleaned up, with
some in-progress comments at the bottom that will be removed soon):
http://vim.wikia.com/wiki/Highlight_text_beyond_80_columns
John
Thanks everyone!
/\%80v.*
Did the trick. Its not pretty but it does the job. set cursorcolumn
looks nicer but if only you could get the thing to stick in one place.
ah well.