less
less copied to clipboard
Adding the ability to process the vim: command in files to automatically set tabstops
Great program. I use two scripts the invoke less with tab stops set to either 4 or 8 and I have a keyboard mapping to quickly toggles between them. However, I have a lot of different files with both sets of tab stops and I use the vim editor option to automatically set the tab using a :vim ts=4 or :vim ts=8 line near the top or bottom of the file -- usually on a comment line.
Is this something less could be made to look for and process when the input is a file rather than stdin?
Thanks.