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 200499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:07:01+00:00 2026-05-11T17:07:01+00:00

Im facing some problems, I looked around in the forum and didnt find any

  • 0

Im facing some problems, I looked around in the forum and didnt find
any solutions discussed. Im sorry if these have been resolved earlier.

  • Is there someway I can make the VIM line break after 80 characters. I
    dont want the text to wrap around but create a new line. And I wish it would
    break off the complete last word. So instead of fo in the previous and o
    in the next line, can it break with foo in the next line?

  • When I end my comment and press enter, I get a # in the new line. This is
    cool but when I delete # and want to start a line of code, I dont get syntax
    highlighting there. It still thinks what Im typing is a comment. Is this a
    bug or am I doing it wrong?

  • One more thing is that I have set the shiftwidth to 4. But when I press
    Ctrl+S to save the document, the cursor jumps to the beginning of the
    sentence. I then need to manually go back to my original position to begin
    the code. Is there a way I can resolve this?

Thank you for reading this. I am new to Ruby and Vim. I hope you guys help
me out.

  • 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-11T17:07:02+00:00Added an answer on May 11, 2026 at 5:07 pm

    Ctrl-S ? This is not known to me. In Vim/Gvim, a file is usually saved by

    :w filename.ext (if none's been given yet)
    

    or

    :saveas filename.ext
    

    (for all of these commands try “:help :w” or … the same principle).

    I don’t know about the comment part, since I don’t do Ruby, but it would be pretty wise for you to get yourself a nice commenter plugin (I think I use LineCommenter) – eases up on the commenting. Just write the comment, and add the #’s later (set it to work in normal and in visual mode; it works beautifully).

    As for the breaking the text part, that could be solved by adding

    :set tw=80
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been making some ajax function these days, and I'm facing a small problem.
I've looked around at a few different postings but haven't been able to find
I am novice in android development and facing some problems. I have installed Eclipse
I am a beginner and facing some problems when doing my project. I have
I've been trying many things with list items and i'm facing some problems. In
I am facing some problems when page is posted back partially. I have some
I am facing some problems while developing a screen involving a tabWidget. I have
I'm facing some problems with my silverlight application. My application looks like an image
I am facing some problems for using placement new for contiguous memory.Please guide me,
I'm new to Android programming, so I'm facing some general problems about choosing the

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.