Remove vim todos form old config

This commit is contained in:
Thomas Dehaeze 2020-11-03 11:31:16 +01:00
parent 74f821bbc1
commit 659fed0501

View File

@ -577,31 +577,30 @@ au BufRead,BufNewFile *.md setlocal spell spelllang=fr,en
** LaTeX ** LaTeX
#+begin_src vimrc #+begin_src vimrc
" TODO : améliorer ça au BufRead,BufNewFile *.tikz set filetype=tex
au BufRead,BufNewFile *.tikz set filetype=tex let tex_no_error=1 " used to not highlight underscores
let tex_no_error=1 " TODO: used to not highlight underscores au BufRead,BufNewFile *.tex set filetype=tex
au BufRead,BufNewFile *.tex set filetype=tex au BufRead,BufNewFile *.tex let b:AutoPairs={'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '$':'$'}
au BufRead,BufNewFile *.tex let b:AutoPairs={'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '$':'$'}
au BufRead,BufNewFile *.tex set iskeyword+=- au BufRead,BufNewFile *.tex set iskeyword+=-
" " clear the current list of matches that cause error-highlighting " " clear the current list of matches that cause error-highlighting
" syn clear texOnlyMath " syn clear texOnlyMath
" " still mark '^' as an error outside of math mode " " still mark '^' as an error outside of math mode
" syn match texOnlyMath /[\^]/ " syn match texOnlyMath /[\^]/
" autocmd FileType tex,tikz nnoremap <leader>lt <plug>(vimtex-toc-toggle) " autocmd FileType tex,tikz nnoremap <leader>lt <plug>(vimtex-toc-toggle)
" autocmd FileType tex,tikz nnoremap <leader>ll <plug>(vimtex-labels-open) " autocmd FileType tex,tikz nnoremap <leader>ll <plug>(vimtex-labels-open)
" autocmd FileType tex,tikz nnoremap <leader>lv <plug>(vimtex-view) " autocmd FileType tex,tikz nnoremap <leader>lv <plug>(vimtex-view)
" autocmd FileType tex,tikz nnoremap <leader>lf <plug>(vimtex-reverse-search) " autocmd FileType tex,tikz nnoremap <leader>lf <plug>(vimtex-reverse-search)
" " Make Tikz " " Make Tikz
" nnoremap <leader>mt :Make pdf t=tikz f=%:t:r<cr> " nnoremap <leader>mt :Make pdf t=tikz f=%:t:r<cr>
" nnoremap <leader>mto :make open t=tikz f=%:t:r<cr> " nnoremap <leader>mto :make open t=tikz f=%:t:r<cr>
" " Make LaTeX " " Make LaTeX
" nnoremap <leader>ml :Make pdf f=%:t:r<cr> " nnoremap <leader>ml :Make pdf f=%:t:r<cr>
" nnoremap <leader>mlo :make open f=%:t:r<cr> " nnoremap <leader>mlo :make open f=%:t:r<cr>
#+end_src #+end_src
** Arduino ** Arduino
@ -615,90 +614,79 @@ au BufRead,BufNewFile *.ino set filetype=arduino
** Python ** Python
#+begin_src vimrc #+begin_src vimrc
let g:slime_python_ipython = 1 let g:slime_python_ipython = 1
au FileType python setlocal expandtab au FileType python setlocal expandtab
au FileType python setlocal tabstop=4 au FileType python setlocal tabstop=4
au FileType python setlocal shiftwidth=4 au FileType python setlocal shiftwidth=4
" Run Section " Run Section
au FileType python nmap <buffer> <localleader><localleader> <Plug>SlimeParagraphSend au FileType python nmap <buffer> <localleader><localleader> <Plug>SlimeParagraphSend
" Run Selected text " Run Selected text
au FileType python vmap <buffer> <localleader><localleader> <Plug>SlimeRegionSend au FileType python vmap <buffer> <localleader><localleader> <Plug>SlimeRegionSend
" CD to directory of current file " CD to directory of current file
" TODO - Should enter the command. This just output the command without runing au FileType python nmap <buffer> <localleader>c :SlimeSend0('cd '.expand('%:p:h'))<CR>
" it...
au FileType python nmap <buffer> <localleader>c :SlimeSend0('cd '.expand('%:p:h'))<CR>
" let python_highlight_all = 1 " let python_highlight_all = 1
" au FileType python syn keyword pythonDecorator True None False self " au FileType python syn keyword pythonDecorator True None False self
" au BufNewFile,BufRead *.jinja set syntax=htmljinja " au BufNewFile,BufRead *.jinja set syntax=htmljinja
" au BufNewFile,BufRead *.mako set ft=mako " au BufNewFile,BufRead *.mako set ft=mako
" au FileType python map <buffer> F :set foldmethod=indent<cr> " au FileType python map <buffer> F :set foldmethod=indent<cr>
" au FileType python inoremap <buffer> $r return " au FileType python inoremap <buffer> $r return
" au FileType python inoremap <buffer> $i import " au FileType python inoremap <buffer> $i import
" au FileType python inoremap <buffer> $p print " au FileType python inoremap <buffer> $p print
" au FileType python inoremap <buffer> $f #--- <esc>a " au FileType python inoremap <buffer> $f #--- <esc>a
" au FileType python map <buffer> <leader>1 /class " au FileType python map <buffer> <leader>1 /class
" au FileType python map <buffer> <leader>2 /def " au FileType python map <buffer> <leader>2 /def
" au FileType python map <buffer> <leader>C ?class " au FileType python map <buffer> <leader>C ?class
" au FileType python map <buffer> <leader>D ?def " au FileType python map <buffer> <leader>D ?def
#+end_src #+end_src
** Matlab ** Matlab
#+begin_src vimrc #+begin_src vimrc
" TODO Run Section (delimited by %%) " Run Section (delimited by %%)
au FileType matlab nmap <buffer> <localleader>mm <Plug>SlimeParagraphSend au FileType matlab nmap <buffer> <localleader>mm <Plug>SlimeParagraphSend
let g:which_key_map_local.m = { 'name' : '+matlab' } let g:which_key_map_local.m = { 'name' : '+matlab' }
" Run either Selected text " Run either Selected text
au FileType matlab vmap <buffer> <localleader>mm <Plug>SlimeRegionSend au FileType matlab vmap <buffer> <localleader>mm <Plug>SlimeRegionSend
let g:which_key_map_local.mm = 'run-code' let g:which_key_map_local.mm = 'run-code'
func! GetSelectedText() func! GetSelectedText()
normal gv"xy normal gv"xy
let result = getreg("x") let result = getreg("x")
normal gv normal gv
return result return result
endfunc endfunc
" Help on the current selection " Help on the current selection
au FileType matlab vmap <buffer> <localleader>mh :<C-U>SlimeSend0('help '.expand(GetSelectedText()))<CR> au FileType matlab vmap <buffer> <localleader>mh :<C-U>SlimeSend0('help '.expand(GetSelectedText()))<CR>
let g:which_key_map_local.mh = 'help' let g:which_key_map_local.mh = 'help'
" Documentation on the current selection " Documentation on the current selection
au FileType matlab vmap <buffer> <localleader>mH :<C-U>SlimeSend0('doc '.expand(GetSelectedText()))<CR> au FileType matlab vmap <buffer> <localleader>mH :<C-U>SlimeSend0('doc '.expand(GetSelectedText()))<CR>
let g:which_key_map_local.mh = 'help' let g:which_key_map_local.mh = 'help'
" Open the current file in the Matlab Editor (usefull for debuging) " Open the current file in the Matlab Editor (usefull for debuging)
au FileType matlab nmap <buffer> <localleader>me :SlimeSend0('edit '.expand('%:p'))<CR> au FileType matlab nmap <buffer> <localleader>me :SlimeSend0('edit '.expand('%:p'))<CR>
let g:which_key_map_local.me = 'edit-gui' let g:which_key_map_local.me = 'edit-gui'
" Run all the file " Run all the file
au FileType matlab nmap <buffer> <localleader>mr :SlimeSend0('run '.expand('%:t'))<CR> au FileType matlab nmap <buffer> <localleader>mr :SlimeSend0('run '.expand('%:t'))<CR>
let g:which_key_map_local.mr = 'run-file' let g:which_key_map_local.mr = 'run-file'
" Send "cd filepath" to matlab " Send "cd filepath" to matlab
au FileType matlab nmap <buffer> <localleader>mc :SlimeSend0('cd '.expand('%:p:h'))<CR> au FileType matlab nmap <buffer> <localleader>mc :SlimeSend0('cd '.expand('%:p:h'))<CR>
let g:which_key_map_local.mr = 'cd-file' let g:which_key_map_local.mr = 'cd-file'
" Open workspace " Open workspace
au FileType matlab nmap <buffer> <localleader>mw :SlimeSend0('workspace')<CR> au FileType matlab nmap <buffer> <localleader>mw :SlimeSend0('workspace')<CR>
let g:which_key_map_local.mr = 'workspace' let g:which_key_map_local.mr = 'workspace'
#+end_src
** Sage
#+begin_src vimrc
" TODO Run Section
au FileType sage.python nmap <buffer> <localleader><localleader> <Plug>SlimeParagraphSend
" Run Selected text
au FileType sage.python vmap <buffer> <localleader><localleader> <Plug>SlimeRegionSend
#+end_src #+end_src
** Save Which Key Configuration ** Save Which Key Configuration
@ -963,208 +951,206 @@ let g:tex_conceal = ""
* Bindings * Bindings
** Vim Which Key ** Vim Which Key
#+begin_src vimrc #+begin_src vimrc
nnoremap <silent> <leader> :WhichKey '<Space>'<cr> nnoremap <silent> <leader> :WhichKey '<Space>'<cr>
let g:which_key_map = {} let g:which_key_map = {}
#+end_src #+end_src
** Direct ones ** Direct ones
#+begin_src vimrc #+begin_src vimrc
" Switch with last buffer " Switch with last buffer
nnoremap <leader><Tab> :e #<cr> nnoremap <leader><Tab> :e #<cr>
" let g:which_key_map.<Tab> = 'last-buffer' " let g:which_key_map.<Tab> = 'last-buffer'
#+end_src #+end_src
** Quit ** Quit
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.q = { 'name' : '+quit' } let g:which_key_map.q = { 'name' : '+quit' }
" Quit " Quit
nnoremap <leader>qq :qa<cr> nnoremap <leader>qq :qa<cr>
let g:which_key_map.q.q = 'quit' let g:which_key_map.q.q = 'quit'
" Quit - Force " Quit - Force
nnoremap <leader>qQ :qa!<cr> nnoremap <leader>qQ :qa!<cr>
let g:which_key_map.q.Q = 'quit-force' let g:which_key_map.q.Q = 'quit-force'
" Quit - Save " Quit - Save
nnoremap <leader>qw :wq<cr> nnoremap <leader>qw :wq<cr>
let g:which_key_map.q.w = 'quit-save' let g:which_key_map.q.w = 'quit-save'
" Quit - Save all " Quit - Save all
nnoremap <leader>qW :wqa<cr> nnoremap <leader>qW :wqa<cr>
let g:which_key_map.q.W = 'quit-save-all' let g:which_key_map.q.W = 'quit-save-all'
#+end_src #+end_src
** Files ** Files
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.f = { 'name' : '+files' } let g:which_key_map.f = { 'name' : '+files' }
" Fast saving " Fast saving
nnoremap <leader>fs :w!<cr> nnoremap <leader>fs :w!<cr>
let g:which_key_map.f.s = 'save-file' let g:which_key_map.f.s = 'save-file'
" Fast saving all " Fast saving all
nnoremap <leader>fS :wa!<cr> nnoremap <leader>fS :wa!<cr>
let g:which_key_map.f.S = 'save-all' let g:which_key_map.f.S = 'save-all'
" Find Files " Find Files
noremap <leader>ff :Files<CR> noremap <leader>ff :Files<CR>
let g:which_key_map.f.f = 'find-file' let g:which_key_map.f.f = 'find-file'
" Find File corresping to Word " Find File corresping to Word
nnoremap <leader>fw nnoremap <leader>fw
\ :call fzf#vim#files('.', fzf#vim#with_preview({'options': ['--query', expand('<cword>')]}))<cr> \ :call fzf#vim#files('.', fzf#vim#with_preview({'options': ['--query', expand('<cword>')]}))<cr>
" TODO - Add visual keymap
" vnoremap <leader>fw let g:which_key_map.f.w = 'find-file-word'
" \ :call fzf#vim#files('.', fzf#vim#with_preview({'options': ['--query', <C-r>0]}))<cr>
let g:which_key_map.f.w = 'find-file-word'
#+end_src #+end_src
** Buffers ** Buffers
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.b = { 'name' : '+buffers' } let g:which_key_map.b = { 'name' : '+buffers' }
" Buffer Create " Buffer Create
noremap <leader>bc :enew<cr> noremap <leader>bc :enew<cr>
let g:which_key_map.b.c = 'buffer-create' let g:which_key_map.b.c = 'buffer-create'
" Buffer Delete " Buffer Delete
noremap <leader>bd :Bclose<cr> noremap <leader>bd :Bclose<cr>
let g:which_key_map.b.d = 'buffer-delete' let g:which_key_map.b.d = 'buffer-delete'
" Buffer Delete all others " Buffer Delete all others
noremap <leader>bD :bufdo bd<cr> noremap <leader>bD :bufdo bd<cr>
let g:which_key_map.b.D = 'buffer-delete-others' let g:which_key_map.b.D = 'buffer-delete-others'
" Buffer Next " Buffer Next
noremap <leader>bn :bnext<cr> noremap <leader>bn :bnext<cr>
let g:which_key_map.b.n = 'buffer-next' let g:which_key_map.b.n = 'buffer-next'
" Buffer Previous " Buffer Previous
noremap <leader>bp :bprevious<cr> noremap <leader>bp :bprevious<cr>
let g:which_key_map.b.p = 'buffer-previous' let g:which_key_map.b.p = 'buffer-previous'
" Find Buffers " Find Buffers
noremap <leader>bf :Buffers<CR> noremap <leader>bf :Buffers<CR>
let g:which_key_map.b.f = 'buffer-find' let g:which_key_map.b.f = 'buffer-find'
" Buffer Home (startify) " Buffer Home (startify)
noremap <leader>bh :Startify<CR> noremap <leader>bh :Startify<CR>
let g:which_key_map.b.h = 'buffer-home' let g:which_key_map.b.h = 'buffer-home'
" CD to buffer path " CD to buffer path
noremap <leader>bw :cd %:p:h<CR>:pwd<CR> noremap <leader>bw :cd %:p:h<CR>:pwd<CR>
let g:which_key_map.b.w = 'buffer-pwd' let g:which_key_map.b.w = 'buffer-pwd'
#+end_src #+end_src
** Tabs ** Tabs
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.t = { 'name' : '+tabs' } let g:which_key_map.t = { 'name' : '+tabs' }
" Let 'tt' toggle between this and the last accessed tab " Let 'tt' toggle between this and the last accessed tab
let g:lasttab = 1 let g:lasttab = 1
au TabLeave * let g:lasttab = tabpagenr() au TabLeave * let g:lasttab = tabpagenr()
" Tab New " Tab New
nnoremap <leader>tc :tabnew<cr> nnoremap <leader>tc :tabnew<cr>
let g:which_key_map.t.c = 'tab-create' let g:which_key_map.t.c = 'tab-create'
" Tab Delete " Tab Delete
nnoremap <leader>td :tabclose<cr> nnoremap <leader>td :tabclose<cr>
let g:which_key_map.t.d = 'tab-delete' let g:which_key_map.t.d = 'tab-delete'
" Tab Maximize " Tab Maximize
nnoremap <leader>tD :tabonly<cr> nnoremap <leader>tD :tabonly<cr>
let g:which_key_map.t.D = 'tab-delete-others' let g:which_key_map.t.D = 'tab-delete-others'
" Tab Left " Tab Left
nnoremap <leader>th gt<cr> nnoremap <leader>th gt<cr>
let g:which_key_map.t.h = 'tab-left' let g:which_key_map.t.h = 'tab-left'
" Tab Right " Tab Right
nnoremap <leader>tl gT<cr> nnoremap <leader>tl gT<cr>
let g:which_key_map.t.l = 'tab-right' let g:which_key_map.t.l = 'tab-right'
" Tab Move Left " Tab Move Left
nnoremap <leader>tH :tabmove -1<cr> nnoremap <leader>tH :tabmove -1<cr>
let g:which_key_map.t.H = 'tab-move-left' let g:which_key_map.t.H = 'tab-move-left'
" Tab Move Right " Tab Move Right
nnoremap <leader>tL :tabmove +1<cr> nnoremap <leader>tL :tabmove +1<cr>
let g:which_key_map.t.L = 'tab-move-right' let g:which_key_map.t.L = 'tab-move-right'
" Tab Toggle " Tab Toggle
nnoremap <Leader>tt :exe "tabn ".g:lasttab<CR> nnoremap <Leader>tt :exe "tabn ".g:lasttab<CR>
let g:which_key_map.t.t = 'tab-toggle' let g:which_key_map.t.t = 'tab-toggle'
#+end_src #+end_src
** Terminals ** Terminals
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.T = { 'name' : '+terminals' } let g:which_key_map.T = { 'name' : '+terminals' }
" Quickly create a new terminal in a new tab " Quickly create a new terminal in a new tab
nnoremap <Leader>Tc :tab new<CR>:term<CR> nnoremap <Leader>Tc :tab new<CR>:term<CR>
let g:which_key_map.T.c = 'term-create' let g:which_key_map.T.c = 'term-create'
" Quickly create a new terminal in a vertical split " Quickly create a new terminal in a vertical split
nnoremap <Leader>T/ :vsplit<CR>:term<CR> nnoremap <Leader>T/ :vsplit<CR>:term<CR>
" let g:which_key_map.T./ = 'term-vert' " let g:which_key_map.T./ = 'term-vert'
" Quickly create a new terminal in a horizontal split " Quickly create a new terminal in a horizontal split
nnoremap <Leader>T- :split<CR>:term<CR> nnoremap <Leader>T- :split<CR>:term<CR>
" let g:which_key_map.T.- = 'term-hor' " let g:which_key_map.T.- = 'term-hor'
#+end_src #+end_src
** Splits / Windows ** Splits / Windows
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.w = { 'name' : '+windows' } let g:which_key_map.w = { 'name' : '+windows' }
" Split Horizontal " Split Horizontal
nnoremap <leader>w- :split<cr> nnoremap <leader>w- :split<cr>
" let g:which_key_map.w.- = 'win-hor' " let g:which_key_map.w.- = 'win-hor'
" Split Vertical " Split Vertical
nnoremap <leader>w/ :vsplit<cr> nnoremap <leader>w/ :vsplit<cr>
" let g:which_key_map.w./ = 'win-vert' " let g:which_key_map.w./ = 'win-vert'
" Split Maximize " Split Maximize
nnoremap <leader>wD <C-w>o nnoremap <leader>wD <C-w>o
let g:which_key_map.w.D = 'win-delete-others' let g:which_key_map.w.D = 'win-delete-others'
" Split Delete " Split Delete
nnoremap <leader>wd <C-w>q nnoremap <leader>wd <C-w>q
let g:which_key_map.w.d = 'win-delete' let g:which_key_map.w.d = 'win-delete'
" Split Go Left " Split Go Left
nnoremap <leader>wh :wincmd h<CR> nnoremap <leader>wh :wincmd h<CR>
let g:which_key_map.w.h = 'win-left' let g:which_key_map.w.h = 'win-left'
" Split Go Down " Split Go Down
nnoremap <leader>wj :wincmd j<CR> nnoremap <leader>wj :wincmd j<CR>
let g:which_key_map.w.j = 'win-down' let g:which_key_map.w.j = 'win-down'
" Split Go Up " Split Go Up
nnoremap <leader>wk :wincmd k<CR> nnoremap <leader>wk :wincmd k<CR>
let g:which_key_map.w.k = 'win-up' let g:which_key_map.w.k = 'win-up'
" Split Go Right " Split Go Right
nnoremap <leader>wl :wincmd l<CR> nnoremap <leader>wl :wincmd l<CR>
let g:which_key_map.w.l = 'win-right' let g:which_key_map.w.l = 'win-right'
" Split to Tab " Split to Tab
nnoremap <leader>wt <C-w>T nnoremap <leader>wt <C-w>T
let g:which_key_map.w.t = 'win-make-tab' let g:which_key_map.w.t = 'win-make-tab'
" Find window " Find window
nnoremap <leader>wf :Windows<CR> nnoremap <leader>wf :Windows<CR>
let g:which_key_map.w.f = 'win-find' let g:which_key_map.w.f = 'win-find'
" Maximize window " Maximize window
nnoremap <leader>wm :call MaximizeToggle()<CR> nnoremap <leader>wm :call MaximizeToggle()<CR>
let g:which_key_map.w.m = 'win-maximize' let g:which_key_map.w.m = 'win-maximize'
function! MaximizeToggle() function! MaximizeToggle()
if exists("s:maximize_session") if exists("s:maximize_session")
exec "source " . s:maximize_session exec "source " . s:maximize_session
call delete(s:maximize_session) call delete(s:maximize_session)
@ -1178,140 +1164,139 @@ function! MaximizeToggle()
exec "mksession! " . s:maximize_session exec "mksession! " . s:maximize_session
only only
endif endif
endfunction endfunction
#+end_src #+end_src
** Check Spell ** Check Spell
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.S = { 'name' : '+spell-check' } let g:which_key_map.S = { 'name' : '+spell-check' }
" CheckSpell Toggle " CheckSpell Toggle
noremap <leader>St :setlocal spell!<cr> noremap <leader>St :setlocal spell!<cr>
let g:which_key_map.S.t = 'spell-toggle' let g:which_key_map.S.t = 'spell-toggle'
" CheckSpell Correct " CheckSpell Correct
noremap <leader>Sc z= noremap <leader>Sc z=
let g:which_key_map.S.c = 'spell-correct' let g:which_key_map.S.c = 'spell-correct'
" CheckSpell Do first " CheckSpell Do first
noremap <leader>SC 1z= noremap <leader>SC 1z=
let g:which_key_map.S.C = 'spell-correct-first' let g:which_key_map.S.C = 'spell-correct-first'
" CheckSpell Language " CheckSpell Language
noremap <leader>Sl :set spelllang= noremap <leader>Sl :set spelllang=
let g:which_key_map.S.l = 'spell-language' let g:which_key_map.S.l = 'spell-language'
" CheckSpell Next " CheckSpell Next
noremap <leader>Sn ]s noremap <leader>Sn ]s
let g:which_key_map.S.n = 'spell-next' let g:which_key_map.S.n = 'spell-next'
" CheckSpell Next and correct " CheckSpell Next and correct
noremap <leader>SN ]s1z= noremap <leader>SN ]s1z=
let g:which_key_map.S.N = 'spell-next-correct' let g:which_key_map.S.N = 'spell-next-correct'
" CheckSpell Previous " CheckSpell Previous
noremap <leader>Sp [s noremap <leader>Sp [s
let g:which_key_map.S.p = 'spell-prev' let g:which_key_map.S.p = 'spell-prev'
" CheckSpell Previous and correct " CheckSpell Previous and correct
noremap <leader>SP [s1z= noremap <leader>SP [s1z=
let g:which_key_map.S.P = 'spell-prev-correct' let g:which_key_map.S.P = 'spell-prev-correct'
" CheckSpell Add to dictionnary " CheckSpell Add to dictionnary
noremap <leader>Sa zg noremap <leader>Sa zg
let g:which_key_map.S.a = 'spell-add-dict' let g:which_key_map.S.a = 'spell-add-dict'
#+end_src #+end_src
** Make ** Make
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.m = { 'name' : '+make' } let g:which_key_map.m = { 'name' : '+make' }
" Make Make " Make Make
nnoremap <leader>mm :Make -B<CR> nnoremap <leader>mm :Make -B<CR>
let g:which_key_map.m.m = 'make' let g:which_key_map.m.m = 'make'
" Make Clean " Make Clean
nnoremap <leader>mc :Make clean<CR> nnoremap <leader>mc :Make clean<CR>
let g:which_key_map.m.c = 'make-clean' let g:which_key_map.m.c = 'make-clean'
" Make Force " Make Force
nnoremap <leader>mf :Make! -B<CR> nnoremap <leader>mf :Make! -B<CR>
let g:which_key_map.m.f = 'make-force' let g:which_key_map.m.f = 'make-force'
" Make Run " Make Run
nnoremap <leader>mr :Make! run<cr> nnoremap <leader>mr :Make! run<cr>
let g:which_key_map.m.r = 'make-run' let g:which_key_map.m.r = 'make-run'
" Make Open " Make Open
nnoremap <leader>mo :make! open<cr> nnoremap <leader>mo :make! open<cr>
let g:which_key_map.m.o = 'make-open' let g:which_key_map.m.o = 'make-open'
#+end_src #+end_src
** Search ** Search
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.s = { 'name' : '+search' } let g:which_key_map.s = { 'name' : '+search' }
" Search History " Search History
noremap <leader>sh :History<CR> noremap <leader>sh :History<CR>
let g:which_key_map.s.h = 'search-history' let g:which_key_map.s.h = 'search-history'
" Search Tags " Search Tags
noremap <leader>sT :Tags<CR> noremap <leader>sT :Tags<CR>
let g:which_key_map.s.T = 'search-tags' let g:which_key_map.s.T = 'search-tags'
" Search All " Search All
noremap <leader>sa :Rg<CR> noremap <leader>sa :Rg<CR>
let g:which_key_map.s.g = 'search-all' let g:which_key_map.s.g = 'search-all'
" Search Word " Search Word
noremap <leader>sw :exe ':Rg ' . expand('<cword>')<CR> noremap <leader>sw :exe ':Rg ' . expand('<cword>')<CR>
let g:which_key_map.s.w = 'search-word' let g:which_key_map.s.w = 'search-word'
" Search todo keyboard " Search todo keyboard
" TODO - should not have to press enter nnoremap <leader>st :Grepper -tool rg -query TODO<CR>
nnoremap <leader>st :Grepper -tool rg -query TODO<CR> let g:which_key_map.s.t = 'search-todos'
let g:which_key_map.s.t = 'search-todos'
#+end_src #+end_src
** GIT ** GIT
#+begin_src vimrc #+begin_src vimrc
let g:which_key_map.g = { 'name' : '+git' } let g:which_key_map.g = { 'name' : '+git' }
" Git Gutter " Git Gutter
nnoremap <silent><leader>gg :SignifyToggle<cr> nnoremap <silent><leader>gg :SignifyToggle<cr>
let g:which_key_map.g.g = 'git-' let g:which_key_map.g.g = 'git-'
" Git Gutter Highlight " Git Gutter Highlight
nnoremap <silent><leader>gG :SignifyToggleHighlight<cr> nnoremap <silent><leader>gG :SignifyToggleHighlight<cr>
let g:which_key_map.g.G = 'git-' let g:which_key_map.g.G = 'git-'
" Git Commit " Git Commit
nnoremap <leader>gc :Gcommit<CR> nnoremap <leader>gc :Gcommit<CR>
let g:which_key_map.g.c = 'git-commit' let g:which_key_map.g.c = 'git-commit'
" Git Status " Git Status
nnoremap <leader>gs :Gstatus<CR> nnoremap <leader>gs :Gstatus<CR>
let g:which_key_map.g.s = 'git-status' let g:which_key_map.g.s = 'git-status'
" Git Diff " Git Diff
nnoremap <leader>gd :Gdiff<CR> nnoremap <leader>gd :Gdiff<CR>
let g:which_key_map.g.d = 'git-diff' let g:which_key_map.g.d = 'git-diff'
" Git Blame " Git Blame
nnoremap <leader>gb :Gblame<CR> nnoremap <leader>gb :Gblame<CR>
let g:which_key_map.g.b = 'git-blame' let g:which_key_map.g.b = 'git-blame'
" Git Visualise " Git Visualise
nnoremap <leader>gv :GV<CR> nnoremap <leader>gv :GV<CR>
let g:which_key_map.g.v = 'git-visualize' let g:which_key_map.g.v = 'git-visualize'
" Git File (visualise) " Git File (visualise)
nnoremap <leader>gF :GV!<CR> nnoremap <leader>gF :GV!<CR>
let g:which_key_map.g.F = 'git-file' let g:which_key_map.g.F = 'git-file'
" Git Find Commits " Git Find Commits
noremap <leader>gf :Commits<CR> noremap <leader>gf :Commits<CR>
let g:which_key_map.g.f = 'git-find-commit' let g:which_key_map.g.f = 'git-find-commit'
#+end_src #+end_src
** Errors ** Errors