summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf>2021-01-26 22:03:13 -0500
committerluxagraf <sng@luxagraf>2021-01-26 22:03:13 -0500
commit5d08879f23f171c888a0dcb9c1080ceb522a7677 (patch)
treeaeb725561821f38016c61b984cdb717114981aa4
parent2bd98fd6c2b4b92f7459bd61b25c72f7cb8990fe (diff)
vim: tweaked vimrc and updated dict
-rw-r--r--.vim/dict.add3
-rw-r--r--.vim/dict.add.splbin1536 -> 1577 bytes
-rw-r--r--.vimrc28
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
index 9c1d86e..f8ffa62 100644
--- a/.vim/dict.add.spl
+++ b/.vim/dict.add.spl
Binary files 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 "<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