From 015f0ac438b64f08ae29a739fb56025059ff4ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 9 Apr 2020 16:59:00 +0200 Subject: [PATCH] feat(vim): add FZF shortcuts --- dot/init.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dot/init.vim b/dot/init.vim index 58b1eeb..2a7a802 100644 --- a/dot/init.vim +++ b/dot/init.vim @@ -4,9 +4,16 @@ vnoremap a; :Tabularize /:: vnoremap a- :Tabularize /-> nnoremap :FZF +nnoremap :Rg let g:fzf_layout = { 'down': '~15%' } +" ref https://github.com/andreasvc/vim-256noir colorscheme 256_noir +set cursorline +highlight CursorLine cterm=NONE ctermfg=NONE ctermbg=233 guifg=NONE guibg=#121212 +autocmd InsertEnter * highlight CursorLine cterm=NONE ctermfg=NONE ctermbg=234 guifg=NONE guibg=#1c1c1c +autocmd InsertLeave * highlight CursorLine cterm=NONE ctermfg=NONE ctermbg=233 guifg=NONE guibg=#121212 + set background=dark let mapleader = "," @@ -19,6 +26,9 @@ noremap gc :Gcommit noremap n :bn noremap p :bp noremap c :bd +noremap b :Buffers +noremap g :Rg +noremap t :Tags " reindent whole file noremap i mzgg=G`z