summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-07-18 15:44:18 -0500
committerMarc Coquand <marc@mccd.space>2024-07-18 15:44:18 -0500
commitc1d0847d936f04eb77b67c64c2a55ae789dc9933 (patch)
treeb697a025cd226a190f993d391ae3a08227d78fde /vimrc
parent7f64b5f4c4280e9d78c07c052f1af6563adfcd54 (diff)
downloadbsd-c1d0847d936f04eb77b67c64c2a55ae789dc9933.tar.gz
bsd-c1d0847d936f04eb77b67c64c2a55ae789dc9933.tar.bz2
bsd-c1d0847d936f04eb77b67c64c2a55ae789dc9933.zip
vimrc: keybindings
Diffstat (limited to '')
-rw-r--r--vimrc14
1 files changed, 12 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index decc4ff..23193e9 100644
--- a/vimrc
+++ b/vimrc
@@ -25,7 +25,8 @@ colorscheme quiet
set t_Co=256
set tgc
hi Normal guifg=black guibg=#FEFFFA
-""hi Keyword ctermfg=black cterm=bold
+"hi String guifg=blue
+"hi Comment guifg=gray cterm=italic
hi SpellBad term=reverse term=underline guibg=#FEFFFA
hi SpellCap term=reverse term=underline guibg=#FEFFFA
hi SpellRare term=reverse term=underline guibg=#FEFFFA
@@ -178,7 +179,9 @@ noremap <leader>cr :LspRename<Enter>
noremap <leader>m :make<Enter>
noremap <silent> <leader>k :LspDiagCurrent<Enter>
noremap <silent> K :LspHover<Enter>
-nnoremap <leader>l :ls<CR>:b<space>
+" Allow mapping tab
+set wildcharm=<C-z>
+nmap <leader>b :b<space><C-z>
nnoremap <silent> <leader>= :LspFormat<Enter>
"" Tab completion
inoremap <expr> <TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
@@ -209,3 +212,10 @@ augroup VIMRC
autocmd BufLeave *{_test}\@<!.go normal! mA
augroup END
+
+" Macros
+"" Change ( -> [
+let @b = 'di(a[]P%2X'
+
+"" Change [ -> (
+let @k = 'di["_c%()P'