Skip to content

Instantly share code, notes, and snippets.

@GeordieP
Last active March 17, 2021 23:48
Show Gist options
  • Save GeordieP/fceb51a5efc564c6330dc946b499204d to your computer and use it in GitHub Desktop.
Save GeordieP/fceb51a5efc564c6330dc946b499204d to your computer and use it in GitHub Desktop.
~/.ideavimrc - Config for IdeaVim plugin
"==========================
" searching
"==========================
set incsearch
set ignorecase
set smartcase
set commentary
set easymotion
"==========================
" keys
"==========================
" map leader space
let mapleader=' '
" enter normal mode
inoremap kj <Esc>
" buffer nav
noremap <leader>z gT
noremap <leader>q gt
" close buffer
nnoremap <leader>c :action CloseEditor<CR>
" switching windows
"noremap <C-j> <C-w>j
"noremap <C-k> <C-w>k
"noremap <C-l> <C-w>l
"noremap <C-h> <C-w>h
noremap <Leader>wj <C-w>j
noremap <Leader>wk <C-w>k
noremap <Leader>wl <C-w>l
noremap <Leader>wh <C-w>h
nnoremap <leader>p "+p
nnoremap <leader>P "+P
vnoremap <leader>p "+p
vnoremap <leader>P "+P
" horiz split
noremap <Leader>sh :<C-u>split<CR>
" vertical split
noremap <Leader>v :<C-u>vsplit<CR>
" open recent files
nnoremap <Leader><Leader> :action RecentFiles<CR>
" toggle tree
nnoremap <Leader>tt :action ActivateProjectToolWindow<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment