You are not logged in.

#1 2013-12-05 09:20:40

cutuchiqueno
Member
Registered: 2013-07-06
Posts: 70

[SOLVED] set columns in vim does not work

I would like to set the window size of my vim to 95 when working with markdown files, so put

set columns=95

into an autosourced file when opening Markdown files. Unfortunately this has no effect and when I look at

set columns?

the window size is still 179 characters long.

When I try to do

set columns=95

with vim already open, vim very shortly resizes the text/window, but after a second return to the original size which is 179 character (screen width)

I tried ot figure out if it is a problem of my .vimrc by temporaliy working with a new empty .vimrc but the problem remains the same. I tried it out in another terminal emulator, but the problem remains the same. I tried it out logged in as root user before starting the XServer and here it worked as expected. So my gues is it has to do or with a X setting or with my window manager or with my shell.

I am using i3, urxvt and zsh in the context where it didn't work and the Arch install default setting in the context where it works. Still I have no clue what causes the problem.

Last edited by cutuchiqueno (2013-12-05 12:18:36)

Offline

#2 2013-12-05 09:28:27

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] set columns in vim does not work

I believe you'll need to float urxvt in i3 to do that.

Offline

#3 2013-12-05 10:28:21

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] set columns in vim does not work

FYI "set colorcolumn=95" will be a good alternative.


This silver ladybug at line 28...

Offline

#4 2013-12-05 12:18:18

cutuchiqueno
Member
Registered: 2013-07-06
Posts: 70

Re: [SOLVED] set columns in vim does not work

x33a wrote:

I believe you'll need to float urxvt in i3 to do that.

Thanks, I haven't thought of that possibility and it works. Although what I wanted to achieve is not possible with this solution though I found the Vimroom plugin which did the job, so thanks again.

Offline

Board footer

Powered by FluxBB