LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-15-2005, 07:05 AM   #1
staul
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, 07:39 AM   #2
msmarcal
LQ Newbie
 
Registered: Sep 2002
Location: Brazil
Distribution: Fedora Core
Posts: 9

Rep: Reputation: 0
Have you tried

:set textwidth=30

:set tw=30

?
 
  


Reply


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 03:36 AM
Error: "cannot set groups" by using "su -", pls help nelsonyuen Linux - General 14 07-31-2010 12:24 PM
vim: rich ("gui") colorschemes in a terminal emulator? prell Linux - Software 13 09-10-2008 10:07 AM
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 02:42 AM
help with "post install" of vim in lfs 6.0 JusCrzn Linux From Scratch 2 12-13-2004 11:24 PM


All times are GMT -5. The time now is 01:12 AM.

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