Getting Help in Vim

The :help command in Vim is possibly the most powerful one of all. I agree with Romain Lafourcade of this handy website about that.

Getting help in Vim isn’t hard at all, but it’s sometimes difficult to find exactly what you need. One tip I learned from Austin Traver is how to easily open up the full glory of the help doc in another tab.

:tab help <topic>

You can get specific help about commands with :h <keystroke>, preceeded by the following ‘mode codes’:

mode code example
normal none :h ^R in normal mode
visual v_ :h v_^R in visual mode
command line command : :h :echo echo command
command line editing c_ :h c_# what # represents in commands
vim command argument - :h -r opening vim with -r flag
option '' :h 'nocompatible' read about set nocompatible

Now it’s easier to Read The F&(#ing Manual! :grin:

2019

Debugging weird c++ behavior

2 minute read

Sometimes you’ll have a program that seems to work but will produce a ton of Valgrind errors. You’ll get some fairly strange errors about invalid reads or co...

Scoping and this in c++

2 minute read

As a course producer for USC’s CSCI 104 students will often ask me questions about stuff I don’t know or didn’t think about. It makes me feel a little dumb f...

SQL Join Guide

3 minute read

I’m working on a project at my internship right now that has helped me learn a lot about SQL, mainly through making some stupid mistakes. This article focuse...

Redis Basics

4 minute read

The name redis comes from RE mote DI ctionary S torage, which is a good description of what redis is: a fast, key-value data structure. Redis is an in-memory...

Using the name variable in Python

1 minute read

When writing modules in python, it’s nice to test individual components. You can always add some messy test cases at the bottom of your code but, of course, ...

Getting Help in Vim

less than 1 minute read

The :help command in Vim is possibly the most powerful one of all. I agree with Romain Lafourcade of this handy website about that.

Customizing your Bash prompt

2 minute read

Your terminal can be customized in several different ways including how your prompt appears. You can color code shell variables such as your username and dir...

Basic Bash Backup

1 minute read

I spent most of early Saturday morning finishing up my backup scripts and debugging Bash. One could say I was, Bashing my head against the wall. No need to ...

Back to Top ↑