New answers tagged

0 votes

How to use value under cursor in the shell command?

There is something to remember: Vim treats the commands differently. Some of them accept literals and cmdline-specials, so you can do :r !echo <cword> (or maybe :.!echo <cword>) While ...
user avatar
  • 15.8k
3 votes
Accepted

How to use value under cursor in the shell command?

If you are typing interactively in the vim command line you can hit CtrlrCtrlw to include the current word or CtrlrCtrla to include the current WORD. If you are writing a function or a command you can ...
user avatar
1 vote

How to make vim position the cursor with custom mapping for <C-LeftMouse>?

Let's say for example that you are talking about the *N command for the custom bit. Then the following should work: nnoremap <C-LeftMouse> <LeftMouse>*N (when I tried this it worked ...
user avatar
  • 21k
1 vote
Accepted

How do you set the cursor style in Vim terminal windows?

Suppose &shell is set to /usr/bin/bash, then append printf '\033[3 q' to ~/.bashrc; launch a new vim instance and run :term and launch another vim instance from that terminal window and run :term, ...
user avatar

Top 50 recent answers are included