From 2f2cd9d86dbe39845dfd33d07e245505a02e8b5a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 30 Oct 2017 11:42:57 +1300 Subject: 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. --- vim/after/ftplugin/vim.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim/after/ftplugin') 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 -- cgit v1.2.3