- To replace a region of text by the clipboard content use Visual select and the key command:
P. - To open a file or switch to another buffer a Fuzzy finder like Fzf.vim or Vim-Clap is helping a lot.
- But the standard
:eand:bwith Ctrl D is a nice start.
One of the big difference with other text editor is that Vim has no delete action but only a cut action.
This mean that when you want to replace the content of a region the standard approach of copy, delete, past fails. It
will be translated in Vim into copy, cut, past, the cut action will cancel the copy action and the operation will be
blank (unless you use another register for the cut action e.g.: "_x)
- Copy the text you want to use,
- Visually select the region you want to replace,
- Use the key command
Pto replace the region by the content of the clipboard.
- Use a fuzzy browser (like Fzf.vim or Vim-Clap).
- Use
'0to open the last opened file at the start of the session. - Use
:eCtrl d to get suggestions of file to open (works best with Wilder).
- Use a fuzzy browser (like Fzf.vim or Vim-Clap).
- Use
:b#to switch to the previous buffer. - Use
:bCtrl d to get suggestions of buffers to switch to (works best with Wilder).
- Switch more often between the Insert mode and the Normal mode.
- Accept it.