annotate runtime/indent/dictdconf.vim @ 34653:8079960136db v9.1.0211

patch 9.1.0211: page-wise scrolling does not support smooth-scrolling Commit: https://github.com/vim/vim/commit/b9f5b95b7bec2414a5a96010514702d99afea18e Author: Luuk van Baal <luukvbaal@gmail.com> Date: Tue Mar 26 18:46:45 2024 +0100 patch 9.1.0211: page-wise scrolling does not support smooth-scrolling Problem: Page-wise scrolling with Ctrl-F/Ctrl-B implements it's own logic to change the topline and cursor. In doing so, skipcol is not handled properly for 'smoothscroll', and virtual lines. Solution: Re-use the logic from Ctrl-E/Ctrl-Y while staying backward compatible as much as possible. closes: #14268 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Mar 2024 19:00:04 +0100
parents 6dd88e45d47d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim indent file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1204
diff changeset
2 " Language: dictd(8) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1204
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1204
diff changeset
4 " Latest Revision: 2006-12-20
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:did_indent")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9 let b:did_indent = 1
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 setlocal indentkeys=0{,0},!^F,o,O cinwords= autoindent smartindent
1204
a3c21128b246 updated for version 7.1b
vimboss
parents: 839
diff changeset
12 setlocal nosmartindent
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 inoremap <buffer> # X#
28379
6dd88e45d47d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
14
6dd88e45d47d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
15 let b:undo_indent = "setl ai< cinw< indk< si< | silent! iunmap <buffer> #"