dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 1c6f59bd458180ecc8ac668d44a958a6d05eb311
parent 0602635c7bed588d6759285f30f4b81d33b4680a
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sat, 16 Oct 2021 03:00:15 -0400

Replace ftplugin/ with statements in vimrc

Diffstat:
D.vim/ftplugin/gemtext.vim | 2--
D.vim/ftplugin/gitcommit.vim | 3---
D.vim/ftplugin/mail.vim | 3---
D.vim/ftplugin/markdown.vim | 1-
D.vim/ftplugin/python.vim | 3---
D.vim/ftplugin/tmux.vim | 1-
D.vim/ftplugin/vim.vim | 1-
M.vim/vimrc | 14+++++++++++++-
8 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/.vim/ftplugin/gemtext.vim b/.vim/ftplugin/gemtext.vim @@ -1,2 +0,0 @@ -call SpellCheckToggle() -set textwidth=0 diff --git a/.vim/ftplugin/gitcommit.vim b/.vim/ftplugin/gitcommit.vim @@ -1,3 +0,0 @@ -set nofoldenable -set textwidth=72 -call SpellCheckToggle() diff --git a/.vim/ftplugin/mail.vim b/.vim/ftplugin/mail.vim @@ -1,3 +0,0 @@ -set nofoldenable -set textwidth=72 -call SpellCheckToggle() diff --git a/.vim/ftplugin/markdown.vim b/.vim/ftplugin/markdown.vim @@ -1 +0,0 @@ -call SpellCheckToggle() diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim @@ -1,3 +0,0 @@ -set expandtab -set softtabstop=4 -set shiftwidth=4 diff --git a/.vim/ftplugin/tmux.vim b/.vim/ftplugin/tmux.vim @@ -1 +0,0 @@ -setlocal foldmethod=marker diff --git a/.vim/ftplugin/vim.vim b/.vim/ftplugin/vim.vim @@ -1 +0,0 @@ -setlocal foldmethod=marker diff --git a/.vim/vimrc b/.vim/vimrc @@ -1,5 +1,4 @@ let mapleader = "," -noremap <silent> <C-S> :call SpellCheckToggle()<CR> "Plugins Used: {{{ " vim-monochrome — (colorscheme) @@ -156,4 +155,17 @@ func! SpellCheckToggle() hi SpellRare cterm=bold ctermfg=6 hi SpellLocal cterm=bold ctermfg=5 endfu +noremap <silent> <C-S> :call SpellCheckToggle()<CR> +" }}} + +" Preferences for File Formats {{{ +autocmd FileType gemtext call SpellCheckToggle() +autocmd FileType gemtext setl tw=0 +autocmd FileType gitcommit call SpellCheckToggle() +autocmd FileType gitcommit setl tw=72 +autocmd FileType mail call SpellCheckToggle() +autocmd FileType mail setl tw=72 +autocmd FileType markdown call SpellCheckToggle() +autocmd FileType python setl expandtab tabstop=4 shiftwidth=4 +autocmd FileType vim setl foldmethod=marker " }}}