Applications

Vim script: Functions

Functions in Vim script starts with the function keyword and ends with the endfunction keyword. :function PrintMessage() :echo “Hello World” :endfunction To run this function use the call command: :call PrintMessage() Function names User-defined functions in Vim script must start with a capital letter unless they are explicitly scoped. This is to prevent name conflicts …

Vim script: Functions Read More »

Vim Abbreviations

Vim abbreviations can be used to automatically expand words or phrases which you commonly use. It can also be used to correct common spelling mistakes. Use the abbreviate command to define abbreviations, the command can be shortened as ab. Abbreviations work in the insert and command-line modes.  Define the following abbreviations. :ab teh the :ab …

Vim Abbreviations Read More »