diff --git a/extension.ts b/extension.ts index 8112dcc1480..3c05df00497 100644 --- a/extension.ts +++ b/extension.ts @@ -95,6 +95,8 @@ export function activate(context: vscode.ExtensionContext) { registerCommand(context, 'extension.vim_ctrl_r', () => handleKeyEvent("ctrl+r")); registerCommand(context, 'extension.vim_ctrl_[', () => handleKeyEvent("ctrl+[")); + registerCommand(context, 'extension.vim_ctrl_f', () => handleKeyEvent("ctrl+f")); + registerCommand(context, 'extension.vim_ctrl_b', () => handleKeyEvent("ctrl+b")); registerCommand(context, 'extension.vim_%', () => handleKeyEvent("%")); diff --git a/package.json b/package.json index cbb70c3e2cc..7f9b1b5d79d 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,8 @@ { "key": "Ctrl+[", "command": "extension.vim_ctrl_[", "when": "editorTextFocus" }, { "key": "Ctrl+r", "command": "extension.vim_ctrl_r", "when": "editorTextFocus" }, + { "key": "Ctrl+f", "command": "extension.vim_ctrl_f", "when": "editorTextFocus" }, + { "key": "Ctrl+b", "command": "extension.vim_ctrl_b", "when": "editorTextFocus" }, { "key": "Shift+5", "command": "extension.vim_%", "when": "editorTextFocus" }, diff --git a/src/mode/modeNormal.ts b/src/mode/modeNormal.ts index 4f55da0c134..6556b9ec0b2 100644 --- a/src/mode/modeNormal.ts +++ b/src/mode/modeNormal.ts @@ -27,6 +27,8 @@ export class NormalMode extends Mode { "b" : async (c) => { return c.wordLeft().move(); }, "}" : async (c) => { return c.goToEndOfCurrentParagraph().move(); }, "{" : async (c) => { return c.goToBeginningOfCurrentParagraph().move(); }, + "ctrl+f": async (c) => { return vscode.commands.executeCommand("cursorPageDown"); }, + "ctrl+b": async (c) => { return vscode.commands.executeCommand("cursorPageUp"); }, "%" : async () => { return vscode.commands.executeCommand("editor.action.jumpToBracket"); }, ">>" : async () => { return vscode.commands.executeCommand("editor.action.indentLines"); }, "<<" : async () => { return vscode.commands.executeCommand("editor.action.outdentLines"); },