I have a long .csv log file that I regularly append data to. I am usually interested in editing last 10 entries or so. I suppose vim modelines do not support Ex commands due to security reasons. Is there a workaround to make this Ex command a modeline in vim so that whenever the specific .csv file is opened, it shows only last 10 entries (like head
but in vim).
:1,$-10fold
Buf(Win)Enter
autocommand