Skip to content

Instantly share code, notes, and snippets.

@LinuxIsCool
Created February 28, 2023 20:16
Show Gist options
  • Select an option

  • Save LinuxIsCool/6e153c9d0e94eec48857325fefe1a5c6 to your computer and use it in GitHub Desktop.

Select an option

Save LinuxIsCool/6e153c9d0e94eec48857325fefe1a5c6 to your computer and use it in GitHub Desktop.
Commenting in JSX using nerdcommenter
# Put the following in vim config before loading the nerdcommenter plugin:
`let g:NERDCustomDelimiters = {'javascript': { 'left': '//', 'right': '', 'leftAlt': '{/* ', 'rightAlt': ' */}' }}`
# Then, when working on your file, press `<leader>ca` to switch between primary and alternative delimiters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment