Generate JSDoc block comments in vim.
Vundle is the recommended installation method
Add to your plugin list:
Plugin 'joegesualdo/jsdoc.vim'
Once added you your plugin list, you must install the plugin.
Launch vim and run:
:BundleInstall
Or install from command line:
$ vim +PluginInstall +qall
You can execute the JSDocAdd() function directly within a buffer. But it's recommended you add a mapping.
Call the function while cursor is on first line of a function definition:
:call JSDocAdd()
Define the mapping in your .vimrc
.
nnoremap jsd :<C-u>call JSDocAdd()<CR>
Now while cursor is on first line of a function definition, you can call the mapping.