Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Vim text editor from the terminal

I don't fully understand the question, but you can use the following to do anything you want (ex cmd) on a file and exit. vimdo() { vim $2 --not-a-term -c "$1" -es +"w >> /dev/...
eyal karni's user avatar
  • 1,136
1 vote
Accepted

Paste and enter insert mode at the beginning of line, terminal bash Lunarvim

In Terminal mode Vim let the terminal manage the way input are managed. That is why hitting I merely switch from Normal mode to Terminal mode moves the cursor at the end of the line. You could add the ...
Vivian De Smedt's user avatar

Top 50 recent answers are included