summaryrefslogtreecommitdiffstats
path: root/software
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-07-19 11:37:59 -0400
committerbnewbold <bnewbold@robocracy.org>2010-07-19 11:37:59 -0400
commit88a5f204a082f2d9c4cca5b69e9630b62ce8dd92 (patch)
tree307ec9d60ff0d905812dd3feb53c72c8d8d3cca4 /software
parentd1b51dc84b63db37598a4c392e2bc5512735a6c4 (diff)
downloadknowledge-88a5f204a082f2d9c4cca5b69e9630b62ce8dd92.tar.gz
knowledge-88a5f204a082f2d9c4cca5b69e9630b62ce8dd92.zip
movies
Diffstat (limited to 'software')
-rw-r--r--software/vim.page9
1 files changed, 9 insertions, 0 deletions
diff --git a/software/vim.page b/software/vim.page
index dfb6477..cc37fe5 100644
--- a/software/vim.page
+++ b/software/vim.page
@@ -50,3 +50,12 @@ actually typing. To paste in the contents of the X11 clipboard you want to use::
(aka quote, start, uppercase-P) in regular mode. This also solves the
autotabbing problem without ":set paste"!
+Sometimes you really need tab characters instead of space indendation (eg, when
+editing Makefiles). To use tabs when editing a file use::
+
+ :set noexpandtab
+
+If you accidently opened a file you can't write to, you can write out as root
+using::
+
+ :w !sudo tee %