Skip to content


Many Errors after changing the filetype #9

fanglingsu opened this Issue · 3 comments

2 participants


If I load a csv file and want to change the filetype to disable the csv features by setting :set ft=txt or somethin similar, I get many error on using h, j ,k , l and the cursor keys for movement that make it impossible to work unti the filetype is set back to csv.

Error for h, j, k and l keys are only shown if g:csv_highlight_column is enabled, because the HiColumn function isn't available anymore but already referenced throuhgt autocommand for CursorMoved.

Maybe we should have a second function to cleanup all staff done by InitCSV.


Pretty nice, no more errors. But I got a message on startup that the command HiColumn is not defined. I haven't tested it much, but this patch should remove the warning on startup (fanglingsu@55c69f9).


Thanks, included it and pushed it to master

@fanglingsu fanglingsu closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.