aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules2
-rw-r--r--vim.dot.link/filetype.vim4
m---------vim.dot.link/pack/vitalk/start/vim-simple-todo (renamed from vim.dot.link/pack/vitalk/opt/vim-simple-todo)0
-rw-r--r--vim.dot.link/plugin/key_mappings.vim19
-rw-r--r--vimrc.dot.link4
5 files changed, 23 insertions, 6 deletions
diff --git a/.gitmodules b/.gitmodules
index dd06fac..17f1e6f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -69,7 +69,7 @@
path = vim.dot.link/pack/masukomi/start/vim-markdown-folding
url = https://github.com/masukomi/vim-markdown-folding
[submodule "vim.dot.link/pack/vitalk/start/vim-simple-todo"]
- path = vim.dot.link/pack/vitalk/opt/vim-simple-todo
+ path = vim.dot.link/pack/vitalk/start/vim-simple-todo
url = https://github.com/vitalk/vim-simple-todo
[submodule "vim.dot.link/pack/preservim/start/vim-markdown"]
path = vim.dot.link/pack/preservim/start/vim-markdown
diff --git a/vim.dot.link/filetype.vim b/vim.dot.link/filetype.vim
index ce19636..522d674 100644
--- a/vim.dot.link/filetype.vim
+++ b/vim.dot.link/filetype.vim
@@ -28,10 +28,6 @@ augroup markdown
let g:vim_markdown_folding_level = 1
let g:vim_markdown_auto_insert_bullets = 0
let g:vim_markdown_new_list_item_indent = 0
-
- " Simple TODO lists
- " https://github.com/vitalk/vim-simple-todo/
- "let g:simple_todo_list_symbol = '*'
augroup END
" Python
diff --git a/vim.dot.link/pack/vitalk/opt/vim-simple-todo b/vim.dot.link/pack/vitalk/start/vim-simple-todo
-Subproject e2eead5640244cbf4e376ad91f649e2a4f536da
+Subproject e2eead5640244cbf4e376ad91f649e2a4f536da
diff --git a/vim.dot.link/plugin/key_mappings.vim b/vim.dot.link/plugin/key_mappings.vim
index 0c1fe95..61f54b4 100644
--- a/vim.dot.link/plugin/key_mappings.vim
+++ b/vim.dot.link/plugin/key_mappings.vim
@@ -191,3 +191,22 @@ vnoremap <C-x> "+c
" For email: unfold and delete to your signature
" See https://hroy.eu/tips/vim/email-delete-til-signature/
noremap ,dd zi:.;/^-- $/d<CR>O-- <UP><End><CR><CR><UP><CR><C-O>zi
+
+" Simple TODO lists
+" https://github.com/vitalk/vim-simple-todo/
+let g:simple_todo_map_keys = 0
+let g:simple_todo_list_symbol = '*'
+nmap <Leader>i <Plug>(simple-todo-new-list-item)
+nmap <Leader>I <Plug>(simple-todo-new-list-item-start-of-line)
+nmap <Leader>x <Plug>(simple-todo-mark-as-done)
+nmap <Leader>X <Plug>(simple-todo-mark-as-undone)
+nmap <Leader>s <Plug>(simple-todo-mark-switch)
+imap <Leader>i <Plug>(simple-todo-new-list-item)
+imap <Leader>I <Plug>(simple-todo-new-list-item-start-of-line)
+imap <Leader>X <Plug>(simple-todo-mark-as-undone)
+imap <Leader>x <Plug>(simple-todo-mark-as-done)
+imap <Leader>s <Plug>(simple-todo-mark-switch)
+vmap <Leader>I <Plug>(simple-todo-new-list-item-start-of-line)
+vmap <Leader>X <Plug>(simple-todo-mark-as-undone)
+vmap <Leader>x <Plug>(simple-todo-mark-as-done)
+vmap <Leader>s <Plug>(simple-todo-mark-switch)
diff --git a/vimrc.dot.link b/vimrc.dot.link
index ffa4246..e86464e 100644
--- a/vimrc.dot.link
+++ b/vimrc.dot.link
@@ -19,7 +19,9 @@ set laststatus=2
set shortmess+=I
set ignorecase
set smartcase
-let mapleader="-"
+set timeoutlen=1000
+"let mapleader="-"
+let mapleader=" "
" Syntax highlighting
syntax on