Skip to main content

Keyboard shortcuts

Common

ShortcutActionNote
⌘ ASelect All items
⌘ WClose the front window
⌥ ⌘ WClose all windows of the app
⌃ AMove to the beginning of the line or paragraph
⌃ EMove to the end of a line or paragraph
⇧ ⌘ ←Select the text between the insertion point and the beginning of the current line
⇧ ⌘ →Select the text between the insertion point and the end of the current line
⇧ ⌘ ↑Select the text between the insertion point and the beginning of the document
⇧ ⌘ ↓Select the text between the insertion point and the end of the document
⌘ GFind Next
⇧ ⌘ GFind Previous
⌃ TabJump to the next open tab
⇧ ⌃ TabJump to the previous open tab
ShortcutActionNote
⌘ VPaste
⌥ ⌘ VCut
⌘ ,Open preferences for the front app打开最前面的 App 的偏好设置
⌃ ⌘ QImmediately lock your screen立即锁定屏幕
⌘ DDuplicate the selected files复制所选文件
⌘ RShow the original file for the selected aliasFinder
⌥ ⌘ DDock显示或隐藏“程序坞”
⇧ ⌘ PShow or hide the Preview pane in Finder windows隐藏或显示“访达”窗口中的路径栏
⇧ ⌘ .Hidden files

Chrome

ShortcutActionNote
⇧ ⌘ BShow or hide the Bookmarks Bar

Key Bindings

Navigating the current page:

yy      copy the current url to the clipboard

Navigating to new pages:

o       Open URL, bookmark, or history entry
O Open URL, bookmark, history entry in a new tab
b Open bookmark
B Open bookmark in a new tab

Manipulating tabs:

t       create tab
x close current tab
X restore closed tab (i.e. unwind the 'x' command)
W move current tab to new window

Vimium Options -> Custom key mappings

unmap u
unmap d
unmap H
unmap L
map <c-u> scrollPageUp
map <c-d> scrollPageDown
# 跟 GoLand 一致
map <m-[> goBack
# 跟 GoLand 一致
map <m-]> goForward
map >> closeTabsOnRight
map CO closeOtherTabs

GoLand

ShortcutActionNote
Double ⇧ShiftSearch Everywhere
⌘ BGo to Declaration or Usages
⌥ ⌘ F7Show Usages
⌘ ]navigate forward
⌘ [navigate backwards
⇧ ⌘ ]Select Next Tab
⇧ ⌘ [Select Previous Tab
⌘ +Expand
⌘ -Collapse
⇧ ⌘ +Expand All
⇧ ⌘ -Collapse All
Plug 'easymotion/vim-easymotion'
set easymotion
" set <leader> to <space>
let mapleader = " "
map <Leader> <Plug>(easymotion-prefix)
map <leader>s <Plug>(easymotion-s2)

let g:EasyMotion_do_mapping = 0 " Disable default mappings

" Turn on case-insensitive feature
let g:EasyMotion_smartcase = 1


set showmode
inoremap jj <Esc>
nnoremap o o<esc>
nnoremap O O<esc>

set incsearch
set hlsearch

set clipboard^=unnamed,unnamedplus

Visual Studio Code

ShortcutActionNote
⌘ BToggle Sidebar Visibility
⌘ JToggle Panel

settings.json

{
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.handleKeys": {
"<C-c>": false,
"<C-v>": false,
"<C-w>": false,
"<C-a>": false,
"<C-f>": false,
"<C-g>": false,
"<C-r>": false,
"<C-b>": false,
"<C-j>": false
},
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "d"],
"after": ["d", "d"]
},
{
"before": ["<C-n>"],
"commands": [":nohl"]
},
{
"before": ["K"],
"commands": ["lineBreakInsert"],
"silent": true
}
],
"vim.normalModeKeyBindings": [
{
"before": ["o"],
"after": ["o", "<Esc>"]
},
{
"before": ["O"],
"after": ["O", "<Esc>"]
},
{
"before": ["<leader>", "s"],
"after": ["<leader>", "<leader>", "s"]
},
{
"before": ["<leader>", "t", "n"],
"commands": [":tabnext"]
},
{
"before": ["<leader>", "t", "p"],
"commands": [":tabprev"]
},
{
"before": ["<leader>", "t", "f"],
"commands": [":tabfirst"]
},
{
"before": ["<leader>", "t", "l"],
"commands": [":tablast"]
}
],
"vim.incsearch": true,
"vim.hlsearch": true,
"vim.ignorecase": false,
"vim.easymotion": true,
"vim.sneak": false,
"vim.surround": false,
"vim.statusBarColorControl": true,
"vim.statusBarColors": {
"normal": "#005f5f",
"insert": "#5f0000",
"visual": "#5f00af",
"visualline": "#005f87",
"visualblock": "#86592d",
"replace": "#000000"
},
"workbench.colorCustomizations": {
"statusBar.background": "#005f5f",
"statusBar.noFolderBackground": "#005f5f",
"statusBar.debuggingBackground": "#005f5f"
}
}