summaryrefslogtreecommitdiffstats
path: root/software
diff options
context:
space:
mode:
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 %