Q:

VS Code: How can I move the cursor by display line when wrapping in VS Code?

Running VS Code with the VSCodeVim emulation. Line wrapping and relative numbering is enabled in the configuration:
"editor.wordWrap": "on",
"editor.lineNumbers":"relative"

Display lines aren't numbered in the editor when a line is wrapped. Is it possible to configure VS Code to allow direct navigation to a display line?

A:

VSCodeVim can navigate by display lines just like Vim, with gk and gj. You can remap j and k like this:
"vim.normalModeKeyBindingsNonRecursive": [
    {
        "before": ["j"],
        "after": ["g", "j"]
    },
    {
        "before": ["k"],
        "after": ["g", "k"]
    }
]

A:

If you have word wrap on and would like the cursor to enter each wrapped line when using j, k, ↓ or ↑, set the following in VS Code's keybindings.json settings file (as in Andrew's answer, other options exist but they are slow):
{
  "key": "up",
  "command": "cursorUp",
  "when": "editorTextFocus && vim.active && !inDebugRepl && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
},
{
  "key": "down",
  "command": "cursorDown",
  "when": "editorTextFocus && vim.active && !inDebugRepl && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
},
{
  "key": "k",
  "command": "cursorUp",
  "when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode == 'Normal' && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
},
{
  "key": "j",
  "command": "cursorDown",
  "when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode == 'Normal' && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
}

Ref: The VSCodeVim Readme (after my documentation PR)

