You are not logged in.

#1 2007-08-06 11:22:25

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Vim - Display vertical line at 80 columns?

I've been looking for this for quite some time now and wasn't able to find something, so I thought I'd ask here. I'd like vim to display a vertical line at X columns to easily see where I have to wrap the lines.
Basically what I want is something like that:
fluxbox-gedit.png

PS: I'm willing to write a script for that on my own, so any pointers to similar scripts are welcome.

Offline

#2 2007-08-06 11:34:01

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Vim - Display vertical line at 80 columns?

google finds this...

http://www.vim.org/tips/tip.php?tip_id=810

but let me know how you go... a line at 80 would be real nice.

James

Offline

#3 2007-08-06 11:49:46

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Vim - Display vertical line at 80 columns?

iphitus wrote:

google finds this...

http://www.vim.org/tips/tip.php?tip_id=810

but let me know how you go... a line at 80 would be real nice.

James

Yeah, I already found that as well. Unfortunately for some reason I hate to have hlsearch switched on. Also I'd prefer a real line smile

Offline

#4 2010-10-02 14:22:21

BoySka
Member
Registered: 2008-05-09
Posts: 25

Re: Vim - Display vertical line at 80 columns?

smoon wrote:

I've been looking for this for quite some time now and wasn't able to find something, so I thought I'd ask here. I'd like vim to display a vertical line at X columns to easily see where I have to wrap the lines.

I know this post is from FIVE years ago, but vim 7.3 has the solution:

set colorcolumn=80

will do the trick.

It still may be useful

Offline

#5 2010-10-02 15:35:49

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Vim - Display vertical line at 80 columns?

Necropost.jpg


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2010-12-17 01:22:36

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: Vim - Display vertical line at 80 columns?

BoySka wrote:
smoon wrote:

I've been looking for this for quite some time now and wasn't able to find something, so I thought I'd ask here. I'd like vim to display a vertical line at X columns to easily see where I have to wrap the lines.

I know this post is from FIVE years ago, but vim 7.3 has the solution:

set colorcolumn=80

will do the trick.

It still may be useful

What do you know. You've just helped me. smile

Offline

#7 2010-12-17 05:19:19

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: Vim - Display vertical line at 80 columns?

... and me. Thank you.

Offline

#8 2010-12-17 05:57:42

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: Vim - Display vertical line at 80 columns?

...and me. Gracias.


arst

Offline

#9 2010-12-17 07:43:58

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Vim - Display vertical line at 80 columns?

Mr.Elendig wrote:

[Necropost Card]

"The report of my death is an exaggeration"

Offline

#10 2010-12-17 09:45:10

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Vim - Display vertical line at 80 columns?

awesome.  helped me too.  sometimes it's ok to bump a dead thread smile


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB