Skip to content

2024

Vim Useful Commands List - 1

Vim Useful Commands List - 1

Command Description
i insert - insert new text before cursor
x delete current character
X backspace delete previous character
i insert - insert new text before cursor
x delete current character
X backspace delete previous character
u undo
Escape change to command mode
o new line below
O new line above
dd cut current line
dw cut current word
p paste before
P paste after
/[search_string] find [search_string]
n next result
N previous result
/( find next opening parentesis
% jump to matching parentesis
ci( change all text inside brackets ()
di( delete all text inside brackets ()
w next word
Ctrl-D move down a page (around 15 lines)
Ctrl-U move up a page (around 15 lines)
:new [filename] open a new [filename] to edit (can {tab} to see list)
Ctrl-w w switch down between windows / buffers
Ctrl-w W switch up between windows / buffers
Ctrl-w N Convert terminal into a "normal mode" buffer
:ls list opened buffers / files opened for edit
:wa write all - save all opened files
:bd buffer delete - to close current buffer
:term opens terminal in separate window
yw yank / copy word
yy yank / copy line

Application specific password google

Create Application specific password for Google

Starting 2022-05-30 Google is no longer supporting less secure apps.

Please use below steps to turn on App password for your google account.

  1. Login to your Google email at https://gmail.google.com.
  2. Navigate to https://myaccount.google.com/signinoptions/two-step-verification.
  3. Enable "two step verification".
  4. Create application-specific password via https://security.google.com/settings/security/apppasswords.
  5. Save a 16 digits App password that can be used by specific app using your Google email address.