aboutsummaryrefslogtreecommitdiff
path: root/vim/indent
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-23 17:33:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-23 17:33:38 +1200
commit411034679b7129ee74b225191f5d17e6c29d328f (patch)
tree611826877b8dfcdfc2c564b72e6653d724dd369b /vim/indent
parentCorrect an exists() call in markdown ftplugin (diff)
downloaddotfiles-411034679b7129ee74b225191f5d17e6c29d328f.tar.gz
dotfiles-411034679b7129ee74b225191f5d17e6c29d328f.zip
Add password filetype
Diffstat (limited to 'vim/indent')
-rw-r--r--vim/indent/password.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/indent/password.vim b/vim/indent/password.vim
new file mode 100644
index 00000000..e633fe05
--- /dev/null
+++ b/vim/indent/password.vim
@@ -0,0 +1,11 @@
+" Only do this when not done yet for this buffer
+if exists('b:did_indent')
+ finish
+endif
+let b:did_indent = 1
+
+" Manual indenting and literal tabs
+setlocal noautoindent
+setlocal noexpandtab
+setlocal softtabstop=0
+let b:undo_indent = 'setlocal autoindent< expandtab< softtabstop<'