Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to use multiple cursor in vi text editor Vim/vi text editor (Termux/Linux)
- ##################################################################
- Join our telegram channel for more : https://t.me/LinuxClassesEFXTv
- ##################################################################
- 1. Install Vim-Plug
- curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
- https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- 2. Add Plugin to .vimrc
- vim ~/.vimrc
- Add these lines: exclude x--x
- x----------------------------------------x
- call plug#begin('~/.vim/plugged')
- Plug 'terryma/vim-multiple-cursors' " Multiple Cursors Plugin
- call plug#end()
- x----------------------------------------x
- 3. Install the Plugin
- Open vim and type
- :PlugInstall
- 4. Use Multiple Cursors
- Place the cursor over a word (e.g., hello).
- Press Ctrl + N to select it and more occurrences.
- Press Ctrl + A to select all occurrences at once.
- Start typing, and it will replace all selected words in real-time.
- Press Esc to exit multi-cursor mode.
- Visit for more VIM commands and videos:
- https://t.me/efxtv/4120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement