modernize vim-sample

This commit is contained in:
Johannes Rieken
2016-12-30 11:03:46 +01:00
parent 3f64100f11
commit 8f96a71c10
4 changed files with 56 additions and 45 deletions

View File

@ -15,44 +15,54 @@
],
"main": "./out/src/extension",
"contributes": {
"keybindings": [{
"command": "vim.goToNormalMode",
"key": "escape",
"when": "editorTextFocus && !vim.inNormalMode"
},{
"command": "vim.clearInput",
"key": "escape",
"when": "editorTextFocus && vim.hasInput"
},{
"command": "redo",
"key": "ctrl+r",
"mac": "cmd+r",
"when": "editorTextFocus"
},{
"command": "e",
"key": "ctrl+e",
"when": "editorTextFocus && vim.inNormalMode"
},{
"command": "d",
"key": "ctrl+d",
"when": "editorTextFocus && vim.inNormalMode"
},{
"command": "f",
"key": "ctrl+f",
"when": "editorTextFocus && vim.inNormalMode"
},{
"command": "y",
"key": "ctrl+y",
"when": "editorTextFocus && vim.inNormalMode"
},{
"command": "u",
"key": "ctrl+u",
"when": "editorTextFocus && vim.inNormalMode"
},{
"command": "b",
"key": "ctrl+b",
"when": "editorTextFocus && vim.inNormalMode"
}]
"keybindings": [
{
"command": "vim.goToNormalMode",
"key": "escape",
"when": "editorTextFocus && !vim.inNormalMode"
},
{
"command": "vim.clearInput",
"key": "escape",
"when": "editorTextFocus && vim.hasInput"
},
{
"command": "redo",
"key": "ctrl+r",
"mac": "cmd+r",
"when": "editorTextFocus"
},
{
"command": "e",
"key": "ctrl+e",
"when": "editorTextFocus && vim.inNormalMode"
},
{
"command": "d",
"key": "ctrl+d",
"when": "editorTextFocus && vim.inNormalMode"
},
{
"command": "f",
"key": "ctrl+f",
"when": "editorTextFocus && vim.inNormalMode"
},
{
"command": "y",
"key": "ctrl+y",
"when": "editorTextFocus && vim.inNormalMode"
},
{
"command": "u",
"key": "ctrl+u",
"when": "editorTextFocus && vim.inNormalMode"
},
{
"command": "b",
"key": "ctrl+b",
"when": "editorTextFocus && vim.inNormalMode"
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
@ -61,6 +71,7 @@
},
"devDependencies": {
"typescript": "^1.8.5",
"vscode": "^0.11.0"
"vscode": "^1.0.0",
"@types/node": "*"
}
}
}

View File

@ -3,11 +3,13 @@
"module": "commonjs",
"target": "es5",
"outDir": "out",
"noLib": true,
"lib": [
"es6"
],
"sourceMap": true,
"rootDir": "."
"rootDir": "src"
},
"exclude": [
"node_modules"
]
}
}

View File

@ -1 +0,0 @@
/// <reference path="../node_modules/vscode/typings/node.d.ts" />

View File

@ -1 +0,0 @@
/// <reference path="../node_modules/vscode/typings/index.d.ts" />