Skip to content

deris/vim-popupiece

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

popupiece

This is Vim plugin for popup text around tag, local declaration, etc.

This plugin is experimental

Require

Vim 8.1.1407 or later is required(popup feature is required)

Screenshot

screenshot

Usage

No default key mapping.

You can map key like following.

nmap <C-k>  <Plug>(popupiece-tag)
nmap <C-l>  <Plug>(popupiece-local-decl)

If you want to spread popup area, you can set global settings.

" If you spread area before target line, you can set additional line before.
let g:popupiece_before_additional_line = 0

" If you spread area after target line, you can set additional line after.
let g:popupiece_after_additional_line  = 4

" no blank line include if set 1.
let g:popupiece_no_blank_line          = 1

You can define custom popup like following

" example: write your .vimrc and define command for popup header of file
command! -nargs=0 MyPopupiece  call popupiece#popup_custom(function('s:mypopup_pre_hof'), function('s:mypopup_post_hof'))

function! s:mypopup_pre_hof()
  execute "normal! gg"
endfunction

function! s:mypopup_post_hof()
  execute "normal! \<C-o>"
endfunction

License

MIT License

About

popup text around tag, local decraration, etc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published