diff options
author | Guangxiong Lin <[email protected]> | 2022-03-26 17:43:01 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-26 17:43:01 +0800 |
commit | 9892efdeb78273f72b2987f72673dd38eecec5d7 (patch) | |
tree | 427c25e65aa366727ebd7c864b33d9cfbaa18fc6 | |
parent | 46ad436e6efaca9b3ccb870c8e0a08f59f5dee6b (diff) | |
download | dotfiles-9892efdeb78273f72b2987f72673dd38eecec5d7.tar.gz dotfiles-9892efdeb78273f72b2987f72673dd38eecec5d7.tar.bz2 dotfiles-9892efdeb78273f72b2987f72673dd38eecec5d7.zip |
Clean unused vim config
-rw-r--r-- | .vim/notes.vim | 18 | ||||
-rw-r--r-- | .vimrc | 22 |
2 files changed, 0 insertions, 40 deletions
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', - \ }), <bang>0)) - -command! -bang -nargs=* FzfNoteRg - \ call fzf#vim#grep( - \ 'rg --column --line-number --no-heading --color=always --smart-case -e ' - \ . shellescape(<q-args>) . s:search_dir, 1, - \ fzf#vim#with_preview(), <bang>0) - -nnoremap <leader>ww :edit ~/journals/index.md<CR> -nnoremap <leader>wn :edit ~/journals/gtd.md<CR> -nnoremap <leader>wf :FzfNoteFiles<CR> -nnoremap <leader>wr :FzfNoteRg<space> @@ -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 <D-1> :tabn 1<CR> - noremap <D-2> :tabn 2<CR> - noremap <D-3> :tabn 3<CR> - noremap <D-4> :tabn 4<CR> - noremap <D-5> :tabn 5<CR> - noremap <D-6> :tabn 6<CR> - noremap <D-7> :tabn 7<CR> - noremap <D-8> :tabn 8<CR> - noremap <D-9> :tabn 9<CR> - noremap <D-0> :tablat<CR> - endif -endif - " Identation set autoindent @@ -104,7 +83,6 @@ let mapleader=',' " change the key <leader> nnoremap <leader>cd :cd %:p:h<CR> :pwd<CR> source ~/.vim/keybindings.vim -source ~/.vim/notes.vim highlight Pmenu ctermbg=grey set exrc |