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

  • Home
  • SEARCH
  • 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 973253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:15:07+00:00 2026-05-16T03:15:07+00:00

As a programmer by heart, if not by profession, I increasingly rely on, nay

  • 0

As a programmer by heart, if not by profession, I increasingly rely on, nay live in VIM for most editing-related tasks. What tips can you offer for using (almost) everyone’s favorite editor for editing general-purpose text, say, an article? I mean plain text, with minimal markup using Markdown or RST; I’m not looking for support for LaTeX or for entering mathematical formulae.

  • 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-16T03:15:07+00:00Added an answer on May 16, 2026 at 3:15 am

    I enable soft-wrapping when I’m editing most text files:

    :set wrap
    

    If you decide to do the same, then you’ll want to know about gj and gk in normal mode, to move by screen lines instead of physical lines. I use them so often I remapped the up and down arrow keys to them instead of k and j.

    Whether you’re editing hard- or soft-wrapped files, you’ll get a lot of mileage out of gqap (or its cousin gwap) to re-wrap a single paragraph with hard newlines, and vipJ to join all the lines of a hard-wrapped paragraph back into a single line.

    You might also want to consider including a in formatoptions, to enable automatic paragraph formatting:

    :set formatoptions+=a
    

    When you’re doing all this wrapping and unwrapping, it’s nice to keep Vim from mangling numbered lists:

    :set formatoptions+=n
    

    In fact, I’d suggest reviewing all the formatoptions and adjusting them to your particular preferences:

    :help fo-table
    

    More info:

    :help gj
    :help gk
    :help gqap
    :help auto-format
    :help formatoptions
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've heard that there are some things one cannot do as a computer programmer,
A programmer I know has a website that is fully Standards Compliant. It uses
What is a programmer’s life like?
As a programmer I need a place to store my stuff. I've been running
We have a junior programmer that simply doesn't write enough tests. I have to
As a programmer I have no idea how one would go about programming menus
I am a novice programmer who is trying to teach myself to code, specifically
I am a programmer at a financial institute. I have recently been told to
I believe any programmer who has been dealing with database requests in a gui
I always hear that programmers try to pick the right tool for the job.

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.