简体   繁体   English

pageup 和 pagedown 在使用 konsole 的 vim 中不起作用

[英]pageup and pagedown does not work in vim using konsole

I have just recently moved to SLES12 from SLES11我最近刚刚从 SLES11 转移到 SLES12

Using vim in SLES11 pageup and page down worked perfectly while SLES12 it is not.在 SLES11 pageup 和 page down 中使用 vim 效果很好,而 SLES12 则不然。 (in gvim - it does work) (在 gvim 中 - 它确实有效)

I am trying several solutions written in others threads like without success:(我正在尝试用其他线程编写的几种解决方案,但都没有成功:(

map <CTRL-V><CTRL-PAGEUP> :tabp<CR>

map <C-PageUp> :echo "hello"<CR>

map ^[[5^ :echo "hello"<CR>

I think it might related to the fact of the bindkeys of the terminals as one of the threads mention- but I do not find which one is related to pageup/down.我认为这可能与终端绑定键的事实有关,作为线程之一提到 - 但我没有找到哪一个与 pageup/down 有关。

any clue?任何线索?

This is a problem with the way your terminal is set up.这是终端设置方式的问题。 As you have stated you are using Konsole, you can check the settings by right clicking on an open terminal window and selecting Edit Current Profile :正如您所说您正在使用 Konsole,您可以通过右键单击打开的终端 window 并选择Edit Current Profile来检查设置:

在此处输入图像描述

That should open up another window like:这应该会打开另一个 window,例如:

在此处输入图像描述

On this screen select the keyboard option on the left and check your keyboards.在此屏幕上 select 左侧的键盘选项并检查您的键盘。 For a quick win you can try changing the keybinding or reset to default.为了快速获胜,您可以尝试更改键绑定或重置为默认值。 If that isn't enough you will need to go into the keybinding and ensure the PgUp is producing the expected code: ^[[5~ .如果这还不够,您将需要 go 进入键绑定并确保PgUp生成预期的代码: ^[[5~ Doing so should be fairly straightforward.这样做应该相当简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM