From 4861dbabffa74795aea57a4a06c97c7d8059c62a Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sat, 11 Jan 2020 18:59:10 +0100 Subject: Vim ftplugin updates. --- files/vim/ftplugin/asciidoc/asciidoc.vim | 13 +++++++++++++ files/vim/ftplugin/cpp/snips/template.txt | 1 + files/vim/ftplugin/text/text.vim | 3 +-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 files/vim/ftplugin/asciidoc/asciidoc.vim 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 C :sp ~/.vim/ftplugin/asciidoc/asciidoc.vim + +" Proselint is slow to act +nnoremap sp :SyntasticCheck proselint +nnoremap e :Errors diff --git a/files/vim/ftplugin/cpp/snips/template.txt b/files/vim/ftplugin/cpp/snips/template.txt index 8479d26..90ef863 100644 --- a/files/vim/ftplugin/cpp/snips/template.txt +++ b/files/vim/ftplugin/cpp/snips/template.txt @@ -2,4 +2,5 @@ int main() { <+++> + return 0; } diff --git a/files/vim/ftplugin/text/text.vim b/files/vim/ftplugin/text/text.vim index 18239e7..c82dff1 100644 --- a/files/vim/ftplugin/text/text.vim +++ b/files/vim/ftplugin/text/text.vim @@ -1,11 +1,10 @@ -" ~/.vim/ftplugin/text.vim +" ~/.vim/ftplugin/text/text.vim " Plain text files vim configuration " " Syntastic linter: proselint call matchadd('ColorColumn', '\%101v', 100) setlocal textwidth=100 -setlocal spell nnoremap C :sp ~/.vim/ftplugin/text/text.vim -- cgit v1.2.1