From 43165b683c25a198f73304cca8b76cb9f1fae2ce Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Nov 2017 00:59:23 +1300 Subject: Add lint mapping for Vimscript Runs `vint -s`; the -s includes stylistic suggestions. --- vim/ftplugin/vim.vim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 vim/ftplugin/vim.vim (limited to 'vim/ftplugin') diff --git a/vim/ftplugin/vim.vim b/vim/ftplugin/vim.vim new file mode 100644 index 00000000..e023553e --- /dev/null +++ b/vim/ftplugin/vim.vim @@ -0,0 +1,5 @@ +" Run `vint` over buffer +" /dev/stdin is not optimal here; it's widely implemented, but not POSIX. +" `vint` does not seem to have another way to parse standard input. +nnoremap l + \ :write !vint -s /dev/stdin -- cgit v1.2.3