Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-15-2005, 08:05 AM   #1
LQ Newbie
Registered: Mar 2004
Location: Singapore
Distribution: Fedora Core 3
Posts: 14

Rep: Reputation: 0
how to set "wrapping size" in VIM

I use vim for some coding or editing in console. since the auto-wrapping of long lines happens at the right edge of the console window, sometimes it is too wide to read and edit comfortably. I'd like to reduce the wrap size, for example, only 30 chars each line.

I check the help, and find a parameter called "wrapmargin", which looks like exactly what I want. unfortunately, no matter what value I set by issuing the command ": set wrapmargin=10", no effect happens at all.

anybody knows how to set wrap size?
Old 04-17-2005, 08:39 AM   #2
LQ Newbie
Registered: Sep 2002
Location: Brazil
Distribution: Fedora Core
Posts: 9

Rep: Reputation: 0
Have you tried

:set textwidth=30

:set tw=30



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"HOWTO Change Colour of Comments in VIM editor" manikantha Linux - General 8 07-16-2013 04:36 AM
Error: "cannot set groups" by using "su -", pls help nelsonyuen Linux - General 14 07-31-2010 01:24 PM
vim: rich ("gui") colorschemes in a terminal emulator? prell Linux - Software 13 09-10-2008 11:07 AM
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 03:42 AM
help with "post install" of vim in lfs 6.0 JusCrzn Linux From Scratch 2 12-14-2004 12:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration