aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin/text
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2021-07-15 01:57:30 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2021-07-15 01:57:30 +0200
commit14791883624bf10227a6ffa9172c8030b87d4675 (patch)
tree8245e91cf4da07344dd1148b32c51d2b8c33f76d /stow/vim/.vim/ftplugin/text
parentb8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8 (diff)
downloadconfigs-14791883624bf10227a6ffa9172c8030b87d4675.tar.gz
configs-14791883624bf10227a6ffa9172c8030b87d4675.zip
Lots of renames: stow can't handle folder with --dotfiles option.
Diffstat (limited to 'stow/vim/.vim/ftplugin/text')
-rw-r--r--stow/vim/.vim/ftplugin/text/text.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/stow/vim/.vim/ftplugin/text/text.vim b/stow/vim/.vim/ftplugin/text/text.vim
new file mode 100644
index 0000000..c370a74
--- /dev/null
+++ b/stow/vim/.vim/ftplugin/text/text.vim
@@ -0,0 +1,20 @@
+" ~/.vim/ftplugin/text/text.vim
+" Plain text files vim configuration
+"
+" Syntastic linter: proselint
+
+" Tabs hate: tabs are expanded to 2 spaces
+setlocal tabstop=2 shiftwidth=2 expandtab
+" Show existing tabs (they can be deleted with :retab)
+setlocal list
+
+let mapleader = " "
+
+call matchadd('ColorColumn', '\%101v', 100)
+setlocal textwidth=100
+
+nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/text/text.vim<CR>
+
+" Proselint is slow to act
+nnoremap <buffer> <leader>sp :SyntasticCheck proselint<CR>
+nnoremap <buffer> <leader>e :Errors<CR>