annotate runtime/ftplugin/cpp.vim @ 30677:a345ad853b08
v9.0.0673
patch 9.0.0673: first line wong with 'smoothscroll' and 'scrolloff' zero
Commit: https://github.com/vim/vim/commit/46b54747c5d252c584571a321231bad9330018ec
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 6 15:46:49 2022 +0100
patch 9.0.0673: first line wong with 'smoothscroll' and 'scrolloff' zero
Problem: First line not scrolled properly with 'smoothscroll' and
'scrolloff' zero and using "k".
Solution: Make sure the cursor position is visible.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Thu, 06 Oct 2022 17:00:04 +0200 |
parents |
3a1ed539ae2a |
children |
4027cefc2aab |
rev |
line source |
7
|
1 " Vim filetype plugin file
|
|
2 " Language: C++
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
21499
|
4 " Last Change: 2020 Jul 26
|
7
|
5
|
|
6 " Only do this when not done yet for this buffer
|
|
7 if exists("b:did_ftplugin")
|
|
8 finish
|
|
9 endif
|
|
10
|
21499
|
11 " Behaves mostly just like C
|
7
|
12 runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
|
21499
|
13
|
|
14 " C++ uses templates with <things>
|
|
15 " Disabled, because it gives an error for typing an unmatched ">".
|
|
16 " set matchpairs+=<:>
|
|
17 " let b:undo_ftplugin ..= ' | setl matchpairs<'
|