Skip to content

nekowasabi/vim-annotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This plugin sets text annotation in selected word.

What vim-annotation is

Annotation taking in word, directly.

Show memo in status line without other memo tools.

Installation

for vim-plug

Plug 'nekowasabi/vim-annotation'

for dein

call dein#add('nekowasabi/vim-annotation')

Quick start

Annotation taking

  1. Select words by visual mode

  2. Execute :AnnotationOpen

  3. Write annotation

Show annotation

  1. Move to setting annotation line.

  2. Show annotation in status line.

Settings

set directory for save annotation data.

Set default cache path.

ex.

let g:annotation_cache_path = '/home/user_name/.cache/annotation_json/'

key bindings

ex.

nnoremap <silent> <Leader>ao :AnnotationOpen<CR>
nnoremap <silent> <Leader>ad :AnnotationDelete<CR>

syntax

Use AnnotationString

autocmd ColorScheme * highlight AnnotationString ctermfg=red ctermbg=white
hi default link AnnotationString String

Screenshot

Annotation taking

open

Show annotation

show

Delete annotation

delete

TODO

  • Toggle annotation syntax.

  • Show all annotations.

  • Denite.nvim integration.

  • Show annotation by floatwindow(neovim only).

Inspired by

Utl.vim(https://github.com/vim-scripts/utl.vim)

License

MIT License.

Maintainer

takets(nolifeking00 at gmail.com)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published