A plugin made for (Neo)Vim to help users use the note-me app.
There are various ways to install Vim plugins, but the way I reccomend is using Vim Plug.
To install this add this to your rc file:
Plug 'Force4760/note-me-vim'
This plugin offers a few functions:
It copies the first hour section (Started with ### hour:minutes) bellow the current line
:NoteCopySection
It formats the note, deleting exceding blank lines
:NoteFormatNote
This command is intended to help users with checklists and To-Do's when this command is used:
-
If the line has no []:
- -[] will be added to the beggining of the line
-
If the line has [] (not checked):
- The checkbox will be switched to [x]
-
If the line has [x] (checked):
- The checkbox will be switched to []
:NoteToggleCB
default = ['x', 'X']
to change it add this to your rc file:
let g:notes_cb_checked = ['x', 'X']
The plugin does not set default keyboard shortcuts.
For you to use them you can add a version of this lines to you rc file:
nnoremap <C-f> :NoteFormatNote<CR>
nnoremap <C-h> :NoteCopySelection<CR>
nnoremap <C-t> :NoteToggleCB<CR>