mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
modernize vim-sample
This commit is contained in:
@ -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": "*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,11 +3,13 @@
|
||||
"module": "commonjs",
|
||||
"target": "es5",
|
||||
"outDir": "out",
|
||||
"noLib": true,
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"rootDir": "."
|
||||
"rootDir": "src"
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
1
vim-sample/typings/node.d.ts
vendored
1
vim-sample/typings/node.d.ts
vendored
@ -1 +0,0 @@
|
||||
/// <reference path="../node_modules/vscode/typings/node.d.ts" />
|
||||
1
vim-sample/typings/vscode-typings.d.ts
vendored
1
vim-sample/typings/vscode-typings.d.ts
vendored
@ -1 +0,0 @@
|
||||
/// <reference path="../node_modules/vscode/typings/index.d.ts" />
|
||||
Reference in New Issue
Block a user