From 9892efdeb78273f72b2987f72673dd38eecec5d7 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 26 Mar 2022 17:43:01 +0800 Subject: Clean unused vim config --- .vim/notes.vim | 18 ------------------ .vimrc | 22 ---------------------- 2 files changed, 40 deletions(-) delete mode 100644 .vim/notes.vim diff --git a/.vim/notes.vim b/.vim/notes.vim deleted file mode 100644 index c56896e..0000000 --- a/.vim/notes.vim +++ /dev/null @@ -1,18 +0,0 @@ -let s:search_dir = ' ~/diaries ~/journals ~/notes ' - -command! -bang FzfNoteFiles - \ call fzf#run(fzf#wrap(fzf#vim#with_preview({ - \ 'source': 'fd --type f . ' . s:search_dir, - \ 'sink': 'edit', - \ }), 0)) - -command! -bang -nargs=* FzfNoteRg - \ call fzf#vim#grep( - \ 'rg --column --line-number --no-heading --color=always --smart-case -e ' - \ . shellescape() . s:search_dir, 1, - \ fzf#vim#with_preview(), 0) - -nnoremap ww :edit ~/journals/index.md -nnoremap wn :edit ~/journals/gtd.md -nnoremap wf :FzfNoteFiles -nnoremap wr :FzfNoteRg diff --git a/.vimrc b/.vimrc index e3dbe5d..9ee1b41 100644 --- a/.vimrc +++ b/.vimrc @@ -38,27 +38,6 @@ endif " Correct background rendering in some terminal let &t_ut='' -" MacVim - -if has("gui_running") - if has("gui_macvim") - set guifont=Monaco:h15 - set transparency=5 - set noimdisable - - noremap :tabn 1 - noremap :tabn 2 - noremap :tabn 3 - noremap :tabn 4 - noremap :tabn 5 - noremap :tabn 6 - noremap :tabn 7 - noremap :tabn 8 - noremap :tabn 9 - noremap :tablat - endif -endif - " Identation set autoindent @@ -104,7 +83,6 @@ let mapleader=',' " change the key nnoremap cd :cd %:p:h :pwd source ~/.vim/keybindings.vim -source ~/.vim/notes.vim highlight Pmenu ctermbg=grey set exrc -- cgit v1.2.3