๐Ÿ“ Vim Editor Cheat Sheet

https://www.vim.org/


๐ŸŽ“ Specialized Vim Learning Site: vimate

Master the basics through this dedicated platform:

https://vimate.jp/


๐Ÿ› ๏ธ Essential Vim Operations

๐Ÿ“‚ File Operations

OperationCommand
Open file:e
Save file:w
Quit:q
Force quit:q!

๐Ÿ”„ Mode Switching

OperationCommand
Enter Insert modei
Insert at line startI
Insert at line endA
Insert new line belowo
Return to Normal modeCtrl + [ / Esc

๐Ÿ’ก Pro Tip
Keyboard layouts vary - train yourself to use Ctrl+[ instead of Esc for smoother workflow!

๐Ÿš— Cursor Navigation

OperationCommand
Scroll downCtrl + f
Scroll upCtrl + b
Jump to first linegg
Jump to last lineG

โ›“๏ธ Line Joining

Press J (Shift+j) on the line you want to join


๐Ÿš€ Advanced Vim Techniques

โœ‚๏ธ Cut/Paste Specific Ranges

  1. Move to starting line
  2. Set mark with ms
  3. Move to ending line
  4. Delete marked area with d ' s
  5. Paste with p

๐Ÿ“ Batch Indentation

  1. Shift + v (visual line mode)
  2. Select target lines
  3. Shift + > (indent right)

๐ŸŒŸ Full-file Indentation

  1. Shift + v โ†’ Shift + g (select all lines)
  2. >> (indent entire file)

๐Ÿ” Interactive Replace

:%s/old_text/new_text/gc

๐Ÿงฉ Plugin Management

๐Ÿ”Œ Vundle Plugin Setup

https://github.com/VundleVim/

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

After launching Vim, execute:

:PluginInstall

๐Ÿ Python Development Setup

โšก JEDI-VIM Installation

Autocompletion powerhouse for Python

git clone --recursive https://github.com/davidhalter/jedi-vim.git ~/.vim/bundle/jedi-vim

Add to your .vimrc:

Plugin 'davidhalter/jedi-vim'

๐Ÿ’ป CLI Coding Mastery
Transform terminal sessions into IDE-like environments with:
Vim + JEDI = PyCharm-level completions in console! โšก