aboutsummaryrefslogtreecommitdiff
path: root/files/vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'files/vim/ftplugin')
-rw-r--r--files/vim/ftplugin/asciidoc/asciidoc.vim13
-rw-r--r--files/vim/ftplugin/cpp/snips/template.txt1
-rw-r--r--files/vim/ftplugin/text/text.vim3
3 files changed, 15 insertions, 2 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>
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 <buffer> <leader>C :sp ~/.vim/ftplugin/text/text.vim<CR>