Summary

That was quite a bit of work! Let's do a quick recap!

We've learned that Vimscript lets us take Vim anywhere we want, limiting your productivity only by your imagination. We've covered setting and manipulating variables, working with lists and dictionaries, surfacing output, and control flows using if, for, and while statements. We've also covered functions, lambda expressions, the Vimscript equivalent of classes, as well as some more functional approaches using map and filter functions. We've also looked at Vim-specific commands and functions.

We've also built our first plugin, vim-commenter. The plugin lets you comment and uncomment lines in a Python file at the press of a button (well, two). We've learned how to structure our plugins, and how to use Vimscript to accomplish our goals. We've even brushed distributing the plugin!

Lastly, we covered a few possible directions you can take for learning Vimscript, including digging into :help eval or picking a book up off the (possibly virtual) shelf.

In the next chapter, we'll take a look at Neovim, a developer effort which tries to build and improve upon Vim.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.83.223