Mercurial > vim
annotate runtime/indent.vim @ 16174:0f3c50a68637 v8.1.1092
patch 8.1.1092: setting 'guifont' when maximized resizes the Vim window
commit https://github.com/vim/vim/commit/372674fca3250069d8f4943b572474ce077849fd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 20:31:22 2019 +0100
patch 8.1.1092: setting 'guifont' when maximized resizes the Vim window
Problem: Setting 'guifont' when maximized resizes the Vim window. When
'guioptions' contains "k" gvim may open with a tiny window.
Solution: Avoid un-maximizing when setting 'guifont'. (Yee Cheng Chin,
closes #3808)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 20:45:04 +0100 |
parents | 19ef2bbf569c |
children | f37561549ec2 |
rev | line source |
---|---|
7 | 1 " Vim support file to switch on loading indent files for file types |
2 " | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
1549 | 4 " Last Change: 2008 Feb 22 |
7 | 5 |
6 if exists("did_indent_on") | |
7 finish | |
8 endif | |
9 let did_indent_on = 1 | |
10 | |
11 augroup filetypeindent | |
233 | 12 au FileType * call s:LoadIndent() |
13 func! s:LoadIndent() | |
14 if exists("b:undo_indent") | |
15 exe b:undo_indent | |
16 unlet! b:undo_indent b:did_indent | |
17 endif | |
1549 | 18 let s = expand("<amatch>") |
19 if s != "" | |
233 | 20 if exists("b:did_indent") |
21 unlet b:did_indent | |
22 endif | |
1549 | 23 |
24 " When there is a dot it is used to separate filetype names. Thus for | |
25 " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim". | |
26 for name in split(s, '\.') | |
27 exe 'runtime! indent/' . name . '.vim' | |
28 endfor | |
233 | 29 endif |
30 endfunc | |
7 | 31 augroup END |