Skip to content

Commit

Permalink
Switch to keybindings instead of vim settings
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 27, 2018
1 parent 5820a25 commit 7471dd6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
10 changes: 10 additions & 0 deletions settings/Library/Application Support/Code/User/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,15 @@
"key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "down",
"command": "cursorDown",
"when": "textInputFocus"
},
{
"key": "up",
"command": "cursorUp",
"when": "textInputFocus"
}
]
34 changes: 17 additions & 17 deletions settings/Library/Application Support/Code/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@
"vim.useSystemClipboard": true,
// "vim.debug.loggingLevel": "debug",
// Fix moving down full lines on word wrapped lines https://stackoverflow.com/a/46436056/1268612
"vim.insertModeKeyBindings": [
// Super hacky fix to arrow key bindings below not working
// https://github.com/VSCodeVim/Vim/issues/2924
// TODO: Remove! This makes the percent symbol very slow.
{
"before": ["%"],
"after": ["%"]
},
{
"before": ["down"],
"after": ["<C-o>", "g", "j"]
},
{
"before": ["up"],
"after": ["<C-o>", "g", "k"]
}
],
// "vim.insertModeKeyBindings": [
// // Super hacky fix to arrow key bindings below not working
// // https://github.com/VSCodeVim/Vim/issues/2924
// // TODO: Remove! This makes the percent symbol very slow.
// {
// "before": ["%"],
// "after": ["%"]
// },
// {
// "before": ["down"],
// "after": ["<C-o>", "g", "j"]
// },
// {
// "before": ["up"],
// "after": ["<C-o>", "g", "k"]
// }
// ],
// Fix moving down full lines on word wrapped lines https://stackoverflow.com/a/46436056/1268612
"vim.normalModeKeyBindingsNonRecursive": [
{
Expand Down

0 comments on commit 7471dd6

Please sign in to comment.