When working with Vim, we are not restricted to one single file, nor are we limited with our usage of Vim-only commands. We can run commands outside of Vim to modify Vim-based documents, or even manage other types of data using Vim. In this hands-on lab, we’ll work with sorting our Vim data through the use of the Linux `sort` command, and Vim functions such as `%`, `:w`, and `:r`.
Successfully complete this lab by achieving the following learning objectives:
- Sort Data
Sort the data found in the
- Write Data to Files
Append the sorted users so that it will appear in the correct customer lists.
- Create Full Customer List
Create a new file,
userlist.txt, then pull in the needed data while still in Vim. Sort the list.