lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
688 stars 27 forks source link

Consider 'nomodeline' #50

Closed lambdalisue closed 7 years ago

lambdalisue commented 7 years ago

Vim's modeline feature breaks filetype often in :Gina commit, :Gina show, :Gina diff, and :Gina blame. So I think these command should set nomodeline.

Rel. https://github.com/lambdalisue/gina.vim/pull/45#issuecomment-283907680

lambdalisue commented 7 years ago
                   *'modeline'* *'ml'* *'nomodeline'* *'noml'*
'modeline' 'ml'     boolean (Vim default: on (off for root),
                 Vi default: off)
            local to buffer
lambdalisue commented 7 years ago
Besides changing options with the ":set" command, there are three alternatives
to set options automatically for one or more files:

1. When starting Vim initializations are read from various places.  See
   |initialization|.  Most of them are performed for all editing sessions,
   and some of them depend on the directory where Vim is started.
   You can create an initialization file with |:mkvimrc|, |:mkview| and
   |:mksession|.
2. If you start editing a new file, the automatic commands are executed.
   This can be used to set options for files matching a particular pattern and
   many other things.  See |autocommand|.
3. If you start editing a new file, and the 'modeline' option is on, a
   number of lines at the beginning and end of the file are checked for
   modelines.  This is explained here.