aboutsummaryrefslogtreecommitdiff
path: root/vim/indent
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-12-08 22:57:01 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-08 22:57:01 +1300
commit8490630ee7ce6baf14d784676a16321931c7b899 (patch)
tree25160b0b980a8ac534579382e9e4dc0dda415ab4 /vim/indent
parentDon't use cache for phpcsff(1df) (diff)
downloaddotfiles-8490630ee7ce6baf14d784676a16321931c7b899.tar.gz
dotfiles-8490630ee7ce6baf14d784676a16321931c7b899.zip
Switch to default tabs, spaces for some filetypes
Lately I've been cooperating a lot with other administrators in managing some config files, and because they all use Vim with no configuration or nearly no configuration, they use tabs for indentation everywhere. This is showing up particularly often in configuration files. It now seems like a good idea to use tabs as the default so I don't have to keep cleaning up these files afterwards. For most of the languages in which I write actual programs, however, I'm sticking with spaces for now.
Diffstat (limited to 'vim/indent')
-rw-r--r--vim/indent/csv.vim24
-rw-r--r--vim/indent/help.vim20
-rw-r--r--vim/indent/tsv.vim2
3 files changed, 0 insertions, 46 deletions
diff --git a/vim/indent/csv.vim b/vim/indent/csv.vim
deleted file mode 100644
index e97ab29e..00000000
--- a/vim/indent/csv.vim
+++ /dev/null
@@ -1,24 +0,0 @@
-" Only do this when not done yet for this buffer
-if exists('b:did_indent')
- finish
-endif
-let b:did_indent = 1
-
-" Manual indenting
-setlocal noautoindent
-let b:undo_indent = 'setlocal autoindent<'
-
-" Literal tabs
-setlocal noexpandtab
-let b:undo_indent .= '|setlocal expandtab<'
-if v:version > 703
- \ || v:version == 703 && has('patch629')
- setlocal shiftwidth=0
-else
- let &l:shiftwidth = &l:tabstop
-endif
-let b:undo_indent .= '|setlocal shiftwidth<'
-if &softtabstop != -1
- let &l:softtabstop = &l:shiftwidth
- let b:undo_indent .= '|setlocal softtabstop<'
-endif
diff --git a/vim/indent/help.vim b/vim/indent/help.vim
deleted file mode 100644
index 78de85d0..00000000
--- a/vim/indent/help.vim
+++ /dev/null
@@ -1,20 +0,0 @@
-" Only do this when not done yet for this buffer
-if exists('b:did_indent')
- finish
-endif
-let b:did_indent = 1
-
-" Literal tabs
-setlocal noexpandtab
-let b:undo_indent = 'setlocal expandtab<'
-if v:version > 703
- \ || v:version == 703 && has('patch629')
- setlocal shiftwidth=0
-else
- let &l:shiftwidth = &l:tabstop
-endif
-let b:undo_indent .= '|setlocal shiftwidth<'
-if &softtabstop != -1
- let &l:softtabstop = &l:shiftwidth
- let b:undo_indent .= '|setlocal softtabstop<'
-endif
diff --git a/vim/indent/tsv.vim b/vim/indent/tsv.vim
deleted file mode 100644
index ae72397c..00000000
--- a/vim/indent/tsv.vim
+++ /dev/null
@@ -1,2 +0,0 @@
-" TSVs have the same indent options as CSVs
-runtime! indent/csv.vim