Skip to content

Instantly share code, notes, and snippets.

@zhengbli
Created October 19, 2019 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhengbli/bafb7d189996da97d017c8497d4007bc to your computer and use it in GitHub Desktop.
Save zhengbli/bafb7d189996da97d017c8497d4007bc to your computer and use it in GitHub Desktop.
.ideavimrc
nmap <leader><leader>s :action KJumpAction<cr>
nmap <leader><leader>w :action KJumpAction.Word0<cr>
nmap <leader><leader>l :action KJumpAction.Line<cr>
set hlsearch
set ignorecase
set smartcase
" Yank from cursor to end of line, to be consistent with C and D.
nnoremap Y y$
" IntelliJ-specific Actions
" -------------------------
"
" Run :actionlist to get a list of these. mapleader isn't supported yet.
" Look for a dismiss action for Ctrl-[
nmap <Space><CR> :action GotoAction<CR>
nmap <Space>o :action GotoFile<CR>
nmap <Space><C-o> :action RecentFiles<CR>
nmap <Space>f :action FileStructurePopup<CR>
nmap <Space><C-f> :action GotoSymbol<CR>
nmap <Space>[ :action ActivateProjectToolWindow<CR>
nmap <Space>] :action ActivateStructureToolWindow<CR>
nmap <Space>k :action DashLauncherAction<CR>
nmap <Space>w :action SaveDocument<CR>
set ideajoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment