Re: (forw) Re: [GoLugTech] Fw: [PLUG] vim and neovim bug
Steve Litt <[email protected]> Sat, 15 Jun 2019 02:46:25 -0400
| Newsgroups | gmane.org.user-groups.linux.svlug |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 14 Jun 2019 12:02:50 -0600 Akkana Peck <[email protected]> wrote: > Rick Moen writes: > > Quoting Steve Litt ([email protected]): > > > > > Yes. I use them quite a bit, especially to set folding=1. I spoze > > > I can live without them. > > > > Or make a vim macro that can be run efficiently by the user to set > > folding=1. Modelines are hardly the only way to do frequently > > needed operations in vi. They're inherently a security target > > because of their nature as an implicit autorun macro. > > I use them too, mostly for things like indentation levels and > styles/modes. As far as I know they're the only way to set > indentation levels and styles automatically for a file, so you > don't have to type a bunch of customization every time you edit > a given file. I have some files in a home-grown format called "Stylz" that are quite robust *unless* they're carelessly wordwrapped, at which time getting them back together would be a major undertaking. So those files use modelines. You just reminded me that I have an alternative. My Stylz files are all .stylz or .stz, so I can make them a new Vim filetype. This was done by VimOutliner, and it worked out extremely well. So if the files you speak of have specific types of filetypes or other things telling about their filenames, you can just go the ftdetect ftplugin syntax route. I'll investigate that more. SteveT Steve Litt June 2019 featured book: Thriving in Tough Times http://www.troubleshooters.com/thrive