aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/vim.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/vim.vim')
-rw-r--r--vim/ftplugin/vim.vim5
1 files changed, 5 insertions, 0 deletions
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 <buffer> <silent> <LocalLeader>l
+ \ :write !vint -s /dev/stdin<CR>