Move vim plug prefs to dedicated files

This commit is contained in:
Christian Nieves
2022-09-28 16:40:17 +00:00
parent 0139026e84
commit 5f0f3bba37
10 changed files with 188 additions and 307 deletions

View File

@ -1,18 +1,6 @@
" mnemonic: (i)nsert (l)ambda
imap <leader>il <C-K>l*
" HEX<->ASCII
" mnemonic: (h)ex (t)o (a)scii
vnoremap <leader>hta :<c-u>s/\%V\x\x/\=nr2char(printf("%d", "0x".submatch(0)))/g<cr><c-l>`<
" mnemonic: (a)scii (t)o (h)ex
vnoremap <leader>ath :<c-u>s/\%V./\=printf("%x",char2nr(submatch(0)))/g<cr><c-l>`<
let g:windowswap_map_keys = 0 "prevent default bindings
nnoremap <silent> <leader>yw :call WindowSwap#MarkWindowSwap()<CR>
" --------- SURROUND MAPPINGS ---------
" <leader>" Surround a word with "quotes"
map <leader>" ysiw"
@ -86,20 +74,6 @@ endfunction
nmap <leader>toi :CocCommand tsserver.organizeImports<cr>
" --------- FUGITIVE MAPPINGS ---------
nmap <leader>dg :diffget<cr>
nmap <leader>dp :diffput<cr>
nmap <leader>du :diffupdate<cr>
vmap <leader>dg :diffget<cr>
vmap <leader>dp :diffput<cr>
vmap <leader>du :diffupdate<cr>
nmap <leader>giw :Gwrite<cr>
nmap <leader>gic :Gcommit -v<cr>
nmap <leader>gid :Gdiff<cr>
nmap <leader>gis :Gstatus<cr>
"" --------- NERD Commenter
" Create default mappings
let g:NERDCreateDefaultMappings = 0