by snthpy · 8y ago · 0 comments
My use case is that I sometimes need to inspect large CSV files and vim will take a long time and then abort saying that it couldn't complete loading the file.
I guess I could use
head -n 100 data.CSV | vim
but it would be nice if I could scroll through the file in vim. split data.CSV; vim x*
[0] https://sanctum.geek.nz/arabesque/actually-using-ed/You might want to tune `set syn_maxcol=256` to avoid highlighting or disable syntax completely. It might help to set the filetype to something else for CSV. If plugins slow you down use `-u NONE`.
> head -n 100 data.CSV
You could do something similar with
sed -n '101,200p' data.CSV | vim -