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

:[line number]d causes type error #3678

Closed
Nader-gator opened this issue Apr 14, 2019 · 2 comments
Closed

:[line number]d causes type error #3678

Nader-gator opened this issue Apr 14, 2019 · 2 comments

Comments

@Nader-gator
Copy link

when I execute the command :[line number]d, which should delete the entire line, :75d for example, vscode throws a type error. this type error happens both whether line 75 exists with code on it or not

here's my config file

"vim.easymotion": true,
    "vim.sneak": true,
    "vim.incsearch": true,
    "vim.useSystemClipboard": true,
    "vim.useCtrlKeys": true,
    "vim.hlsearch": true,
    "vim.insertModeKeyBindings": [{
        "before": ["j", "j"],
        "after": ["<Esc>"]
    }],
    "vim.normalModeKeyBindingsNonRecursive": [
        {
            "before": ["<leader>", "d"],
            "after": ["d", "d"]
        },
        {
            "before": ["<C-n>"],
            "commands": [":nohl"]
        },
        {
            "before": ["<leader>","s"],
            "after": ["<leader>", "<leader>", "<leader>","b","d","w"]
        }
    ],
    "vim.leader": "<space>",
    "vim.handleKeys": {
        "<C-a>": false,
        "<C-f>": false
    },
    "vim.easymotionMarkerYOffset": 5,
    // "vim.easymotionMarkerForegroundColorTwoChar":"blue",
    "vim.easymotionMarkerBackgroundColor":"gray",
    "vim.easymotionMarkerFontWeight":"bold"

Screen Shot 2019-04-14 at 1 35 40 PM

  • Extension (VsCodeVim) version: 1.4.0
  • VSCode version: 1.33.1
  • OS: MacOS 10.14.4
@areinmeyer
Copy link

Looks like you need Enable neovim (vim.enableNeoVim: true) set to true to use the :[x]d command. Set to true that command works for me, but when it's set to false I get the same error as you did.

@Nader-gator
Copy link
Author

yea that seems to resolve the issue

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

No branches or pull requests

2 participants