diff options
-rw-r--r-- | vim/ftdetect/csv.vim | 7 | ||||
-rw-r--r-- | vim/ftdetect/tsv.vim | 7 | ||||
-rw-r--r-- | vim/ftplugin/csv.vim | 3 | ||||
-rw-r--r-- | vim/ftplugin/tsv.vim | 3 |
4 files changed, 20 insertions, 0 deletions
diff --git a/vim/ftdetect/csv.vim b/vim/ftdetect/csv.vim new file mode 100644 index 00000000..4a2d082f --- /dev/null +++ b/vim/ftdetect/csv.vim @@ -0,0 +1,7 @@ +" Add automatic commands to detect CSV files +augroup dfcsv + autocmd! + autocmd BufNewFile,BufRead + \ *.csv + \ setfiletype csv +augroup END diff --git a/vim/ftdetect/tsv.vim b/vim/ftdetect/tsv.vim new file mode 100644 index 00000000..7cfaf1b8 --- /dev/null +++ b/vim/ftdetect/tsv.vim @@ -0,0 +1,7 @@ +" Add automatic commands to detect TSV files +augroup dftsv + autocmd! + autocmd BufNewFile,BufRead + \ *.tsv + \ setfiletype tsv +augroup END diff --git a/vim/ftplugin/csv.vim b/vim/ftplugin/csv.vim new file mode 100644 index 00000000..3d78df97 --- /dev/null +++ b/vim/ftplugin/csv.vim @@ -0,0 +1,3 @@ +" Manual indenting and literal tabs for CSVs +setlocal noautoindent +setlocal noexpandtab diff --git a/vim/ftplugin/tsv.vim b/vim/ftplugin/tsv.vim new file mode 100644 index 00000000..53841357 --- /dev/null +++ b/vim/ftplugin/tsv.vim @@ -0,0 +1,3 @@ +" Manual indenting and literal tabs for TSVs +setlocal noautoindent +setlocal noexpandtab |