From 5d08879f23f171c888a0dcb9c1080ceb522a7677 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 26 Jan 2021 22:03:13 -0500 Subject: vim: tweaked vimrc and updated dict --- .vim/dict.add | 3 +++ .vim/dict.add.spl | Bin 1536 -> 1577 bytes .vimrc | 28 ++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) diff --git a/.vim/dict.add b/.vim/dict.add index f13f47e..3f43935 100644 --- a/.vim/dict.add +++ b/.vim/dict.add @@ -103,3 +103,6 @@ RVers lockdown homeschool McPhail +Caraval +lateen +unsubscribe diff --git a/.vim/dict.add.spl b/.vim/dict.add.spl index 9c1d86e..f8ffa62 100644 Binary files a/.vim/dict.add.spl and b/.vim/dict.add.spl differ diff --git a/.vimrc b/.vimrc index c4eaeb0..78e2a2d 100644 --- a/.vimrc +++ b/.vimrc @@ -27,6 +27,8 @@ Bundle 'junegunn/fzf' Bundle 'junegunn/fzf.vim' Bundle 'chengzeyi/fzf-preview.vim' Bundle 'alok/notational-fzf-vim' +Bundle 'dhruvasagar/vim-dotoo' +"Bundle 'tpope/vim-speeddating' call vundle#end() filetype plugin indent on "}}} @@ -51,6 +53,8 @@ set laststatus=1 set showcmd set showmode set backspace=indent,eol,start +set path+=** +set wildmenu let mapleader = "," "save things when we turn our back @@ -280,6 +284,8 @@ command! -nargs=1 Ngrep vimgrep "" $NOTES_DIR/*.txt|:cw noremap v :Nvs " }}} " Filetype stuff {{{ +" +autocmd! BufRead,BufNewFile *.org setlocal filetype=dotoo augroup ft_vim au! au FileType vim setlocal foldmethod=marker @@ -423,3 +429,25 @@ vmap r :'<,'>:w !espeak &> /dev/null xnoremap "+y y:call system("wl-copy", @") nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p +" Capital Quick first letter of a word or a regain +nmap t :set opfunc=dotvim#titlecaseg@ +xmap t :call dotvim#titlecase(visualmode(),visualmode() ==# 'V' ? 1 : 0) +nmap T :set opfunc=dotvim#titlecaseexe 'norm! 'v:count1.'g@_' + +let g:dotoo#agenda#warning_days = '30d' +let g:dotoo#agenda#files = ['~/documents/org/*.org'] +let g:dotoo#capture#refile = expand('~/documents/org/refile.org') + +" Write To File As Sudo +nnoremap sudo :w !sudo tee > /dev/null % + +" POSIX Commands +nmap cd :cd =expand('%:h') + +"quick buffer navigation +nnoremap j :bnext +nnoremap k :bprevious + +xnoremap "+y y:call system("wl-copy", @") +nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p +nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '', '', 'g')p -- cgit v1.2.3-70-g09d2