From 914cb43a893ed384e813e8a9dbf22477e116cedd Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 17 Aug 2022 08:55:51 +0700 Subject: [PATCH] Add ideavim and zathura --- .config/zathura/zathurarc | 10 +++ .ideavimrc | 130 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 .config/zathura/zathurarc create mode 100755 .ideavimrc diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc new file mode 100644 index 0000000..88aee95 --- /dev/null +++ b/.config/zathura/zathurarc @@ -0,0 +1,10 @@ +set selection-clipboard clipboard + +set recolor-lightcolor \#222222 +set recolor-keephue +set default-bg \#555552 + +set scroll-step 75 + +map d scroll half-down +map u scroll half-up diff --git a/.ideavimrc b/.ideavimrc new file mode 100755 index 0000000..81b61e8 --- /dev/null +++ b/.ideavimrc @@ -0,0 +1,130 @@ +let mapleader = " " +set incsearch +set hlsearch +set clipboard+=unnamed +set number +set relativenumber +set surround +set multiple-cursors +set ideajoin +set idearefactormode=visual +set ignorecase +set commentary +set highlightedyank + +" TODO Find bindings for these +" nnoremap rc :action ChooseRcnConfiguration +" nnoremap ;b :action ToggleLineBreakpoint +" nnoremap ;e :action EvaluateExpression +" nnoremap ;d :action Debug +" nnoremap ;r :action Resume +" nnoremap ;s :action StepInto +" nnoremap ;n :action StepOver +" nmap :action **** Repeat last command +" Find out about VCS tool +" We need to get good bindings for window navigation + +" IDE has nice search behavior, consider adding these +" map / :action Find +" nnoremap n :action FindNext +" nnoremap N :action FindPrevious +" vnoremap n :action FindNext +" vnoremap N :action FindPrevious +" nnoremap * :action FindWordAtCaret +" nnoremap # :action FindWordAtCaret +nnoremap + +nnoremap f :action FindInPath + +nnoremap :action EditorIncreaseFontSize +nnoremap :action EditorDecreaseFontSize +nnoremap :action EditorResetFontSize + +nnoremap ) :action MethodDown +nnoremap ( :action MethodUp + +nnoremap \ q +nnoremap q :action KJumpAction.Word0 + +noremap rl :source ~/.ideavimrc +noremap i :e ~/.ideavimrc + +nnoremap p :action SearchEverywhere +nnoremap c :action GotoClass +nnoremap t :action FileStructurePopup +nnoremap f :action GotoFile +nnoremap r :action RecentFiles +nnoremap u :action GotoTest + +nnoremap zd :action CollapseDocComments +nnoremap zD :action ExpandDocComments + +nnoremap H :action MoveEditorToOppositeTabGroup +nnoremap L :action MoveEditorToOppositeTabGroup +nnoremap 2 +nnoremap 2 + +nnoremap gt :action GotoTypeDeclaration +nnoremap s :action KJumpAction.Word0 +nnoremap h :action HideAllWindows +nnoremap q :action CloseContent +nnoremap d :action QuickImplementations +nnoremap t :action QuickJavaDoc +nnoremap e :action ShowErrorDescription +nnoremap u :action FindUsages +nnoremap rn :action RenameElement +nnoremap c :action ChangeColorScheme +nnoremap ; :actionlist +vnoremap a :action StringManipulation.AlignToColumns +nnoremap bb :action BuildCurrentProject +nnoremap br :action Run +nnoremap bd :action Debug +nnoremap bs :action BuildSolutionAction + +vnoremap gq :action aligncarets.AlignAction +nnoremap w :action SaveDocument +nnoremap or :action ManageRecentProjects + +noremap - :action LocateInSolutionView +noremap = :action ReformatCode +vnoremap = :action ReformatCode +nnoremap / :nohlsearch +nnoremap g/ :action Find +nnoremap :action GotoAction + +" So we jump to both line and column for marks +nnoremap ' ` +nnoremap Y y$ +nnoremap $ g_ +nnoremap vv ^vg_ +nnoremap g; :action JumpToLastChange +nnoremap g, :action JumpToNextChange + +nnoremap :action GoToTab1 +nnoremap :action GoToTab2 +nnoremap :action GoToTab3 +nnoremap :action GoToTab4 +nnoremap :action GoToTab5 +nnoremap :action GoToTab6 +nnoremap :action GoToTab7 +nnoremap :action GoToTab8 +nnoremap :action GoToTab9 + +nnoremap :action MoveLineDown +nnoremap :action MoveLineUp +nnoremap h +nnoremap l +noremap :action SurroundWithLiveTemplate +nnoremap gT +nnoremap gt +nnoremap :action EditorCloneCaretBelow +nnoremap :action EditorCloneCaretAbove +nnoremap A; +inoremap A; +nnoremap :action ToggleDistractionFreeMode +nnoremap :action ToggleFullScreen +nnoremap :action GotoNextError +nnoremap :action GotoPreviousError +nnoremap moo'o +nnoremap moO'o +nnoremap :action ParameterNameHints