First of all, let’s make things clear. VIM does not stand for Very Intuitive Magic. It’s not easy to learn and it’s like going to the gym. You have to be consistent and use it daily to see the results and keep in shape once you are fit.

But why is it so confusing for most of the people? It is a modal editor, and every mode has its own key bindings. By default VIM opens in «normal mode», which won’t allow you to type. You have to get into «insert mode» pressing the «i» key to be able to insert text, but you could also place the cursor on a character and press «r» to replace it with whatever you typed next, or you could press «o» to create a new line and enter «insert mode» at the same time, etc. You have to remember what every key does in every mode, and you’ll only achieve this with practice. That’s what makes VIM different.

Why bother?

So why would anyone try to break the learning wall and master VIM? Some will say it’s just to prettend you are cool, but they couldn’t be more wrong. There are some features that make the VIM user objectively faster than any other editor user.

No mouse

The first one is the fact that you don’t have to use the mouse for anything. Think about how many times you use the mouse to move around a document in any other editor and sum all those precious miliseconds. It’s a lot at the end of the year.

Changing an “IF” condition and adding an “IF” in 10 seconds

Hands always in standard position

It’s not only that you don’t use the mouse, but you actually don’t have to move your hands out of the standard position, meaning that you don’t need to use arrow keys, or other keys outside the normal reach.

Preinstalled

It comes preinstalled in almost every decent operative system, so you don’t have to go through the hassle of downloading it every time you change your computer or want to edit something somewhere else.

Runs in Console/Terminal

It runs GUIless, in a Terminal or Console, so if you are working on a development project running servers, scripts and commands, you don’t have to switch context. You can feel at home even when editing files in remote servers. This means you can even access and use VIM from a smartphone with an SSH app.

Editing the itnig website in a Mac, with and iPad, through SSH

Lightweight and fast

It’s lightweight and fast, super responsive and never crashes. It takes 60ms for it to open a file containing the 131843 lines of the Holly Bible.

100% Customizable

If there is something you don’t like just change it. The .vimrc config file lets you customize the behaviour of your editor and confortably replicate your settings between setups. If there is something missing, just install it as a plugin.

Macros and scripts

You can actually record your commands to automatise repetitive tasks. Imagine you have a data file you want to make JSON compliant. By recording what you want just once, you can replicate it as many times as you need.

Making a data set JSON compliant by recording and playing a macro

And if that’s not enough for you, you can write scripts using VIM Script and customize your VIM even more.

How fast can you type all IP’s in a local network in your editor?

With just a few lines you can for example create your custom syntax highlighting toggle, and use a shortcut to activate it.

VIM syntax toggling script https://www.ibm.com/developerworks/library/l-vim-script-1/

Breaking the wall

The best way for learning VIM is using it for everything. From writing documetation to typing code in every project you have. Start with the basic commands: i, :wq, dd, p, hjkl.

You can try this awesome Zelda-like game to learn how to use VIM.

Keep using it, because you’ll never feel you know it enough.

I hope this gave you the essentials to start exploring the eternal possibilities of VIM. Feel free to comment below if you have experience using it yourself, the more tips the better. When you master VIM, I can guarantee that you’ll never use any other editor again. Enjoy!

 

Previous ArticleNext Article

Leave a Reply

Your email address will not be published. Required fields are marked *

E.

Essential Podcasts for Entrepreneurs & Tech Lovers

Podcasts are a great way to discover new subjects and new people. Whether you are a tech lover or an entrepreneur, bellow you will discover podcasts for entrepreneurs you should – without a doubt – listen to. 

Itnig Podcast with César Migueláñez, Bernat Farrero and Carlos Pierre
Itnig Podcast with César Migueláñez, Bernat Farrero and Carlos Pierre

« Masters of Scale » 

with Reid Hoffman

The host: Reid Hoffman decides to turn to the corporate world instead of pursuing a university carrier. He worked for Apple, Fujitsu for then starting his own business: SocialNet and left it in 2000 to join Confinity. Confinity gives life to Paypal after fusionning. Finally, in 2003, Hoffman co-founds LinkedIn. He is Master of Scale’s host. 

About: The podcast welcomes some of the greatest entrepreneurs. You will discover throughout the talk how they managed to take their companies from 0 to a lot of zeros. You can listen to Masters of Scale’s special guests like Mark Zuckerberg (Facebook), Selina Tobaccowalla (Evite), Brian Chesky (Airbnb) or Nancy Lublin (Crisis Text Line). Must-hear: one of the top tech podcasts for entrepreneurs.

Listen to the podcast: On their website, Apple Podcasts, Spotify and Youtube

The Team: Reid Hoffman, June Cohen, Deron Triff and Jai Punjabi

« Rocket » 

with Christina Warren, Simone de Rochefort and Brianna Wu

The hosts: Christina Warren started as a Freelance Writer. Then, she worked at Mashable as a Senior Tech Analyst and Tech Correspondent and ended the journey at Microsoft as a Senior Cloud Developer Advocate. About Simone de Rochefort, she is  Senior Video Producer and co-host of The Polygon Show. Brianna Wu founded her first startup at the age of 19, Giant Spacekat. She was Head of Development at the time. She is now running for US Congress. 

About: In this podcast, you will discover three passionate women and their “geek conversation” as they like to call it.  No guest speakers, but you will be able to listen to a panel of tech subjects from Apple to Comics, you will not be disappointed. 

Listen to the podcast: On their website, Apple Podcasts, Overcast, Pocket Casts, Spotify and Castro

« This week in Startups »

with Jason Calacanis

The host: Jason Calacanis starts as an internet industry journalist in New-York. In 2003, he co-founded Weblogs, Inc and then a few years later he joined Sequoia Capital, launched the web directory Mahalo. He also founded ThisWeekIn.com. Furthermore, he created This Week in Startups podcast and a startup named Inside.com. Finally, he was part of the creation of the Sydney Launch Festival. 

About: Either you are looking to start your own company, or you are a successful entrepreneur, or you just love technology, this podcast will give you a peek to the entrepreneurship world. You will hear stories of all kinds! On his website, you will also find his events and some research on transportation, healthcare and more. This is one is part of the tech podcasts for entrepreneurs not to be missed.

Listen to the podcast: Apple Podcasts, Youtube, SoundCloud and RSS Feed

You can also subscribe to their newsletter in order to receive episodes directly. 

The Team: Jason Calacanis, Jacqui Deegan, and Tony Agapiou

« Recode / Decode » 

with Kara Swisher

The host: Kara Swisher is an American journalist specialized in the technology industry. She first started to work for an alternative newspaper in Washington for then working for the Washington Post. She wrote articles for the Wall Street Journal and New York Times and wrote her own books. Finally, in 2014, she created Recode, a website dedicated to the latest technology news. In 2015, she initiates Recode Decode. 

About: The weekly podcast welcomes tech experts and great entrepreneurs. They review how they got there, what’s on their mind about the current industry and what they would improve or create. Her recent guests were Elon Musk (Tesla CEO), former Secretary of State Hillary Clinton and Mark Zuckerberg. 

Listen to the podcast: Apple Podcasts, Google Podcasts, Spotify, Stitcher, and TuneIn

« K Fund PodKast »

with Jaime Novoa

The host: Jaime Novoa’s background is quite diverse. He is a writer and an investor, but he also worked in data analysis and social media analysis. In 2014, he founded Novobrief, a newsletter for startups. Then, in 2016, he becomes an investor at K Fund and he founds, in 2019, Dealflow, a weekly tech newsletter. 

About: The podcast discusses startups, entrepreneurs and Venture Capital. You will discover enterprises and their story. From data science, unicorns or digital platforms, you sure will find more than one interesting podcast. 

Listen to the podcast: On their website and Soundcloud

« Clockwise »

with Dan Moren and Mikah Sargent

The hosts: Dan Moren is an active author and writer as well as podcaster. He was a Senior Editor at Macworld. Today, he hosts two podcast shows: Clockwise and The Rebound. As for Mikah Sargent, he started as a Website Designer and Developer for then switching as a Senior Editor at Newsy. He now hosts few podcasts such as Clockwise on Replay FM or on TWiT.tv. 

About: The weekly podcast discusses technology and welcomes each time 2 special guests. For 30 minutes, they address 4 topics where all four speakers get to elaborate on the matter, highlight the issues and expose their thoughts. 

Listen to the podcast: On their website, Apple Podcasts, Overcast, Pocket Casts, Spotify and Castro

« Itnig Podcast»

with Bernat Farrero

The host: Bernat Farrero starts his career as a Developer. In 2009, he founded Itnig, a startup ecosystem that organizes entrepreneurship events. They also have a coworking for startups, a podcast and a fund for early-stage projects. Furthermore, he is a Founder of Factorial, Quipu and Camaloon. He is also a Board Member of Playfullbet, GymForLess and Parkimeter. Finally, he hosts Itnig’s weekly Podcast. 

About: The podcast welcomes every week a new guest. If you wish to learn from successful entrepreneurs, you are on the right platform. The discussions turn around Technology and its industry. You will come across guests like Carlos Pierre (Badi), Vincent Rosso (BlaBlaCar) or Oscar Pierre (Glovo).

Listen to the podcast: Youtube, Spotify, Apple Podcasts, Ivoox, and Google Podcasts

You can subscribe to their newsletter if you want to receive the podcast’s link every Monday. 

Whether you are at an early stage of your project, an investor or you are just curious, these podcasts for entrepreneurs give you the opportunity to be updated on tech and business news. Also, you get to learn from successful international entrepreneurs, which can definitely be very useful for your business.