From b2cda4fe26122b8500d161b7ea7911eb22b42280 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 25 Feb 2019 20:23:10 -0500 Subject: [PATCH] Set tabs to two spaces in text files, and fix markdown-specific settings (it was using the wrong filetype) --- vim/config/after.vim | 2 +- vim/config/keyboard.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/config/after.vim b/vim/config/after.vim index 6f10094..e81766d 100644 --- a/vim/config/after.vim +++ b/vim/config/after.vim @@ -45,7 +45,7 @@ autocmd FileChangedRO * nested set noreadonly "filtype specific settings autocmd BufEnter,FileType sh setlocal iskeyword-=. - autocmd Filetype text,mkd,mkdc,gitcommit,notes,mail,notmuch,rst,taskreport setlocal nonumber spell nolist linebreak breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "set some defaults for word processing + autocmd Filetype text,markdown,mkdc,gitcommit,notes,mail,notmuch,rst,taskreport setlocal nonumber spell nolist linebreak tabstop=2 shiftwidth=2 breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "set some defaults for word processing autocmd Filetype text,gitcommit,notes,mail,notmuch,rst,taskreport setlocal wrap autocmd FileType tmux,taskrc setlocal commentstring=#\ %s "set the comment string to # autocmd FileType slrnrc setlocal commentstring=%%\ %s "set the comment string to % diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 8dd5c35..235f6f6 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -839,8 +839,8 @@ endif "markdown - autocmd FileType mkd nnoremap f ':TableFormat' - autocmd FileType mkd xnoremap f ':TableFormatgv' + autocmd FileType markdown nnoremap f ':TableFormat' + autocmd FileType markdown xnoremap f ':TableFormatgv' "qf-sidebar autocmd FileType qf map 0