Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7652347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:44:41+00:00 2026-05-31T11:44:41+00:00

After doing :set wrap , Vim wraps lines longer than the window. But is

  • 0

After doing :set wrap, Vim wraps lines longer than the window.

But is it possible to have Vim wrap to a new line on blank spaces only, not half-way through a word?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:44:43+00:00Added an answer on May 31, 2026 at 11:44 am

    :help wrap

    This option changes how text is displayed. It doesn’t change the text
    in the buffer, see ‘textwidth’ for that.
    When on, lines longer than the width of the window will wrap and
    displaying continues on the next line. When off lines will not wrap
    and only part of long lines will be displayed. When the cursor is
    moved to a part that is not shown, the screen will scroll
    horizontally.
    The line will be broken in the middle of a word if necessary. See
    ‘linebreak’ to get the break at a word boundary.

    :help linebreak

    If on Vim will wrap long lines at a character in ‘breakat’ rather
    than at the last character that fits on the screen.

    :help breakat

    ‘breakat’ ‘brk’ string (default " ^I!@*-+;:,./?")

    So, :set linebreak and it should work out of box. Or you can restrict breakat to just break on spaces, instead of spaces+punctuation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Learning django & python. Just set up a new site after doing the tutorial.
Is it possible in ruby/rails to order a result set after doing a find?
I have declared a manager to the following model, but after doing so, I
After doing a SET LOCK_TIMEOUT in an SQL query is it possible to return
I have a PurchaseEntity that has a Set inside. After doing entityManager.persist(purchaseEntity), purchaseEntity itself
After doing a subversion merge with a co-worker, my VSeWSS project no longer build
I have a script that's successfully doing a multiprocessing Pool set of tasks with
After doing a bit of processing, I want to set a cookie value to
After doing web development for quite a while, I am faced with a new
After doing some work with Ruby, Rails, and RSpec last summer and I learned

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.