Skip to content

shaobosong/vim-line-comment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

vim-line-comment

Line comment for vim

Install

Plug 'shaobosong/vim-line-comment'

Global Variables

  • g:line_comment_map: Shortcut key mapping in normal and visual mode. (Default: '<C-_>')
  • g:line_comment_extra_sign: Extra sign will be filled multiply between comment signs and effective expression. (Default: ' ')
  • g:line_comment_tabstop: Find a good position placed comment signs. (Default: &tabstop)
  • g:line_comment_extra_table: Extra table including different filetypes and comment signs.

Usage

let g:line_comment_map = '<C-_>'
let g:line_comment_extra_sign = ' '
let g:line_comment_tabstop = &tabstop
let g:line_comment_extra_table = [
    \ ['vb',  ''''''],
    \ ['awk', '#'],
    \ ['sed', '#'],
\ ]
augroup MyAugroup
    autocmd BufNewFile,BufRead,BufEnter *.c.inc setlocal filetype=c
augroup END

Todo

  • Support xml language
  • Support block comments

About

Line comment for vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published