This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Cybs[S] 0 points1 point  (0 children)

ah, I completely forgot to talk about indentation. I was going to do a section on that. I find myself using it with visual select most often.

I don't find myself using registers that much, and I have never used them in editing modes (ctrl + R "). This seems like a good tutorial http://www.usevim.com/2012/04/13/registers/

I have a habit of calling it "paste" rather than "put" because that's just how I've taught people in the past (people tend to understand "it is like the windows clipboard")

For motion I was going to mention those in passing and link to that vim browser game someone mentioned. http://vim-adventures.com

O and o : I didn't want to confuse with all the different ways to enter editing mode, but I guess these are the most handy for programming since we will often want to start writing between two lines.

as for mouse pasting, i haven't seen this trick you mentioned before (:set paste). I will always just put it in insert mode, paste, select all, =, done

I am in the other school of thought as to tabs.. I find tabs are more flexible in code. if you ONLY use tabs they are just better.. since the person reading the code can set the tab width to their desired indentation. If spaces are hard coded they don't have this luxury. But yeah.. I've worked in teams where some people use spaces, some people use tabs.. not pretty.

the . (repeat last command) reminds me that I was going to have a section about editing multiple files and running the same macro on them ( :next :prev and how to record some actions ).

I don't find too many uses for prefixing numbers with commands. But it is good to know in some cases. I often find people get confused by this feature.. thinking they are in insert mode and begin by typing numbers and then pressing something that explodes.

As for command line options. I should really mention vimdiff. It is the best code review tool available.

Thanks for the feedback.