diff --git a/ideavim/ideavimrc b/ideavim/ideavimrc new file mode 100644 index 0000000..daadf0c --- /dev/null +++ b/ideavim/ideavimrc @@ -0,0 +1,133 @@ +"" .ideavimrc - Matt Chapman + + +"" Base Settings +"" ======================================================== + +set scrolloff=10 +set linenumber +set nu +set showmode +set showcmd + +set smartcase +set incsearch +set hlsearch +set so=5 + +set visualbell + +"" Idea specific settings +"" ======================================================== +set ideajoin +set ideastatusicon=gray + +" Use system clipboard +set clipboard+=unnamed + +let mapleader = " " + + +"" Plugin Settings +"" ======================================================== + +set surround +set highlightedyank +set sneak +set nerdtree + +" Easymotion settings +set easymotion +set notimeout + +"" Key mappings +"" ======================================================== + +inoremap jk + +" Tab navigation +nnoremap :tabnext +nnoremap :tabprev + +" Pane navigation +nnoremap h +nnoremap l +nnoremap k +nnoremap j + +" Jump between methods +nnoremap [[ (MethodUp) +nnoremap ]] (MethodDown) + +" Easy visual indentation +vnoremap < >gv + +" Execute macro saved in 'q' register +nnoremap qj @q + +" Popup navigation +inoremap (PopupMenu-selectNext) +inoremap (PopupMenu-selectPrev) + + +"" Leader commands +"" ======================================================== + +" Comment lines +map gcc (CommentByLineComment) + +" Jump around with easymotion +map f (easymotion-s) +map e (easymotion-f) + + +" Open NERDTree (use q to exit) +map e :NERDTreeToggle + +" Folding +nnoremap z za +map zc :action CollapseAllRegions +map zo :action ExpandAllRegions + +" Window splits +map wv (SplitVertically) +map ws (SplitHorizontally) +map wu (Unsplit) +map wm (MoveEditorToOppositeTabGroup) + +" Display options +map dd (ToggleDistractionFreeMode) +map dz (ToggleZenMode) +map df (ToggleFullScreen) +map ha (HideAllWindows) + +" Actions +map am (ShowIntentionActions) +map as (SearchEverywhere) + +" File navigation +map ff (GotoFile) +map fr (RecentFiles) +map fg (FindInPath) + +" Close active tab +map q (CloseContent) + +" Refactoring +map rn (RenameElement) +map rm (ExtractMethod) +map rv (IntroduceVariable) +map rf (IntroduceField) +map rs (ChangeSignature) +map rr (Refactorings.QuickListPopupAction) + +" Git windows +map gc (CheckinProject) +map gs (ActivateVersionControlToolWindow) +map gb (Git.Branches) + +"Run +map r (Run) +map rc (RunConfiguration) + diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..f714f10 --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,3 @@ +set -g allow-passthrough on +set -ga update-environment TERM +set -ga update-environment TERM_PROGRAM