set relativenumber
set number
set clipboard=unnamedplus
vnoremap p "_dp
vnoremap P "_dP
set ignorecase
set smartcase
set incsearch
set scrolloff=8

let mapleader=" "

"plugins
set quickscope
set which-key
set notimeout
set easymotion " install easymotion and acejump plugin
set surround


nnoremap <leader>, :action IdeaVim.ReloadVimRc.reload<CR>

nnoremap <SPACE> <Nop>
nnoremap <leader>t :action Terminal.OpenInTerminal<CR>
nnoremap <leader>q :action QuickJavaDoc<CR>
nnoremap <leader>f :action Find<CR>
nnoremap <leader>r :action Replace<CR>
map f <Plug>(easymotion-bd-f)
map <leader>f <Plug>(easymotion-bd-w)

nnoremap J mzJ`z
nnoremap S ht lr<cr>k$

vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv

map <leader>l V<Action>(ReformatCode)
