Got to read Seven habits of effective text editing…
…and Wholly Unbalanced Parentheses: My Vimrc…
…and slightly related OS X: Keyboard shortcuts…
Got to read Seven habits of effective text editing…
…and Wholly Unbalanced Parentheses: My Vimrc…
…and slightly related OS X: Keyboard shortcuts…
In vim to undo is ‘u’ and to redo (i.e. undo undo) is ‘Ctrl+R’…
Reading about Vim: reformat a Python file to have 4 space indentations and came up with this:
:%s/^\s*/&&/g
Found this article today Efficient PHP Debugging In Vim which explains how to setup Vim as a PHP debugger.
There was also Debugging PHP using Xdebug and Notepad++.
In my .vimrc file I set expandtab, which means tab characters are converted to spaces.
Today I had to edit a python file, and I know python is funny about tabs and spaces, so I wanted to temporarily disable the expandtab feature in Vim.
Turns out you can do it with:
:set expandtab!