aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc35
1 files changed, 3 insertions, 32 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index ecfd17e..6e59149 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -19,39 +19,10 @@ Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'ap/vim-css-color'
-Plug 'zah/nim.vim'
call plug#end()
-vmap <C-c> "+yi
-vmap <C-x> "+c
-vmap <C-v> c<ESC>"+p
-imap <C-v> <ESC>"+pa
-
-function! BardFindNotesFile()
- let l:cmd = "find ~/Notes/denote -type f -name '*.org' " .
- \ "! -path '*/.git/*' ! -path '*/.cache/*' | " .
- \ "grep -E './[0-9]{8}T[0-9]{6}--.*\\.org$'"
- call fzf#run(fzf#wrap({
- \ 'source': l:cmd,
- \ 'sink': 'e',
- \ 'options': '--prompt "Notes> " --preview "cat {}"'
- \ }))
-endfunction
-
-command! FindNotesFile call BardFindNotesFile()
-
-function! BardSearchNotes()
- call fzf#vim#grep(
- \ "rg --column --line-number --no-heading --color=always " .
- \ "--hidden --glob '!**/.git/*' --glob '!**/.cache/*' " .
- \ "' ' ~/Notes/denote", 1,
- \ fzf#vim#with_preview(), 0)
-endfunction
-
-command! SearchNotes call BardSearchNotes()
" KEYBINDS
let mapleader = " "
-nnoremap <Leader>fn :FindNotesFile<CR>
-nnoremap <Leader>sn :SearchNotes<CR>
-nnoremap <Leader>ff :Files<CR>
-nnoremap <Leader>b :Marks<CR>
+nnoremap <Leader>f :Files<CR>
+nnoremap <Leader>b :Buffers<CR>
+nnoremap <Leader>d :Ex<CR>