Skip to content

Instantly share code, notes, and snippets.

@yetone
Last active July 24, 2020 07:48
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 yetone/b6fdcd48e9f33eb93973d12f84072d7e to your computer and use it in GitHub Desktop.
Save yetone/b6fdcd48e9f33eb93973d12f84072d7e to your computer and use it in GitHub Desktop.
" 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