Skip to content

Not an editor command: MoveLine(1)Β #27

@Integralist

Description

@Integralist

πŸ‘‹πŸ»

I've only just noticed that this plugin has stopped working for me and it now just displays a message that suggests the plugin isn't installed correctly?

E492: Not an editor command: MoveLine(1)

Here is my config...

  {
    "fedepujol/move.nvim",
    config = function()
      local opts = { noremap = true, silent = true }
      -- Normal-mode commands
      vim.keymap.set('n', '<C-j>', ':MoveLine(1)<CR>', opts)
      vim.keymap.set('n', '<C-k>', ':MoveLine(-1)<CR>', opts)
      vim.keymap.set('n', '<C-h>', ':MoveHChar(-1)<CR>', opts)
      vim.keymap.set('n', '<C-l>', ':MoveHChar(1)<CR>', opts)

      -- Visual-mode commands
      vim.keymap.set('v', '<S-j>', ':MoveBlock(1)<CR>', opts)
      vim.keymap.set('v', '<S-k>', ':MoveBlock(-1)<CR>', opts)
      vim.keymap.set('v', '<S-h>', ':MoveHBlock(-1)<CR>', opts)
      vim.keymap.set('v', '<S-l>', ':MoveHBlock(1)<CR>', opts)
    end
  }

You can see my lazy.nvim lock file here:
https://github.com/Integralist/nvim/blob/main/lazy-lock.json#L39

It's showing as being on the latest commit for this plugin.

I'm not sure why I would be seeing this specific type of error.

Any ideas?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions