sponsor Vim development Vim logo Vim Book Ad

Modelines Bundle : Insert Modelines from current settings

 script karma  Rating 46/13, Downloaded by 1873  Comments, bugs, improvements  Vim wiki

created by
Martin Krischik
script type
Inserts two modelines with the currently active filetype and tabulator settings.

Can be used for:

- a quick overview of the file settings (like is the file dos or unix format).
- to set the file setting (just change the settings which are wrong).
- to make sure the file settings stay put when the file is saved and loaded.

Can be easily extended for more settings - just as you want it.

Source https://github.com/krischik/Modelines-Bundle
Releases: https://github.com/krischik/Modelines-Bundle/releases
Wiki https://github.com/krischik/Modelines-Bundle/wiki
Issues: https://github.com/krischik/Modelines-Bundle/issues
Discussions: https://github.com/krischik/Modelines-Bundle/discussions
install details
Install from https://github.com/krischik/Modelines-Bundle using deim:

call dein#begin('/Users/martin/vimfiles/bundles')
call dein#add('krischik/Modelines-Bundle')
call dein#end()
call dein#install()

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
Modelines-Bundle-v_3.0.0.zip 3.0.0 2022-09-18 7.0 Martin Krischik See https://github.com/krischik/Modelines-Bundle/releases/tag/v_3.0.0
modelines-2.0.vba 2.0 2007-09-17 7.0 Martin Krischik Now as a bundle. The new version will use autoload to conserve memory and start-up time.

New features: Uses NERD_Commenter when available, fallback to &commentstring when not.
modelines.vim 1.4 2006-11-18 7.0 Martin Krischik When integrating the Ada Mode into the standart runtime Bram enlightent me on which modeline settings are usefull and which are not. The result is this fixed version.

It also uses not the "vim: set ... :" syntax so it will work fine with languages using something like "/* */".
modelines.vim 1.1 2006-02-23 6.0 Martin Krischik This version does not need the NERD Commenter any more. It used the &commentstring instead.
modelines.vim 1.0 2005-09-13 6.0 Martin Krischik Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.