diff options
-rw-r--r-- | .vim/dict.add | 3 | ||||
-rw-r--r-- | .vim/dict.add.spl | bin | 1536 -> 1577 bytes | |||
-rw-r--r-- | .vimrc | 28 |
3 files changed, 31 insertions, 0 deletions
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 Binary files differindex 9c1d86e..f8ffa62 100644 --- a/.vim/dict.add.spl +++ b/.vim/dict.add.spl @@ -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 "<args>" $NOTES_DIR/*.txt|:cw noremap <leader>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 <silent> <leader>r <esc>:'<,'>:w !espeak &> /dev/null <CR> xnoremap "+y y:call system("wl-copy", @")<cr> nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p +" Capital Quick first letter of a word or a regain +nmap <leader>t :set opfunc=dotvim#titlecase<CR>g@ +xmap <leader>t :<C-U>call dotvim#titlecase(visualmode(),visualmode() ==# 'V' ? 1 : 0)<CR> +nmap <leader>T :set opfunc=dotvim#titlecase<Bar>exe 'norm! 'v:count1.'g@_'<CR> + +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 <leader>sudo :w !sudo tee > /dev/null % + +" POSIX Commands +nmap cd :cd <C-R>=expand('%:h')<CR> + +"quick buffer navigation +nnoremap <leader>j :bnext<CR> +nnoremap <leader>k :bprevious<CR> + +xnoremap "+y y:call system("wl-copy", @")<cr> +nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p +nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p |