-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cht
committed
Feb 18, 2022
1 parent
7f1e75e
commit a097538
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |