mirror of
https://github.com/Ajetski/dotfiles.git
synced 2025-09-30 09:53:17 -09:00
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
" Find more examples here: https://jb.gg/share-ideavimrc
|
|
let mapleader = " "
|
|
|
|
" Default Settings
|
|
"set scrolloff=5
|
|
set rnu
|
|
set number
|
|
set incsearch
|
|
set wrap
|
|
|
|
" Plugins
|
|
set ideajoin
|
|
|
|
Plug 'tpope/vim-commentary'
|
|
|
|
Plug 'tpope/vim-surround'
|
|
|
|
Plug 'preservim/nerdtree'
|
|
nmap <leader>tr :NERDTreeFocus<cr>
|
|
|
|
Plug 'easymotion/vim-easymotion'
|
|
let g:EasyMotion_do_mapping = 0
|
|
set easymotion
|
|
nmap gw <Plug>(easymotion-bd-w)
|
|
|
|
" Keymaps
|
|
nmap <leader>bd :bd<cr>
|
|
nmap { :bp<cr>
|
|
nmap } :bn<cr>
|
|
nmap <leader>w <c-w>
|
|
nmap <leader>fs :w<cr>
|
|
|
|
" Move lines in visual mode
|
|
vmap J :m '>+1<CR>gv=gv
|
|
vmap K :m '>-2<CR>gv=gv
|
|
|
|
" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
|
|
nmap <leader>if :<Action>(ReformatCode)<cr>
|
|
nmap <leader>ib :<Action>(ToggleLineBreakpoint)<cr>
|
|
nmap <leader>ir :<Action>(IdeaVim.ReloadVimRc.reload)<cr>
|
|
nmap <leader><leader> :<Action>(SearchEverywhere)<cr>
|
|
nmap <leader>it :<Action>(ActivateTerminalToolWindow)<cr>
|
|
nmap <leader>/ :<Action>(FindInPath)<cr>
|
|
|
|
" Harpoon Binds
|
|
nmap <c-e> <Action>(ShowHarpoon)<cr>
|
|
nmap <leader>a :<Action>(AddToHarpoon)<cr>
|
|
nmap <c-g> :<Action>(GotoHarpoon1)<cr>
|
|
nmap <c-h> :<Action>(GotoHarpoon2)<cr>
|
|
nmap <c-b> :<Action>(GotoHarpoon3)<cr>
|
|
nmap <c-n> :<Action>(GotoHarpoon4)<cr>
|
|
nmap <c-m> :<Action>(GotoHarpoon5)<cr>
|