Master the world's most powerful text editor with our step-by-step guide
The default mode in Vim. Here you navigate and manipulate text without inserting it.
// Navigation example
function calculateTotal(items) {
let total = 0;
for (let i = 0; i < items.length; i++) {
const item = items[i];
total += item.price * item.quantity;
}
return total;
}
// Current cursor position is here
In Insert mode, you can type text directly into your file. There are multiple ways to enter Insert mode.
Visual mode allows you to select text before performing operations on it.
Use normal mode movement keys:
Command mode allows you to execute powerful Ex commands, search, and replace operations.
const config = {
apiUrl: 'http://dev-api.example.com/v1',
timeout: 5000,
retryCount: 3,
logLevel: 'debug',
environment: 'development',
features: {
darkMode: true,
analytics: false,
experimental: true
}
};
// Replace all instances of 'development' with 'production'
// Command: :%s/development/production/g
:help within Vim for built-in documentation
vimtutor in your terminal for a guided tutorial
.vimrc and add configurations as needed
Ready to take your terminal environment to the next level?
Continue to Tmux Guide →