Mercurial > vim
view runtime/indent/chatito.vim @ 31168:25f6c7f77c70 v9.0.0918
patch 9.0.0918: MS-Windows: modifier keys do not work with mouse scroll event
Commit: https://github.com/vim/vim/commit/0319306f20d2a5989d1f5639a47d77cebeac2f29
Author: Christopher Plewright <chris@createng.com>
Date: Tue Nov 22 12:58:27 2022 +0000
patch 9.0.0918: MS-Windows: modifier keys do not work with mouse scroll event
Problem: MS-Windows: modifier keys do not work with mouse scroll events.
Solution: Use K_SPECIAL instead of CSI for the modifier keys. (Christopher
Plewright, closes #11587)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Nov 2022 14:00:04 +0100 |
parents | 1e91e26ceebf |
children |
line wrap: on
line source
" Vim indent file " Language: Chatito " Maintainer: ObserverOfTime <chronobserver@disroot.org> " Last Change: 2022 Sep 20 if exists('b:did_indent') finish endif let b:did_indent = 1 setlocal indentexpr=GetChatitoIndent() setlocal indentkeys=o,O,*<Return>,0#,!^F let b:undo_indent = 'setl inde< indk<' if exists('*GetChatitoIndent') finish endif function GetChatitoIndent() let l:prev = v:lnum - 1 if getline(prevnonblank(l:prev)) =~# '^[~%@]\[' " shift indent after definitions return shiftwidth() elseif getline(l:prev) !~# '^\s*$' " maintain indent in sentences return indent(l:prev) else " reset indent after a blank line return 0 end endfunction