summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc28
1 files changed, 28 insertions, 0 deletions
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