aboutsummaryrefslogtreecommitdiff
path: root/files/vim/ftplugin/asciidoc/asciidoc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'files/vim/ftplugin/asciidoc/asciidoc.vim')
-rw-r--r--files/vim/ftplugin/asciidoc/asciidoc.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/files/vim/ftplugin/asciidoc/asciidoc.vim b/files/vim/ftplugin/asciidoc/asciidoc.vim
new file mode 100644
index 0000000..b3ad544
--- /dev/null
+++ b/files/vim/ftplugin/asciidoc/asciidoc.vim
@@ -0,0 +1,13 @@
+" ~/.vim/ftplugin/asciidoc/asciidoc.vim
+" asciidoc vim configuration
+"
+" Syntastic linter: proselint
+
+call matchadd('ColorColumn', '\%81v', 100)
+setlocal textwidth=80
+
+nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/asciidoc/asciidoc.vim<CR>
+
+" Proselint is slow to act
+nnoremap <buffer> <leader>sp :SyntasticCheck proselint<CR>
+nnoremap <buffer> <leader>e :Errors<CR>