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

:norm[al] doesn't work with greater/less than symbols #4086

Open
aquaductape opened this issue Sep 20, 2019 · 3 comments
Open

:norm[al] doesn't work with greater/less than symbols #4086

aquaductape opened this issue Sep 20, 2019 · 3 comments

Comments

@aquaductape
Copy link

aquaductape commented Sep 20, 2019

So I'm trying to add html tags to a column such as this

hello
hello
hello
hello
hello
hello

In vim/nvim you would select all with ggVG then use :'<,'>norm A</div> and the result is

hello</div>
hello</div>
hello</div>
hello</div>
hello</div>
hello</div>
hello</div>

but in vscode nothing happens and no errors are shown, also the console doesn't show any errors

I have neovim enabled with vscode

vscode

Version: 1.38.1
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:30:08.229Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.0.0-29-generic snap

settings.json

{
  "editor.fontSize": 18,
  "editor.wordWrap": "on",
  "emmet.triggerExpansionOnTab": true,
  "liveServer.settings.donotShowInfoMsg": true,
  "workbench.startupEditor": "newUntitledFile",
  "window.menuBarVisibility": "toggle",
  "window.zoomLevel": 0,
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },
  "emmet.syntaxProfiles": {
    "javascript": "jsx"
  },
  "liveServer.settings.donotVerifyTags": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  // "window.titleBarStyle": "custom",
  "terminal.integrated.fontSize": 17,
  "workbench.sideBar.location": "left",
  "workbench.editor.enablePreviewFromQuickOpen": true,
  "editor.showUnused": true,
  "editor.tabSize": 2,
  "editor.formatOnSave": true,
  "prettier.singleQuote": true,
  "prettier.trailingComma": "es5",
  "workbench.colorCustomizations": {
    "[Dainty – Nord (chroma 2, lightness 3)]": {
      "list.activeSelectionBackground": "#4a5d7c"
    },
    "[Material Theme Palenight]": {
      "editorCursor.foreground": "#c7c7c7",
      "list.activeSelectionBackground": "#3b4a63"
    }
  },
  "bracketPairColorizer.consecutivePairColors": [
    "()",
    "[]",
    "{}",
    [
      "#ccc",
      "Grey",
      "LightSkyBlue"
    ],
    "Red"
  ],
  "html.autoClosingTags": false,
  "vim.easymotion": true,
  "vim.enableNeovim": true,
  "vim.neovimPath": "nvim",
  "vim.incsearch": true,
  "vim.useSystemClipboard": true,
  "vim.useCtrlKeys": true,
  "vim.hlsearch": true,
  "vim.insertModeKeyBindings": [
    {
      "before": [
        "j",
        "j"
      ],
      "after": [
        "<Esc>"
      ]
    }
  ],
  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": [
        "<C-n>"
      ],
      "commands": [
        ":nohl"
      ]
    },
    {
      "before": [
        "L"
      ],
      "after": [
        "$"
      ]
    },
    {
      "before": [
        "H"
      ],
      "after": [
        "^"
      ]
    },
    {
      "before": [
        "j"
      ],
      "after": [
        "g",
        "j"
      ]
    },
    {
      "before": [
        "Z",
        "Z"
      ],
      "commands": [
        ":wq"
      ]
    },
    {
      "before": [
        "y",
        "f"
      ],
      "after": [
        "v",
        "a",
        "{",
        "V"
      ]
    }
  ],
  "vim.visualModeKeyBindingsNonRecursive": [
    {
      "before": [
        "p"
      ],
      "after": [
        "p",
        "g",
        "v",
        "y"
      ]
    },
    {
      "before": [
        "y"
      ],
      "after": [
        "y",
        "g",
        "v",
        "<Esc>"
      ]
    }
  ],
  "vim.leader": "<space>",
  "vim.handleKeys": {
    "<C-a>": true,
    "<C-f>": false
  },
  "workbench.colorTheme": "Material Theme Palenight",
  "vim.easymotionMarkerHeight": 20,
  "vsicons.associations.folders": [
    {
      "icon": "container",
      "extensions": [
        "container",
        "containers"
      ],
      "format": "svg"
    }
  ],
  "vsicons.associations.folderDefault.folder": {
    "icon": "myFolder",
    "format": "svg"
  },
  "vsicons.associations.files": [
    {
      "icon": "myMarkdown",
      "extensions": [
        "md",
        "custom.md",
        "markdown",
        "mdown"
      ],
      "format": "svg",
      "overrides": "md"
    }
  ],
  "workbench.iconTheme": "vscode-icons",
  "breadcrumbs.filePath": "off",
  "debug.allowBreakpointsEverywhere": true,
  "extensions.ignoreRecommendations": false,
  "terminal.integrated.fontFamily": "'PowerlineSymbols','Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
  "vim.easymotionMarkerFontWeight": "bold",
  "vim.easymotionMarkerFontSize": "15"
}
@caleywoods
Copy link
Contributor

caleywoods commented Sep 20, 2019

I tested it here and verified the same issue. Status bar reports that :'<,'>norm A</div> is not an editor command.

Temporary workaround: :%s/$/<\/div> (replace $ (end of line) with </div>)

@aquaductape
Copy link
Author

aquaductape commented Sep 20, 2019

@caleywoods
Since you have that status bar report is not an editor command that means you don't have neovim integrated into vscode, currently that is the only way to use :normal command

Also another workaround is to use Shift+i or Shift+a with Visual Selection since it will create multiple cursors and then write tags(make sure html and jsx autocomplete is disabled)

@caleywoods
Copy link
Contributor

@aquaductape Forgot about that, I have nvim setup but I turned off the VSCode setting a few weeks back. Thanks!

@J-Fields J-Fields changed the title :normal doesn't work with greater/less than symbols :norm[al] doesn't work with greater/less than symbols Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants