Created
February 28, 2023 20:16
-
-
Save LinuxIsCool/6e153c9d0e94eec48857325fefe1a5c6 to your computer and use it in GitHub Desktop.
Commenting in JSX using nerdcommenter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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