commit e88752b1ceeceb13b7952872577cda0eaa60fe96
parent 8e4f8decc7af7aaeef7d752426d0c047c8ac6aa3
Author: Anders Damsgaard <andersd@riseup.net>
Date: Thu, 31 Aug 2017 11:55:49 -0400
add plugin and keybinds for hiding completed items in todo
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/.vim/keybinds.vim b/.vim/keybinds.vim
@@ -85,6 +85,10 @@ nmap <leader>l <C-w>l
" toggle x mark in checklist fields
nmap <leader>X :s/\[[x ]\]/\=submatch(0) == '[x]' ? '[ ]': '[x]'/<CR>:noh<CR>
+" toggle view of completed items in todo (using vim-foldsearch)
+nmap <leader>u :Fp ^- \[ \]<CR>
+nmap <leader>U :Fe<CR>
+
" neovim-specific mappings
if has('nvim')
" escape from terminal mode
diff --git a/.vim/plugins.vim b/.vim/plugins.vim
@@ -16,7 +16,7 @@ Plug 'kien/rainbow_parentheses.vim' " colorcode paranthesis pairs
Plug 'mhinz/vim-startify' " startup screen
Plug 'guns/xterm-color-table.vim' " show color table with :XtermColorTable
Plug 'Yggdroot/indentLine' " show indent levels with thin vertical lines
-
+Plug 'embear/vim-foldsearch' " hide/show lines matching a patter
"""""" File system """""""
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }