Skip to content

Commit

Permalink
Fix non-working arrow key bindings for VS Code Vim
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 8, 2018
1 parent 72b454e commit f9a9d68
Showing 1 changed file with 19 additions and 44 deletions.
63 changes: 19 additions & 44 deletions settings/Library/Application Support/Code/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,64 +21,39 @@
// "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": [
"up"
],
"after": [
"<C-o>",
"g",
"k"
]
"before": ["%"],
"after": ["%"]
},
{
"before": [
"down"
],
"after": [
"<C-o>",
"g",
"j"
]
"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": [
{
"before": [
"j"
],
"after": [
"g",
"j"
]
"before": ["j"],
"after": ["g", "j"]
},
{
"before": [
"k"
],
"after": [
"g",
"k"
]
"before": ["k"],
"after": ["g", "k"]
},
{
"before": [
"down"
],
"after": [
"g",
"j"
]
"before": ["down"],
"after": ["g", "j"]
},
{
"before": [
"up"
],
"after": [
"g",
"k"
]
"before": ["up"],
"after": ["g", "k"]
}
],
"files.trimTrailingWhitespace": true,
Expand Down

0 comments on commit f9a9d68

Please sign in to comment.