Advertisement
efxtv

how to use multiple cursor in vi text editor Vim/vi text editor (Termux/Linux)

Mar 22nd, 2025 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | Cybersecurity | 0 0
  1. How to use multiple cursor in vi text editor Vim/vi text editor (Termux/Linux)
  2.  
  3. ##################################################################
  4. Join our telegram channel for more : https://t.me/LinuxClassesEFXTv
  5. ##################################################################
  6.  
  7. 1. Install Vim-Plug
  8. curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  9. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  10.  
  11. 2. Add Plugin to .vimrc
  12. vim ~/.vimrc
  13.  
  14. Add these lines: exclude x--x
  15. x----------------------------------------x
  16. call plug#begin('~/.vim/plugged')
  17. Plug 'terryma/vim-multiple-cursors' " Multiple Cursors Plugin
  18. call plug#end()
  19. x----------------------------------------x
  20.  
  21. 3. Install the Plugin
  22. Open vim and type
  23. :PlugInstall
  24.  
  25. 4. Use Multiple Cursors
  26. Place the cursor over a word (e.g., hello).
  27. Press Ctrl + N to select it and more occurrences.
  28. Press Ctrl + A to select all occurrences at once.
  29. Start typing, and it will replace all selected words in real-time.
  30.  
  31. Press Esc to exit multi-cursor mode.
  32.  
  33. Visit for more VIM commands and videos:
  34. https://t.me/efxtv/4120
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement