Create a Vim Plugin from scratch!

Create a Vim Plugin from scratch!

Alfredo Deza

2 года назад

1,469 Просмотров

Create a Vim plugin from scratch and get to understand the whole workflow needed to put together a plugin that will work with any file type as well as some specific types like Python or XML.

In this video, I'll explain everything you need to know to create a function in Vim, and port anything you may have in your .vimrc over to a specific plugin so that you can distribute it and install it later.

Topics include:
* Find about public and private functions in Vim
* Port existing utilities in a .vimrc to make them a plugin
* Map a command to a Vim function

Use the Github repository as a guideline: https://github.com/alfredodeza/create-a-vim-plugin

00:00 Introduction
00:49 Example repo with sample directories
02:00 Work with vimrc
03:40 Use a function to format XML
05:40 Create a directory structure for the plugin
07:00 Create a vim file for the function
09:50 Make a function private
12:20 Install the plugin
13:13 Debug the plugin
18:00 Make a plugin a filetype plugin
Ссылки и html тэги не поддерживаются


Комментарии: