diff options
author | Marc Coquand <marc@mccd.space> | 2024-07-18 15:44:18 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-07-18 15:44:18 -0500 |
commit | c1d0847d936f04eb77b67c64c2a55ae789dc9933 (patch) | |
tree | b697a025cd226a190f993d391ae3a08227d78fde /vimrc | |
parent | 7f64b5f4c4280e9d78c07c052f1af6563adfcd54 (diff) | |
download | bsd-c1d0847d936f04eb77b67c64c2a55ae789dc9933.tar.gz bsd-c1d0847d936f04eb77b67c64c2a55ae789dc9933.tar.bz2 bsd-c1d0847d936f04eb77b67c64c2a55ae789dc9933.zip |
vimrc: keybindings
Diffstat (limited to '')
-rw-r--r-- | vimrc | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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' |