Created
June 10, 2021 21:52
-
-
Save mttchpmn/d0a18de3f151c149a4abf697aa4d8618 to your computer and use it in GitHub Desktop.
IdeaVimrc
This file contains 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
" Base Settings | |
set scrolloff=5 | |
set relativenumber | |
set showmode | |
set showcmd | |
set smartcase | |
set incsearch | |
set hlsearch | |
set visualbell | |
set noerrorbells | |
" Use system clipboard | |
set clipboard+=unnamed | |
" Plugins | |
set surround | |
set highlightedyank | |
set NERDTree | |
" Mappings | |
let mapleader=" " | |
inoremap jj <Esc> | |
" Tab movement | |
" Can also use gt / gT and :tabp / :tabn | |
nnoremap tl :tabnext<CR> | |
nnoremap th :tabprev<CR> | |
"nnoremap tn :tabnew<CR> " Doesnt work in Rider :( | |
nnoremap tx :tabclose<CR> " Doesn't work properly in Rider :( | |
" Window movement | |
" Can also use <C-w> + hjkl | |
nnoremap wh <C-w>h | |
nnoremap wl <C-w>l | |
nnoremap wj <C-w>j | |
nnoremap wk <C-w>k | |
"nnoremap wq <C-w>q " Doesnt work in Rider :( | |
" Create splits of current file | |
nnoremap wv <C-w>v | |
nnoremap ws <C-w>s | |
" New file | |
nnoremap <leader>n :action NewFile<CR> | |
" Equivalent of F2 | |
map <leader>r :action RenameElement<CR> | |
" Open Terminal | |
map <leader>t :action ActivateTerminalToolWindow<CR> | |
" TODO | |
" - NERDTree configuration? | |
" - Find file / fuzzy finder | |
" - Rename (done) | |
" - Refactor | |
" - Reformat | |
" - Ctrl + . command | |
" - Find usages | |
" - Jump to definition | |
" - Find implementation | |
" - Build | |
" - Run | |
" - Run unit tests | |
" - Debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment