Tuesday, April 19, 2022

Vim tips and tricks

Where is my .vimrc file?

It is in /etc/vim

How to change vim cursor view in insert mode?

In the /etc/vim/vimrc file, add the following lines:

let &t_SI = "\e[5 q"

let &t_EI = "\e[1 q"

Other options (replace the number after \e[):

Ps = 0  -> blinking block.

Ps = 1  -> blinking block (default).

Ps = 2  -> steady block.

Ps = 3  -> blinking underline.

Ps = 4  -> steady underline.

Ps = 5  -> blinking bar (xterm).

Ps = 6  -> steady bar (xterm).

Credits to this stackoverflow answer.


No comments:

Post a Comment