aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/vim.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 11:42:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 11:42:57 +1300
commit2f2cd9d86dbe39845dfd33d07e245505a02e8b5a (patch)
tree5ddb98fe5c9bf4a417fcf23a14f6fb12a8935a3e /vim/after/ftplugin/vim.vim
parentRename Makefile target for Vim plugin bundles (diff)
downloaddotfiles-2f2cd9d86dbe39845dfd33d07e245505a02e8b5a.tar.gz
dotfiles-2f2cd9d86dbe39845dfd33d07e245505a02e8b5a.zip
Set whitespace options for VimL locally
Setting these options globally is probably what's been causing me to get so confused by my indentation level changing to zero when editing other files in the same Vim instance as a VimL file. This should correct it.
Diffstat (limited to 'vim/after/ftplugin/vim.vim')
-rw-r--r--vim/after/ftplugin/vim.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index 10301ce0..b958fe54 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -1,4 +1,4 @@
" Observe VimL conventions for two-space indents
-set shiftwidth=2
-set softtabstop=2
-set tabstop=2
+setlocal shiftwidth=2
+setlocal softtabstop=2
+setlocal tabstop=2