diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2021-07-15 00:51:52 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2021-07-15 00:51:52 +0200 |
commit | b8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8 (patch) | |
tree | e320dfd772c6688e6c7c10df036c64ae50c57e45 /stow/vim/dot-vim/ftplugin/text | |
parent | 821fe221f0a99cb808ea1f6485ba4fe2acf5b1b3 (diff) | |
download | configs-b8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8.tar.gz configs-b8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8.zip |
Morphed repo to stow structure. Added a bunch of configs in the process.
Diffstat (limited to 'stow/vim/dot-vim/ftplugin/text')
-rw-r--r-- | stow/vim/dot-vim/ftplugin/text/text.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/stow/vim/dot-vim/ftplugin/text/text.vim b/stow/vim/dot-vim/ftplugin/text/text.vim new file mode 100644 index 0000000..c370a74 --- /dev/null +++ b/stow/vim/dot-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> |