sponsor Vim development Vim logo Vim Book Ad

Modelines Bundle : Insert Modelines from current settings

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

created by
Martin Krischik
 
script type
utility
 
description
Inserts three modelines with the currently active filetype, tabulator and spelling 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.

| Vim-Script  || https://www.vim.org/scripts/script.php?script_id=1352
| Source      || https://github.com/krischik/vim-modelines
| Wiki       || https://github.com/krischik/vim-modelines/wiki
| Releases    || https://github.com/krischik/vim-modelines/releases
| Issues      || https://github.com/krischik/vim-modelines/issues
| Discussions || https://github.com/krischik/vim-modelines/discussions
 
install details
Install from https://github.com/krischik/vim-modelines using dein (https://github.com/Shougo/dein.vim) or similar:

{{code|lang=vim|
call dein#begin('$HOME/vimfiles/bundles')
call dein#add('krischik/vim-modelines')
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: 18.119.131.72

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.
   
Vim at Github