Show Menu

cVim Cheat Sheet by

cVim chrome extension https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh and rc from https://gist.github.com/yograf/f4d0d6a3e5824c8258b1
chrome     vim     cvim

Movement

j, s
scroll down
k, w
scroll up
h
scroll left
l
scroll right
d
scroll half-page down
e
scroll half-page up
gg
scroll to the top of the page
G
scroll to the bottom of the page
0
scroll to the left of the page
$
scroll to the right of the page
#
reset the scroll focus to the main page
<N>g%
scroll <N> percent down the page

Command Mode

:tabnew (autoc­omp­lete)
open a new tab with the typed/­com­pleted search
:new (autoc­omp­lete)
open a new window with the typed/­com­pleted search
:open (autoc­omplete
open the typed/­com­pleted URL/google search
:history (autoc­omp­lete)
search through browser history
:bookmarks (autoc­omp­lete)
search through bookmarks
:bookmarks /<f­old­er> (autoc­omp­lete)
browse bookmarks by folder­/open all bookmarks from folder
:set (autoc­omp­lete)
tempor­arily change a cVim setting
:chrome:// (autoc­omp­lete)
open a chrome:// URL
:tabhi­story (autoc­omp­lete)
browse the different history states of the current tab
:command <NA­ME> <AC­TIO­N>
aliases :<N­AME> to :<A­CTI­ON>
:quit
close the current tab
:qall
close the current window
:restore (autoc­omp­lete)
restore a previously closed tab (newer versions of Chrome only)
:tabattach (autoc­omp­lete)
move the current tab to another open window
:tabdetach
move the current tab to a new window
:source (autoc­omp­lete)
load a cVimrc file into memory (this will overwrite the settings in the options page if the localc­onfig setting had been set previously
:duplicate
duplicate the current tab
:settings
open the settings page
:nohls­earch
clear the highli­ghted text from the last search
:execute
execute a sequence of keys (Useful for mappings. For example, "map j :execute 2j")
:buffer (autoc­omp­lete)
change to a different tab
:mksession
create a new session from the current tabs in the active window
:delse­ssion (autoc­omp­lete)
delete a saved session
:session (autoc­omp­lete)
open the tabs from a saved session in a new window
:script
run JavaScript on the current page
:togglepin
toggle the pin state of the current tab
:pintab
pin the current tab
:unpintab
unpin the current tab
:
open command bar
 

Link Hints

f
open link in current tab
F
open link in new tab
/?
open link search bar
unmapped
open link in new tab (active)
W
open link in new window
A
repeat last hint command
q
trigger a hover event (mouseover + mousee­nter)
Q
trigger a unhover event (mouseout + mousel­eave)
mf
open multiple links
mr
reverse image search multiple links
my
yank multiple links (open the list of links with P)
gy
copy URL from link to clipboard
gr
reverse image search (google images)
;
change the link hint focus

Text boxes

gi
go to first input box
gI
go to the last focused input box by gi
<C-i>
move cursor to the beginning of the line
<C-e>
move cursor to the end of the line
<C-u>
delete to the beginning of the line
<C-o>
delete to the end of the line
<C-y>
delete back one word
<C-­p>
delete forward one word
<C-­h>
move cursor back one word
<C-­l>
move cursor forward one word
<C-­f>
move cursor forward one letter
<C-­b>
move cursor back one letter
<C-­j>
move cursor forward one line
<C-­k>
move cursor back one line

Insert­/Vi­sua­l/Caret Mode

<Esc>
exit visual mode to caret mode/exit caret mode to normal mode
v
toggle between visual­/caret mode
h, j
k, l
move the caret positi­on/­extend the visual selection
y
copys the current selection
n
select the next search result
N
select the previous search result
p
open highli­ghted text in current tab
P
open highli­ghted text in new tab
i
enter insert mode (escape to exit

Histor­y/B­ook­mar­ks/­Qui­ckMarks

M<*>
create quickmark <*>
go<*>
open quickmark <*> in the current tab
gn<*>
open quickmark <*> in a new tab <N> times
I
search through browser history
;<*>
create mark <*>
'<*>
go to mark <*>
b
search through bookmarks
<C-b>
create or toggle a bookmark for the current URL
S
go back in history
D
go forward in history

Chrome

.
repeat the last command
r
reload the current tab
gR
reload the current tab + local cache
gd
alias to :chrom­e:/­/do­wnl­oad­s<C­R>
ge
alias to :chrom­e:/­/ex­ten­sio­ns<­CR>
gj
hide the download shelf
zr
restart Google Chrome
r
reload the current tab
gR
reload the current tab + local cache
gq
stop the current tab from loading
gQ
stop all tabs from loading
gs
go to the view-s­our­ce:// page for the current Url
 

Search

/
open search bar
n
next search result
N
previous search result
?
open search bar (reverse search)
v
enter visual­/caret mode (highlight current search­/se­lec­tion)
V
enter visual line mode from caret mode/c­urr­ently highli­ghted search
zz
center page to current search match (middle)
zt
center page to current search match (top)
zb
center page to current search match (bottom)

Tabs

gt, K, R
navigate to the next tab
gT, J, E
navigate to the previous tab
g0, g$
go to the first/last tab
<C-S-h>, gh
open the last URL in the current tab's history in a new tab
<C-S-l>, gl
open the next URL from the current tab's history in a new tab
x
close the current tab
gxT
close the tab to the left of the current tab
gxt
close the tab to the right of the current tab
gx0
close all tabs to the left of the current tab
gx$
close all tabs to the right of the current tab
X
open the last closed tab
t
:tabnew
T
:tabnew <CU­RRENT URL>
O
:open <CU­RRENT URL>
<N>%
switch to tab <N>
B
search for another active tab
<
move current tab left
>
move current tab right
]]
click the "­nex­t" link on the page (see nextma­tch­pattern above)
[[
click the "­bac­k" link on the page (see previo­usm­atc­hpa­ttern above)
gp
pin/unpin the current tab
<C-6>
toggle the focus between the last used tabs
a
alias to "­:tabnew google "

Copy / Paste

yy
copy the URL of the current page to the clipboard
yh
copy the currently matched text from find mode (if any)
p
open the clipboard selection
P
open the clipboard selection in a new tab
yY
copy the URL of the current frame to the clipboard
ya
copy the URLs in the current window

Browsing

]]
click the "­nex­t" link on the page
[[
click the "­bac­k" link on the page
g-
decrement the first number in the URL path (e.g www.ex­amp­le.c­om/5 => www.ex­amp­le.c­om/4)
g+
increment the first number in the URL path

Zoom

zi
zoom page in
zo
zoom page out
z0
zoom page to original size
z<E­nte­r>
toggle image zoom (same as clicking the image on image-only pages)

Download the cVim Cheat Sheet

2 Pages
//media.cheatography.com/storage/thumb/yograf_cvim.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

Like this cheat sheet? Check out our sponsors!

Readable.io is a collection of tools to make your writing better. More readable content means higher conversion rates and better reader engagement. Measure website and document readability, measure keyword density and more!

Click Here To Get Started!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VI Editor Cheat Sheet
          Vim NERDTree Cheat Sheet
          Vimium Shortcuts Cheat Sheet

          More Cheat Sheets by yograf