From 7ff346e6133155fe3b3818f80acede18e9e5eb36 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Wed, 3 Oct 2018 13:46:26 -0400 Subject: Updates vim setup --- vim/.vim/ftplugin/haskell.vim | 7 +++++++ vim/.vim/ftplugin/nroff.vim | 3 +++ vim/.vim/ftplugin/rst.vim | 5 +++++ vim/.vim/ftplugin/tr.vim | 1 - 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 vim/.vim/ftplugin/haskell.vim create mode 100644 vim/.vim/ftplugin/nroff.vim create mode 100644 vim/.vim/ftplugin/rst.vim delete mode 100644 vim/.vim/ftplugin/tr.vim (limited to 'vim/.vim/ftplugin') diff --git a/vim/.vim/ftplugin/haskell.vim b/vim/.vim/ftplugin/haskell.vim new file mode 100644 index 0000000..b0ce109 --- /dev/null +++ b/vim/.vim/ftplugin/haskell.vim @@ -0,0 +1,7 @@ +" Tab specific option +set tabstop=8 "A tab is 8 spaces +set expandtab "Always uses spaces instead of tabs +set softtabstop=4 "Insert 4 spaces when tab is pressed +set shiftwidth=4 "An indent is 4 spaces +set shiftround "Round indent to nearest shiftwidth multiple + diff --git a/vim/.vim/ftplugin/nroff.vim b/vim/.vim/ftplugin/nroff.vim new file mode 100644 index 0000000..fd5afa6 --- /dev/null +++ b/vim/.vim/ftplugin/nroff.vim @@ -0,0 +1,3 @@ +set spell + +autocmd BufWritePost * silent! execute "!grap % | pic | tbl | eqn | troff -ms | grops > %:r.ps" | redraw! diff --git a/vim/.vim/ftplugin/rst.vim b/vim/.vim/ftplugin/rst.vim new file mode 100644 index 0000000..4403a97 --- /dev/null +++ b/vim/.vim/ftplugin/rst.vim @@ -0,0 +1,5 @@ +" Tab specific option +set tabstop=8 "A tab is 8 spaces +set noexpandtab "Always uses spaces instead of tabs +set shiftwidth=2 "An indent is 4 spaces + diff --git a/vim/.vim/ftplugin/tr.vim b/vim/.vim/ftplugin/tr.vim deleted file mode 100644 index 87f4512..0000000 --- a/vim/.vim/ftplugin/tr.vim +++ /dev/null @@ -1 +0,0 @@ -set spell -- cgit v1.1