Things I wish I could do in VIM while programming Ruby -
There are some problems facing me, I looked around the forum and found no solution discussed. I am sorry that if they have been solved before.
-
Can I break the VIM line after 80 characters in some way? I do not want to wrap the text around, but create a new line and I want it to break the whole word. So instead of for and o in the previous line, can break from foo in the next line?
-
When I end my comment and press enter, I get # in the new line. It is good, but when I delete # and start a line of code I do not want to highlight syntax here. It still thinks whether im typing is a comment, is this a bug or am I doing it wrong?
-
One more thing is that I have set the width of the change to 4. But when I press Ctrl + S to save the document, the cursor jumps at the beginning of the sentence, then I have to go back to my original position to start the code manually. Is there any way I can solve it?
Thank you for reading it. I'm new to Ruby and Vim. I hope you guys will help me.
Ctrl-S? I do not know that in VIM / GVM, a file is usually
: w filename.ext (if none is given) or
<>: saveas filename.ext (For all these commands, ": Support: W" or ... the same principle attempt Please).
I do not know about the comment part, because I do not ruby, but you would be very wise to get a good commenter plugin for you (I think I use) - on the comment Just makes the comment easy, and add # later (set it to work in normal and in scene mode, it works beautifully)
To break the text part, which can be solved by adding
: set tw = 80
Comments
Post a Comment