Author: Kyle Fuller <kyle@mentallyfriendly.com> 2012-11-27 15:22:09 +0000 +0000
Committer: Kyle Fuller <kyle@mentallyfriendly.com> 2012-11-27 15:22:09 +0000 +0000
Commit: 74e8dc74be465a2eeac52952e51bc5adc5f96f5e
Parent: 63c7c5081c08cadb33602d2ca95e7160574340a1
Prevent VIM write misfires
https://coderwall.com/p/5g0jag
diff --git a/.vimrc b/.vimrc
index 2c76b9da6537d67d1852f8b95b3254ed88e06f6e..7d0189ae9f01e67650786211a386048dbc715e7d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -61,3 +61,12 @@ " Restructured text to pdf then open the pdf
command! Rp :!rst2pdf % && open %:r.pdf
color jellybeans
+
+" autocmd BufWritePre * :%s/\s\+$//e
+
+" Yeah... these get typoed
+command W w
+command Q q
+command Wq wq
+command WQ wq
+