Wednesday, October 1, 2014

double the columns in vim on vertical split

On Wed, Oct 1, 2014 at 9:07 AM, Igor Forca <igor2x@gmail.com> wrote:
>
> Can you explain why you need columns setting? What is your operating system? I see on Windows whole gVim program gets this size (which is little bit useless) and on vim for Linux it gets text truncated at exactly 80 characters.
>
> Maybe you are looking for a setting like:
> set textwidth 80
>
> The above command with truncate whole words in new rows if passing 80 characters. It also preserves the 80 characters if you add new window with: vsp command.
>
> If using textwidth command you have to delete "set columns=80" from your ~/.gvimrc file and restart Vim.

My setup is Windows 7 -> superPutty (1.4.0.5) -> putty (0.62) -> ssh into Redhat Enterprise 6.5 -> gvim 7.2

Using textwidth instead of columns does not solve my problem. When I open the first file, say the window is X characters wide. If I do a vertical split in this (using :vs <filename>), the size of the window still remains the same with each file getting about X/2 columns. What I want to do is increase the current columns by 80 before doing a vertical split.

Actually, posing the problem this way, I found the solution myself.
:set columns+=80 | vs ~/.vimrc

This way the window size will be incremented by 80 columns before doing a vertical split.

raju
--
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/


--
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: