1. Know What Vimscript is and Why to Use It
1. Harder to Grok Because .vimrc Compatible
2. Modify an Existing Plugin
3. Add Minor Modifications to Your .vimrc
2. Use echo/echom to Send Messages
3. Use :messages to Former Error Messages
4. Use set for Options
5. Use let for Variables
6. Use if/elseif/endif for Conditions
7. Use fu[nction]/endf[unction] for Functions
1. Use :echom YourFun() to Test and See Return Values
2. Must Start with Uppercase
8. Use command to Define Ex Commands
1. Example: com! Greet call Greet()
2. Must Start with Uppercase
9. Know Where to Learn More Vimscript
1. https://learnvimscriptthehardway.stev...
2. Mastering Vim, O’Reilly
More on https://github.com/rwxrob/boost
Thanks sponsors, subs, and followers:
GitHub: https://github.com/sponsors/rwxrob
Twitch: / rwxrob
Twitter: / rwxrob
Discord: / discord
Watch video Beginner Boost, Day 35: Vimscript (echo, messages, let, if, function, command) [20210629230330] online without registration, duration hours minute second in high quality. This video was added by user rwxrob 29 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,556 once and liked it 30 people.