Quiz Entry - updated: 2026.07.14
How do you use autocomplete and the file explorer in VIM?
In Insert mode Ctrl+n autocompletes the word you're typing; :Vexplore opens a file-browser sidebar.
Ctrl+n ("next") scans the current buffer (and open files) for words that start with what you've typed and offers them — handy for repeating long variable or function names without retyping. :Vexplore opens netrw, vim's built-in file browser, in a vertical split so you can navigate directories and open files with Enter.
Autocomplete and file explorer:
| Command | Action |
|---|---|
Ctrl+n |
Autocomplete (in Insert mode) |
:Vexplore |
Open file browser sidebar |
Autocomplete example:
In Insert mode, type partial text and press Ctrl+n to see suggestions:
echo function1
function1
for
echo
recu function2
recursive
sh
-- Keyword completion (^N^P) match 3 of 6
File explorer (:Vexplore):
Opens a vertical split showing the directory tree:
unbound/
vmware-tools/
vulkan/
...
yum.repos.d/
Navigate and press Enter to open files.