How do I change tab size in Vim?

Expanding on zoul’s answer: If you want to setup Vim to use specific settings when editing a particular filetype, you’ll want to use autocommands: This will make it so that tabs are displayed as 4 spaces. Setting expandtab will cause Vim to actually insert spaces (the number of them being controlled by tabstop) when you press tab; you … Read more

vim and notepad++

Vim has modal editing (answering the vice versa part). And it runs in a terminal. You are likely correct; if “vim” isn’t a real text editor, I’m not sure what is. I guess ed, the standard Unix text editor, would be the only real one.

Backspace key not working in Vim/vi

To allow backspacing over everything in insert mode (including automatically inserted indentation, line breaks and start of insert) you can set the backspace option: or By default this option is empty, not allowing you to backspace over the above-mentioned things. This is the standard Vi behavior. You can put this line to your vimrc file … Read more

What is Vim recording and how can it be disabled?

You start recording by q<letter> and you can end it by typing q again. Recording is a really useful feature of Vim. It records everything you type. You can then replay it simply by typing @<letter>. Record search, movement, replacement… One of the best feature of Vim IMHO.

Why does using from __future__ import print_function breaks Python2-style print?

First of all, from __future__ import print_function needs to be the first line of code in your script (aside from some exceptions mentioned below). Second of all, as other answers have said, you have to use print as a function now. That’s the whole point of from __future__ import print_function; to bring the print function from Python 3 into Python 2.6+. __future__ statements need … Read more