Created
December 6, 2023 16:29
-
-
Save achtan/855a5bfb3fb30e4d11d7f2ad09a2e266 to your computer and use it in GitHub Desktop.
My .ideavimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" Source your .vimrc | |
"source ~/.vimrc | |
let mapleader = " " | |
set easymotion | |
set NERDTree | |
let g:NERDTreeMapActivateNode='l' | |
let g:NERDTreeMapJumpParent='h' | |
set ideajoin | |
set surround | |
"" -- Suggested options -- | |
" Show a few lines of context around the cursor. Note that this makes the | |
" text scroll if you mouse-click near the start or end of the window. | |
set scrolloff=5 | |
" Do incremental searching. | |
set incsearch | |
set number | |
" Don't use Ex mode, use Q for formatting. | |
map Q gq | |
" scrolling | |
nmap <leader>d <C-d> | |
nmap <leader>u <C-u> | |
vmap <leader>d <C-d> | |
vmap <leader>u <C-u> | |
" easy motion | |
let g:EasyMotion_do_shade = 0 | |
let g:EasyMotion_smartcase = 1 | |
map <Leader> <Plug>(easymotion-prefix) | |
map <leader><leader>f <Plug>(easymotion-bd-f) | |
map <leader><leader>w <Plug>(easymotion-bd-w) | |
map t <Plug>(easymotion-bd-tl) | |
map T <Plug>(easymotion-bd-t) | |
map f <Plug>(easymotion-bd-fl) | |
map F <Plug>(easymotion-s) | |
map <leader>n <plug>(easymotion-bd-n) | |
map <leader>w <Plug>(easymotion-bd-wl) | |
map <leader>W <Plug>(easymotion-bd-w) | |
" actions | |
nmap <leader>e <action>(GotoNextError) | |
nmap <leader>m <action>(ExpressionTypeInfo) | |
nmap <leader>. <action>(QuickImplementations) | |
nmap <leader>/ <action>(ShowErrorDescription) | |
"nmap <leader>n <action>(JS.TypeInfo) | |
"nmap <leader>m <action>(ParameterInfo) | |
nnoremap <leader><leader> <C-Tab> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment