~joshleeb/dotfiles

44ba792ae0e74f98868f323d54660b967c0d3723 — Josh Leeb-du Toit 2 months ago 394fe84
idea: Add config
1 files changed, 42 insertions(+), 0 deletions(-)

A idea/vimrc
A idea/vimrc => idea/vimrc +42 -0
@@ 0,0 1,42 @@
let mapleader = " "

set visualbell
set noerrorbells

nnoremap ; :

cnoremap <c-k> <c-c><esc>
inoremap <c-k> <esc>
onoremap <c-k> <esc>
vnoremap <c-k> <esc>

nnoremap Q q
nnoremap W w

noremap j gj
noremap k gk

noremap H 0
noremap L $

" Window pane movement
nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-l> <c-w>l

" Search everything
nnoremap <leader><leader> :action GotoAction<cr>

" Go to actions
nnoremap <leader>fp :action GotoFile<cr>
nnoremap <leader>fc :action GotoClass<cr>

" Jump to actions
nnoremap <leader>ku :action ShowUsages<cr>
nnoremap <leader>ki :action GotoImplementation<cr>
nnoremap <leader>kt :action GotoTest<cr>
nnoremap <leader>kd :action GotoDeclaration<cr>

" Running things.
nnoremap <leader>rr :action Rerun<cr>