Skip to content

Commit

Permalink
Merge pull request #32 from talw/master
Browse files Browse the repository at this point in the history
Added a new <Plug> simple-todo-new-list-item-start-of-line
  • Loading branch information
vitalk authored Feb 24, 2017
2 parents a262453 + 3f9b200 commit 54a0eb9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/simple-todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ or disabled separately for each mode
<Plug>(simple-todo-new-list-item)
Create a new item with list symbol prefix

*<Plug>(simple-todo-new-list-item-start-of-line)*
<Plug>(simple-todo-new-list-item-start-of-line)
Create a new item with list symbol prefix at the
start of this line

==============================================================================
3. Customization *simple-todo-customization*

Expand Down
4 changes: 4 additions & 0 deletions plugin/simple-todo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ inore <silent> <Plug>(simple-todo-new-start-of-line) <Esc>mzI<c-r>=<SID>get_list
nnore <silent> <Plug>(simple-todo-new-start-of-line) mzI<c-r>=<SID>get_list_marker(line('.')-1)<cr>[ ]<space><Esc>`z4l
vnore <silent> <Plug>(simple-todo-new-start-of-line) I<c-r>=<SID>get_list_marker(line('.')-1)<cr>[ ]<space>

" Create a new item with some list prefix symbol at the start of this line
nnore <silent> <Plug>(simple-todo-new-list-item-start-of-line) mzI<c-r>=g:simple_todo_list_symbol<cr><space>[ ]<space><Esc>`z6l
inore <silent> <Plug>(simple-todo-new-list-item-start-of-line) <Esc>mzI<c-r>=g:simple_todo_list_symbol<cr><space>[ ]<space><Esc>`z6la

" Create a new item below
nnore <silent> <Plug>(simple-todo-below) o<c-r>=<SID>get_list_marker(line('.')-1)<cr>[ ]<space>
inore <silent> <Plug>(simple-todo-below) <Esc>o<c-r>=<SID>get_list_marker(line('.')-1)<cr>[ ]<space>
Expand Down

0 comments on commit 54a0eb9

Please sign in to comment.