Replies: 58 comments 59 replies
-
Yours looks way more impressing that mine - https://github.com/leeturner/vimrc/blob/master/ideavimrc I don't think I have seen the |
Beta Was this translation helpful? Give feedback.
-
This is mine: https://github.com/citizenmatt/dotfiles/blob/master/ideavimrc Nothing too scary. Set up defaults/vim-sensible type stuff, enable most of the ideavim extensions and add a few maps to IntelliJ actions. |
Beta Was this translation helpful? Give feedback.
-
My ~/.ideavimrc and ~/.vimrc: https://gist.github.com/vlasovskikh/23df313739ad00e57c0935d54c346806 |
Beta Was this translation helpful? Give feedback.
-
This is mine: https://gist.github.com/plateauu/2850b551c934f4168fa4f6b56e8fb087 |
Beta Was this translation helpful? Give feedback.
-
This is mine: https://github.com/q843705423/ideavimrc/blob/master/.ideavimrc |
Beta Was this translation helpful? Give feedback.
-
https://gist.github.com/yaoqiangpersonal/ecf4a5b7bbe6c6d40edf2432f39288da |
Beta Was this translation helpful? Give feedback.
-
https://gist.github.com/chylex/9a456a062bd19e29361fe8aeb90a8410 |
Beta Was this translation helpful? Give feedback.
-
nice share. |
Beta Was this translation helpful? Give feedback.
-
I love this thread 😄 Mine: https://github.com/ddadon10/dotfiles/blob/trunk/.vimrc#L82 Pretty standard, I also replaced vim back/forward with the one from IntellIJ |
Beta Was this translation helpful? Give feedback.
-
This is mine: https://gist.github.com/wangrunlin/bb97f80377db44a6fbb195eaa9759d83 |
Beta Was this translation helpful? Give feedback.
-
Here's mine: |
Beta Was this translation helpful? Give feedback.
-
Hey, does anyone knows how to map |
Beta Was this translation helpful? Give feedback.
-
Oh wow! Mapping CLion actions to vim shortcuts just made my day in a major way. I've set my <leader> to space bar and use this configuration in CLion: https://gist.github.com/d3rp/a24072e28224725a6e5359d303aba908 |
Beta Was this translation helpful? Give feedback.
-
my, with some emacs-like shortcuts |
Beta Was this translation helpful? Give feedback.
-
How can I map leader+leader to "Search Everywhere" in normal mode? Thanks. |
Beta Was this translation helpful? Give feedback.
-
anyone know how to map the actions: up/down move completion item selection |
Beta Was this translation helpful? Give feedback.
-
here is my config: https://github.com/ved-leachim/.ideavimrc " base configuration
set showmode
set incsearch
set nu
set relativenumber
set ignorecase
set smartcase
set clipboard+=unnamed
" keymaps
" the leader key
let mapleader=" "
" the escape button
nnoremap <C-c> <Esc>
" redo
nnoremap U <C-r>
" comfort shortcuts
nnoremap <C-d> yyp
" terminal
nnoremap <C-t> :action ActivateTerminalToolWindow<CR>
nnoremap <leader>t :action Terminal.OpenInTerminal<CR>
" zen-mode
nnoremap <C-z> :action ToggleDistractionFreeMode<CR>
" find
nnoremap <C-f> :action GotoFile<CR>
nnoremap <C-r> :action RecentFiles<CR>
" navigation
nnoremap J }
nnoremap K {
nnoremap sv :action SplitVertically<CR>
nnoremap ss :action SplitHorizontally<CR>
nnoremap sm :action MoveEditorToOppositeTabGroup<CR>
nnoremap sh <c-w>h
nnoremap sl <c-w>l
nnoremap sj <c-w>j
nnoremap sk <c-w>k
nnoremap <TAB> :action PreviousTab<CR>
nnoremap <S-TAB> :action NextTab<CR>
nnoremap ;q :action CloseContent<CR>
nnoremap ;a :action CloseAllEditors<CR>
" code interactions
nnoremap <leader>c :action CommentByLineComment<CR>
nnoremap <leader>C :action CommentByBlockComment<CR>
nnoremap <leader>r :action RenameElement<CR>
nnoremap <leader>f :action ReformatCode<CR>
nnoremap <leader>re :action Refactorings.QuickListPopupAction<CR>
nnoremap <leader>su :action ShowUsages<CR>
nnoremap <leader>sU :action FindUsages<CR>
nnoremap <leader>m :action CollapseRegion<CR>
nnoremap <leader>M :action ExpandRegion<CR>
nnoremap <leader>am :action CollapseAllRegions<CR>
nnoremap <leader>aM :action ExpandAllRegions<CR>
" code information
nnoremap <leader>d :action ShowHoverInfo<CR>
nnoremap <leader>e :action ShowErrorDescription<CR>
" code navigation
nnoremap gi :action GotoImplementation<CR>
" code selection
nnoremap <S-j> :action MoveLineDown<CR>
nnoremap <S-k> :action MoveLineUp<CR>
" debugging
nnoremap <leader>dc :action Debug<CR>
nnoremap <leader>ds :action Stop<CR>
nnoremap <leader>db :action ToggleLineBreakpoint<CR>
" run
nnoremap <leader>rc :action ContextRun<CR>
nnoremap <leader>rx :action ChooseRunConfiguration<CR>
nnoremap <leader>rr :action Rerun<CR>
nnoremap <leader>rt :action RunTests<CR>
nnoremap <leader>rs :action Stop<CR>
"---------- plugins ----------
" easy motion
Plug 'easymotion/vim-easymotion'
map <leader>J <Plug>(easymotion-s)
map <leader>j <Plug>(easymotion-f)
Plug 'preservim/nerdtree'
map <c-n> :NERDTree<CR>
":NERDTreeFocus
":NERDTreeToggle
map <c-n>n :NERDTreeClose<CR>
":NERDTreeFind
":NERDTreeRefreshRoot |
Beta Was this translation helpful? Give feedback.
-
When my focus (cursor) is in the terminal-debug-view, I cannot bring the focus back into the editor without using my mouse. Did someone solve this problem? |
Beta Was this translation helpful? Give feedback.
-
Easymotion motions instead of default |
Beta Was this translation helpful? Give feedback.
-
This is mine: https://github.com/KURANADO2/ideavim-config/blob/main/.ideavimrc |
Beta Was this translation helpful? Give feedback.
-
https://gist.github.com/ilovejs/b80d0661f961b0b9ded4ef1d7d58c6f2 |
Beta Was this translation helpful? Give feedback.
-
Here's my configuration. I have added bits and pieces to the file over time. Still room for improvements, and I find new things to add to it all the time. https://github.com/OptimusCrime/ideavim/blob/master/ideavimrc |
Beta Was this translation helpful? Give feedback.
-
As much as I want to eagerly read others' configs and expand mine, I was looking for a systematic scalable approach that adheres to Vim grammar. AFAIK SpaceVim managed to do such a thing. |
Beta Was this translation helpful? Give feedback.
-
Instead of posting basic "hello-world" examples, consider sharing something unique about your ideavimrc files. For example, here’s mine:
This is done by adding: autocmd Filetype vim set foldmethod=indent The above is included in my .vimrc, which I reuse between my Neovim and IntelliJ IDEA configs with: source ~/.vimrc |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dbilici/IdeaVim The repo includes a detailed README and a link to an article I wrote on Medium about the process. I'd love to hear your thoughts! |
Beta Was this translation helpful? Give feedback.
-
Thanks all for the all impressive shared configuration of the ideavimrc. One keymap that looks like missing, and made me grab the mouse while altering the ideavimrc configuration, is:
|
Beta Was this translation helpful? Give feedback.
-
Super helpful thread! |
Beta Was this translation helpful? Give feedback.
-
This is mine: https://github.com/sixdog06/vimrc/blob/main/ideavim |
Beta Was this translation helpful? Give feedback.
-
That's mine : https://gist.github.com/karimkod/ac39d065688f03b37e56030ef6551b70 |
Beta Was this translation helpful? Give feedback.
-
Hi! Here you can share your cool
~/.ideavimrc
config or find some new ideas.Here you can find my personal configuration: https://gist.github.com/AlexPl292/50a3ff4cef1badcbb23436b22cbd3cf4
Beta Was this translation helpful? Give feedback.
All reactions