summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'