From 284ea2c1115f3546568a9eb1856280fe64801110 Mon Sep 17 00:00:00 2001 From: BardofSprites <89086143+BardofSprites@users.noreply.github.com> Date: Thu, 17 Jul 2025 10:26:50 -0400 Subject: simple shell env changes --- vim/.vimrc | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index bfea324..ecfd17e 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,4 +1,4 @@ -syntax on +syntax enable filetype plugin indent on set tabstop=4 set shiftwidth=4 @@ -9,4 +9,49 @@ set number set ignorecase set smartcase set incsearch -set modeline \ No newline at end of file +set modeline +set nohlsearch + +autocmd FileType org,outline setlocal nofoldenable +call plug#begin() +Plug 'junegunn/goyo.vim' +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 "+yi +vmap "+c +vmap c"+p +imap "+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 fn :FindNotesFile +nnoremap sn :SearchNotes +nnoremap ff :Files +nnoremap b :Marks -- cgit v1.2.3