How do I comment in Vimrc?

How do I comment in Vimrc?

One trick:

  1. place your cursor on the first character of the first line to comment.
  2. press Ctrl-V to enter in Visual Block mode.
  3. get your cursor down until the last line to comment.
  4. press I (shift+i) to enter in conditional insert mode.
  5. press ‘” ‘ to comment (a quote and a space)
  6. press Esc to quit insert mode.

How do I edit Vimrc?

Using file name completion, you could type :e $M then press Tab until you see the desired variable. If you only want to see the path, type :echo $M then press Tab to see the variable, and press Enter. In gvim, the Edit menu includes “Startup Settings” which will use $MYVIMRC to edit your vimrc file.

How to change the color of a comment in Vim?

There are various colour schemes in vim. default colour scheme displays comment in blue colour which makes hard to read in black terminal background. I prefer to use desert colour scheme which displays in readable colours. To enable desert colour scheme in vim, use the command :color desert.

What’s the best color scheme to use in Vim?

Note: If those color schemes don’t seem to make any change to your vim session, try some of the other color schemes listed below, such as darkblue, evening, shine, etc. Once you’ve settled on a vim colorscheme that you like, you’ll want to configure that as the default colorscheme in your vim configuration file, vimrc.

Where is the Vim color settings file located?

You can control your vim color settings in your vim startup file. On older Unix systems the vi configuration file was named .exrc, and on modern systems it is named .vimrc. Either file will be located in your home directory on a Unix or Linux system.

When did Vim start rendering comments in cyan?

But after upgrading a machine to Ubuntu 20.04, Vim started rendering comments in cyan—and since the “Identifier” syntax category also rendered in cyan, he was unhappy enough about it to decide to change the defaults.