" ------------- " unmappings " ------------- " ------------- " other stuff " ------------- "nnoremap C :tabnew ~/.vim/plugins/quickrunner.vim " -------- " mouse " -------- noremap <2-RightMouse> zO " -------- " vifm " -------- nnoremap v :EditVifm noremap :TabVifm " ------------ " nerdtree " ------------ "nnoremap :NERDTreeToggle "map fn :NERDTreeToggle " --------------- " leader-guide " --------------- "nnoremap :LeaderGuide '' "vnoremap :LeaderGuideVisual '' "let g:leaderGuide_submode_mappings = { " \'j' : 'page_down', " \'k' : 'page_up' " \} " -------------- " C relevant " -------------- nnoremap gd :!gcc -g -lm -Werror -Wfatal-errors -Wall -Wextra -Wuninitialized % nnoremap gl :!gcc -g -O0 % " ---------------- " vim-which-key " ---------------- nnoremap :WhichKey '' vnoremap :WhichKeyVisual '' " ----------- " debugging " ----------- noremap :!gcc -g -O0 % :call vimspector#Restart() noremap :call vimspector#StepOut() noremap :call vimspector#StepInto() noremap :!gcc -g -O0 % :call vimspector#Continue() noremap :call vimspector#ToggleBreakpoint() noremap :call vimspector#ToggleBreakpoint({'condition' : ''}) noremap :VimspectorWatch "nnoremap dc VimspectorContinue "nnoremap ds VimspectorStop "nnoremap dr VimspectorRestart "nnoremap dp VimspectorPause "nnoremap dT VimspectorToggleBreakpoint "nnoremap dt VimspectorToggleConditionalBreakpoint "nnoremap da VimspectorAddFunctionBreakpoint "nnoremap do VimspectorStepOver "nnoremap dI VimspectorStepInto "nnoremap dO VimspectorStepOut " --------- " tagbar " --------- nnoremap :TagbarToggle "nnoremap it :TagbarToggle " cloase preview window nnoremap ip :pc " syntastic (close error-window) "nnoremap e :lclose " ------- " fzf " ------- "noremap :FZF " -------------------- " grammar checking " -------------------- "map gn (grammarous-move-to-next-error) "map gc (grammarous-close-info-window) "map gf (grammarous-fixit) "map gs :GrammarousCheck --lang=de "map gp (grammarous-move-to-previous-error) "map go (grammarous-open-info-window) "map gr (grammarous-remove-error) "map gd (grammarous-disable-rule) " ------------------ " quickrunner " ------------------ noremap lr :QuickRun -outputter loclist -input "=" noremap l1 :QuickRun -outputter loclist -cmdopt "text1.txt" noremap l2 :QuickRun -outputter loclist -cmdopt "text2.txt" noremap l3 :QuickRun -outputter loclist -cmdopt "text3.txt" noremap l4 :QuickRun -outputter loclist -cmdopt "text4.txt" " ------------ " tabmanager " ------------ "let g:tabman_toggle = 'tt' "let g:tabman_focus = 'tf' " ---------- " arduino " ---------- "map ab :make --makefile=~/.platformio/Makefile "map au :make --makefile=~/.platformio/Makefile upload "map ac :make --makefile=~/.platformio/Makefile clean " ----------- " ultisnips " ----------- let g:UltiSnipsExpandTrigger="" let g:UltiSnipsListSnippets='' "let g:UltiSnipsJumpForwardTrigger="" "let g:UltiSnipsBackwardTrigger="" "inoremap map ue :UltiSnipsEdit " ----------------- " Window " ----------------- " splitting window noremap w " Resize horizontal splitted windows with 'c' and 'Ctrl + c' noremap t :res +2 noremap :res -2 " Resize vertical splitted windows with '<' and '>' noremap < 3< noremap > 3> " ---------------- " window swapping " ---------------- "map wy :call WindowSwap#MarkWindowSwap() "map wp :call WindowSwap#DoWindowSwap() "map ww :call WindowSwap#EasyWindowSwap() " --------------- " choose window " --------------- "nnoremap s (choosewin) " --------------- " Folding " --------------- " Fold a function to the next '}' nnoremap zz va}zf " ------------- " indentation " ------------- nnoremap I :IndentLinesToggle " ------------------ " mutiple-cursors " ------------------ "let g:multi_cursor_quit_key = '' "let g:multi_cursor_start_word_key = '' ""let g:multi_cursor_select_all_word_key = 'my' "let g:multi_cursor_start_key = 'mS' "let g:multi_cursor_select_all_key = 'mas' "let g:multi_cursor_next_key = '' "let g:multi_cursor_prev_key = '' "let g:multi_cursor_skip_key = '' " --------------- " Terminal " --------------- tnoremap " -----===================----- " Coc " -----===================----- " -- snippets " move between the function args let g:coc_snippet_next = '' let g:coc_snippet_prev = '' "noremap :CocList -I symbols " to move in insert mode "inoremap la "inoremap ha " -- Use Ctrl+h to trigger completion. inoremap coc#refresh() " Use to confirm completion, `u` means break undo chain at current " position. Coc only does snippet and additional edit on confirm. " could be remapped by other vim plugin, try `:verbose imap `. if exists('*complete_info') inoremap complete_info()["selected"] != "-1" ? "\" : "\u\" else inoremap pumvisible() ? "\" : "\u\" endif " ------------- " Other stuff " ------------- " undo the undo with a latter U map U " reload the vimrc map ir :source ~/.vim/vimrc " --------- " macros " --------- noremap ä q " ------------------ " Private ones " ------------------ noremap q :wq noremap :w:bd noremap :w onoremap vnoremap inoremap inoremap imap nnoremap :%s///gc$F/i noremap 5h noremap 5l noremap 0 noremap $ noremap 5gj noremap 5gk vnoremap 5gj vnoremap 5gk nnoremap k gk nnoremap j gj noremap ö i noremap Ö I vnoremap 5gj " When After typing a bracket return, it will set place the cursor correctly inoremap { {}O inoremap ( ()O inoremap [ []O ""inoremap " "" ""inoremap ' '' ""inoremap ( () ""inoremap [ [] ""inoremap { {}