|
| 1 | +# Example Bonus 🍒 from LAC Unit 1 Bonus |
| 2 | + |
| 3 | +--- |
| 4 | + |
| 5 | +<div class="flex-container"> |
| 6 | + <img src="https://github.com/ProfessionalLinuxUsersGroup/img/blob/main/Assets/Logos/ProLUG_Round_Transparent_LOGO.png?raw=true" width="64" height="64"></img> |
| 7 | + <p> |
| 8 | + <h1>Unit 1 Bonus - VIM Fundamentals for Linux Sysadmins</h1> |
| 9 | + </p> |
| 10 | +</div> |
| 11 | + |
| 12 | +> **NOTE:** This is an **optional** bonus section. You **do not** need to read it, but if you're interested in digging deeper, this is for you. |
| 13 | +
|
| 14 | +## Module 1: Getting Started (Days 1-2) |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +### Day 1: First Contact with VIM |
| 19 | + |
| 20 | +**Segment 1: The Basics** |
| 21 | + |
| 22 | +1. Complete first section of `vimtutor` |
| 23 | +2. Learn essential commands: |
| 24 | + - `vim filename` - Open/create file |
| 25 | + - `i` - Enter insert mode |
| 26 | + - `Esc` - Return to normal mode |
| 27 | + - `:w` - Save changes |
| 28 | + - `:q` - Quit |
| 29 | + - `:wq` or `ZZ` - Save and quit |
| 30 | + - `:q!` - Quit without saving |
| 31 | + |
| 32 | +**Segment 2: Building Muscle Memory** |
| 33 | + |
| 34 | +1. Create five different files |
| 35 | +2. Practice mode switching 50 times |
| 36 | +3. Write and save content in each file |
| 37 | +4. Practice recovering from common mistakes: |
| 38 | + - Accidentally pressed keys in normal mode |
| 39 | + - Forgot to enter insert mode |
| 40 | + - Trying to quit without saving |
| 41 | + |
| 42 | +**Segment 3: First Real Task** |
| 43 | + |
| 44 | +1. Create a simple bash script template |
| 45 | +2. Add standard sections: |
| 46 | + - Shebang line |
| 47 | + - Comments |
| 48 | + - Basic variables |
| 49 | + - Simple functions |
| 50 | +3. Save and reopen multiple times |
| 51 | + |
| 52 | +### Day 2: Comfort Zone |
| 53 | + |
| 54 | +**Segment 1: More Basic Operations** |
| 55 | + |
| 56 | +1. Complete second section of `vimtutor` |
| 57 | +2. Practice quick save and exit combinations |
| 58 | +3. Learn to read VIM messages and errors |
| 59 | +4. Understand modes in depth: |
| 60 | + - Normal mode |
| 61 | + - Insert mode |
| 62 | + - Visual mode (introduction) |
| 63 | + |
| 64 | +**Segment 2: Error Recovery** |
| 65 | + |
| 66 | +1. Create deliberate errors and fix them: |
| 67 | + - Write without insert mode |
| 68 | + - Exit without saving needed changes |
| 69 | + - Get stuck in different modes |
| 70 | +2. Practice until you can recover without thinking |
| 71 | + |
| 72 | +**Segment 3: Real Config Practice** |
| 73 | + |
| 74 | +1. Copy `/etc/hosts` file |
| 75 | +2. Make various modifications: |
| 76 | + - Add new host entries |
| 77 | + - Modify existing entries |
| 78 | + - Add comments |
| 79 | + - Save different versions |
| 80 | + |
| 81 | +## Module 2: Navigation (Days 3-4) |
| 82 | + |
| 83 | +--- |
| 84 | + |
| 85 | +### Day 3: Basic Movement |
| 86 | + |
| 87 | +**Segment 1: Core Movement Commands** |
| 88 | + |
| 89 | +- Master the basics: |
| 90 | + - `h` - Left |
| 91 | + - `j` - Down |
| 92 | + - `k` - Up |
| 93 | + - `l` - Right |
| 94 | + - `w` - Next word |
| 95 | + - `b` - Previous word |
| 96 | + - `0` - Line start |
| 97 | + - `$` - Line end |
| 98 | + |
| 99 | +**Segment 2: Movement Drills** |
| 100 | + |
| 101 | +1. Create a "movement course" file |
| 102 | +2. Practice moving between marked points |
| 103 | +3. Time your navigation speed |
| 104 | +4. Compete against your previous times |
| 105 | + |
| 106 | +**Segment 3: Applied Navigation** |
| 107 | + |
| 108 | +1. Navigate through `/etc/ssh/sshd_config`: |
| 109 | + - Find specific settings |
| 110 | + - Move between sections |
| 111 | + - Locate comments |
| 112 | + - Jump to line numbers |
| 113 | + |
| 114 | +### Day 4: Advanced Movement |
| 115 | + |
| 116 | +**Segment 1: Extended Movement** |
| 117 | + |
| 118 | +- Learn efficient jumps: |
| 119 | + - `gg` - File start |
| 120 | + - `G` - File end |
| 121 | + - `{` - Previous paragraph |
| 122 | + - `}` - Next paragraph |
| 123 | + - `Ctrl+f` - Page down |
| 124 | + - `Ctrl+b` - Page up |
| 125 | + |
| 126 | +**Segment 2: Speed Training** |
| 127 | + |
| 128 | +1. Work with a large configuration file |
| 129 | +2. Practice jumping between sections |
| 130 | +3. Find specific lines quickly |
| 131 | +4. Navigate through code blocks |
| 132 | + |
| 133 | +**Segment 3: Real-world Navigation** |
| 134 | + |
| 135 | +1. Work with system logs |
| 136 | +2. Jump between error messages |
| 137 | +3. Navigate through long configuration files |
| 138 | +4. Practice quick file browsing |
| 139 | + |
| 140 | +## Module 3: Essential Editing (Days 5-7) |
| 141 | + |
| 142 | +--- |
| 143 | + |
| 144 | +### Day 5: Basic Editing |
| 145 | + |
| 146 | +**Segment 1: Edit Commands** |
| 147 | + |
| 148 | +- Master core editing: |
| 149 | + - `x` - Delete character |
| 150 | + - `dd` - Delete line |
| 151 | + - `yy` - Copy line |
| 152 | + - `p` - Paste after |
| 153 | + - `P` - Paste before |
| 154 | + - `u` - Undo |
| 155 | + - `Ctrl + r` - Redo |
| 156 | + |
| 157 | +**Segment 2: Editing Drills** |
| 158 | + |
| 159 | +1. Create practice documents |
| 160 | +2. Delete and replace text |
| 161 | +3. Copy and paste sections |
| 162 | +4. Practice undo/redo chains |
| 163 | + |
| 164 | +**Segment 3: System File Editing** |
| 165 | + |
| 166 | +1. Work with `/etc/fstab` copy: |
| 167 | + - Add mount points |
| 168 | + - Remove entries |
| 169 | + - Comment lines |
| 170 | + - Fix formatting |
| 171 | + |
| 172 | +### Day 6: Intermediate Editing |
| 173 | + |
| 174 | +**Segment 1: Combined Commands** |
| 175 | + |
| 176 | +- Learn efficient combinations: |
| 177 | + - `dw` - Delete word |
| 178 | + - `d$` - Delete to line end |
| 179 | + - `d0` - Delete to line start |
| 180 | + - `cc` - Change whole line |
| 181 | + - `cw` - Change word |
| 182 | + |
| 183 | +**Segment 2: Practical Application** |
| 184 | + |
| 185 | +1. Edit service configuration files |
| 186 | +2. Modify system settings |
| 187 | +3. Update network configurations |
| 188 | +4. Clean up log files |
| 189 | + |
| 190 | +**Segment 3: Speed Challenges** |
| 191 | + |
| 192 | +1. Timed editing tasks |
| 193 | +2. Configuration file cleanup |
| 194 | +3. Quick text transformation |
| 195 | +4. Error correction sprints |
| 196 | + |
| 197 | +### Day 7: Editing Mastery |
| 198 | + |
| 199 | +**Segment 1: Advanced Operations** |
| 200 | + |
| 201 | +- Master text objects: |
| 202 | + - `ciw` - Change inner word |
| 203 | + - `ci"` - Change inside quotes |
| 204 | + - `di(` - Delete inside parentheses |
| 205 | + - `yi{` - Yank inside braces |
| 206 | + |
| 207 | +**Segment 2: Integration Practice** |
| 208 | + |
| 209 | +1. Combine all learned commands |
| 210 | +2. Work with multiple files |
| 211 | +3. Practice common scenarios |
| 212 | +4. Time your operations |
| 213 | + |
| 214 | +## Daily Success Metrics |
| 215 | + |
| 216 | +--- |
| 217 | + |
| 218 | +By end of each day, you should be able to: |
| 219 | + |
| 220 | +- Day 1: Open, edit, save, and exit files confidently |
| 221 | +- Day 2: Understand and recover from common errors |
| 222 | +- Day 3: Navigate small files without arrow keys |
| 223 | +- Day 4: Move through large files efficiently |
| 224 | +- Day 5: Perform basic edits without hesitation |
| 225 | +- Day 6: Combine movement and editing commands |
| 226 | +- Day 7: Edit configuration files with confidence |
| 227 | + |
| 228 | +## Practice Tips |
| 229 | + |
| 230 | +--- |
| 231 | + |
| 232 | +1. Use `vimtutor` during breaks |
| 233 | +2. Disable arrow keys completely |
| 234 | +3. Keep a command log of new discoveries |
| 235 | +4. Time your editing operations |
| 236 | +5. Practice with real system files (copies) |
| 237 | + |
| 238 | +Remember: Focus on accuracy first, then build speed. |
| 239 | + |
| 240 | +## Downloads |
0 commit comments