All Projects → kusabashira → vim-nicomment

kusabashira / vim-nicomment

Licence: MIT license
[Unmaintained] Flow comments on your Vim

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-nicomment

LeaderF-snippet
Intuitive Way to Use Snippet
Stars: ✭ 38 (+137.5%)
Mutual labels:  vim-plugin
vim-iawriter
iAwriter's Focus mode for vim
Stars: ✭ 23 (+43.75%)
Mutual labels:  vim-plugin
nvim-toggle-terminal
NeoVim plugin that toggles a terminal buffer in the current window maintaining the same shell instance
Stars: ✭ 54 (+237.5%)
Mutual labels:  vim-plugin
vim-smt2
A VIM plugin that adds support for the SMT-LIB2 format (including Z3's extensions)
Stars: ✭ 35 (+118.75%)
Mutual labels:  vim-plugin
vim-jukit
Jupyter-Notebook inspired Neovim/Vim Plugin
Stars: ✭ 55 (+243.75%)
Mutual labels:  vim-plugin
easybuffer.vim
easybuffer.vim - vim plugin to quickly switch between buffers
Stars: ✭ 50 (+212.5%)
Mutual labels:  vim-plugin
vim-colors-pencil
Light (& dark) color scheme inspired by iA Writer
Stars: ✭ 564 (+3425%)
Mutual labels:  vim-plugin
gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 149 (+831.25%)
Mutual labels:  vim-plugin
cake.vim
Utility for CakePHP developers.
Stars: ✭ 35 (+118.75%)
Mutual labels:  vim-plugin
vimwasm-try-plugin
Try Vim plugin on your browser without installing it using vim.wasm!
Stars: ✭ 21 (+31.25%)
Mutual labels:  vim-plugin
completor-swift
Swift code completion for completor.vim
Stars: ✭ 15 (-6.25%)
Mutual labels:  vim-plugin
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (+931.25%)
Mutual labels:  vim-plugin
gtd.vim
Getting things done with Vim
Stars: ✭ 42 (+162.5%)
Mutual labels:  vim-plugin
markdown-preview-sync
A quasi real-time vim markdown preview plugin | 第一款基于Java的Vim Markdown预览插件
Stars: ✭ 56 (+250%)
Mutual labels:  vim-plugin
move-less
vim plugin for faster navigation without moving the cursor position (look up/down/middle; scroll up/down/both, fold two distance places permanent together)
Stars: ✭ 36 (+125%)
Mutual labels:  vim-plugin
nan vimrc
A Vim configuration for SSH client to edit on a remote Linux host.
Stars: ✭ 15 (-6.25%)
Mutual labels:  vim-plugin
minimal gdb
🐛 Lightweight vim -> gdb broker which uses .gdbinit gdb config file to export breakpoints
Stars: ✭ 16 (+0%)
Mutual labels:  vim-plugin
vim-backscratch
Small scratches for Vim, feels nice
Stars: ✭ 20 (+25%)
Mutual labels:  vim-plugin
gentoo-syntax
[MIRROR] Gentoo Ebuild, Eclass, GLEP, ChangeLog and Portage Files syntax highlighting, filetype and indent settings for Vim
Stars: ✭ 22 (+37.5%)
Mutual labels:  vim-plugin
vim-syntaxMarkerFold
Markers while using syntax fold method
Stars: ✭ 16 (+0%)
Mutual labels:  vim-plugin

vim-nicomment

Flow comments on your Vim. It's inspired by ニコニコ動画.

Requirements

  • Vim8.1.1561 or later

Usage

It start flowing comments when :NicommentStart executed. It stops flowing comments when :NicommentStop executed.

Commands

:NicommentStart

It starts flowing comments.

:NicommentStop

It stops flowing comments.

:NicommentFlow <comment>

It flows the comment. (NOTE: it requires :NicommentStart executed)

Configuration

g:nicomment_max_lineno

Number of lines used by vim-nicomment. Default is 10.

g:nicomment_comment_block_timer_start_time

The argument of timer_start() used when comment flower flows comment. Default is 100.

g:nicomment_comment_generator

The comment generator used by comment flower. If it doesn't exists, comment flower use builtin comment generator.

g:nicomment_comment_generator is an dictionary which have funcref as generate. g:nicomment_comment_generator.generate is called without no arguments every 0.1 seconds. If g:nicomment_comment_generator.generate returns string, comment flower flows the string as a comment. If g:nicomment_comment_generator.generate returns v:null, comment flower does nothing.

Example

" It generates claps
let g:nicomment_comment_generator = {}
function! g:nicomment_comment_generator.generate()
  if !has_key(self, 'rand')
    " It requires vital.vim
    let V = vital#of('vital')
    let Xor128 = V.import('Random.Xor128')
    let self.rand = Xor128.new_generator()
  endif

  if abs(self.rand.next() % 10) == 0
    return repeat('8', abs(self.rand.next() % 20) + 4)
  else
    return v:null
  endif
endfunction

License

MIT License

Author

nil2 [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].