Skip to content

Commit

Permalink
move to ftplugin/csv.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
cht committed Feb 18, 2022
1 parent 7f1e75e commit a097538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ftdetect/csv-tools.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
au BufRead,BufNewFile *.csv,*.dat,*.tsv,*.tab set filetype=csv
au FileType csv command! -buffer CloseTopWindow lua require"csvtools".CloseWindow()
au FileType csv command! -buffer TopWindow lua require"csvtools".NewWindow()
autocmd! InsertEnter *.csv,*.bat,*.tsv,*.tab lua require"csvtools".deleteMark()
autocmd! InsertLeave *.csv,*.bat,*.tsv,*.tab lua require"csvtools".Highlight()
"au FIiletype csv autocmd CursorMoved csv lua require"csvtools".Highlight()
4 changes: 4 additions & 0 deletions ftplugin/csv.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
command! -buffer CloseTopWindow lua require"csvtools".CloseWindow()
command! -buffer TopWindow lua require"csvtools".NewWindow()
autocmd! InsertEnter *.csv,*.bat,*.tsv,*.tab lua require"csvtools".deleteMark()
autocmd! InsertLeave *.csv,*.bat,*.tsv,*.tab lua require"csvtools".Highlight()

0 comments on commit a097538

Please sign in to comment.