Beginner Boost, Day 35: Vimscript (echo, messages, let, if, function, command) [20210629230330]

Опубликовано: 29 Октябрь 2024
на канале: rwxrob
1,556
30

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