Mercurial > vim
view runtime/indent/vim.vim @ 32086:45142117e206 v9.0.1374
patch 9.0.1374: function for setting options not used consistently
Commit: https://github.com/vim/vim/commit/c727b19e9f1df36e44321d933334c7b4961daa54
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri Mar 3 12:26:15 2023 +0000
patch 9.0.1374: function for setting options not used consistently
Problem: Function for setting options not used consistently.
Solution: Use a function for 'encoding' and terminal options. (Yegappan
Lakshmanan, closes #12099)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 Mar 2023 13:30:03 +0100 |
parents | a9b5ffbc0428 |
children | 4027cefc2aab |
line wrap: on
line source
vim9script # Vim indent file # Language: Vim script # Maintainer: Bram Moolenaar <Bram@vim.org> # Last Change: 2023 Feb 02 # Only load this indent file when no other was loaded. if exists('b:did_indent') finish endif b:did_indent = true b:undo_indent = 'setlocal indentkeys< indentexpr<' import autoload '../autoload/dist/vimindent.vim' setlocal indentexpr=vimindent.Expr() setlocal indentkeys+==endif,=enddef,=endfu,=endfor,=endwh,=endtry,=endclass,=endinterface,=endenum,=},=else,=cat,=finall,=END,0\\ execute('setlocal indentkeys+=0=\"\\\ ,0=#\\\ ') setlocal indentkeys-=0# setlocal indentkeys-=: