Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode Neovim move block in higlight mode #3

Closed
phortonssf opened this issue Oct 3, 2020 · 1 comment · Fixed by #9
Closed

VSCode Neovim move block in higlight mode #3

phortonssf opened this issue Oct 3, 2020 · 1 comment · Fixed by #9

Comments

@phortonssf
Copy link
Owner

phortonssf commented Oct 3, 2020

Need to be able to use Alt J or K to move visual blocks of code in NeoVim for VScode

@phortonssf
Copy link
Owner Author

phortonssf commented Oct 3, 2020

Possibly Solutions
Vim-Mmove

keybindings.json for vscode to move lines with

    {
        "key": "alt+j",
        "command": "editor.action.moveLinesDownAction",
        "when": "editorTextFocus && neovim.mode != 'visual'"
    },
    {
        "key": "alt+k",
        "command": "editor.action.moveLinesUpAction",
        "when": "editorTextFocus && neovim.mode != 'visual'"
    },
    {
        "key": "alt+j",
        "command": "vscode-neovim.send",
        "when": "editorTextFocus && neovim.mode == 'visual'",
        "args": "<A-j>"
    },
    {
        "key": "alt+k",
        "command": "vscode-neovim.send",
        "when": "editorTextFocus && neovim.mode == 'visual'",
        "args": "<A-k>"
    },
    {
        "key": "alt+h",
        "command": "vscode-neovim.send",
        "when": "editorTextFocus && neovim.mode == 'visual'",
        "args": "<A-h>"
    },
    {
        "key": "alt+l",
        "command": "vscode-neovim.send",
        "when": "editorTextFocus && neovim.mode == 'visual'",
        "args": "<A-l>"
    }

@phortonssf phortonssf changed the title Vim move block in higlight mode VSCode Neovim move block in higlight mode Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant