Skip to content

Instantly share code, notes, and snippets.

@yetone
Last active Jul 24, 2020
Embed
What would you like to do?
" Selected Intellimacs modules
source ~/.intellimacs/spacemacs.vim
source ~/.intellimacs/extra.vim
source ~/.intellimacs/major.vim
source ~/.intellimacs/hybrid.vim
" My own vim commands
nnoremap Y y$
" Comma for major mode
nmap , <leader>m
vmap , <leader>m
" Add/edit actions
nnoremap <leader>gl :action Vcs.Show.Log<CR>
vnoremap <leader>gl :action Vcs.Show.Log<CR>
" Jump
nnoremap <leader>sj :action FileStructurePopup<CR>
vnoremap <leader>sj :action FileStructurePopup<CR>
nnoremap <leader>ji :action FileStructurePopup<CR>
vnoremap <leader>ji :action FileStructurePopup<CR>
nnoremap <Leader>jj :action KJumpAction<CR>
vnoremap <Leader>jj :action KJumpAction<CR>
nnoremap <Leader>jw :action KJumpAction.Word1<CR>
vnoremap <Leader>jw :action KJumpAction.Word1<CR>
nnoremap <Leader>jl :action KJumpAction.Line<CR>
vnoremap <Leader>jl :action KJumpAction.Line<CR>
" Edit config
nnoremap <leader>fed :e ~/.ideavimrc<CR>
vnoremap <leader>fed <Esc>:e ~/.ideavimrc<CR>
nnoremap <leader>feR :source ~/.ideavimrc<CR>
vnoremap <leader>feR <Esc>:source ~/.ideavimrc<CR>
" Custom
set number
set relativenumber
nnoremap <Leader>/ :action FindInPath<CR>
vnoremap <Leader>/ :action FindInPath<CR>
nnoremap <Leader>ef :action ShowIntentionActions<CR>
vnoremap <Leader>ef :action ShowIntentionActions<CR>
set ideajoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment