Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Open a File with Multiple Columns Scrolled to Specific Lines with Vim

open-a-file-with-multiple-columns-scrolled-to-specific-lines-with-vim.jpg

In this video, we'll run Vim with custom arguments to auto-split a file into multiple columns and jump to specific lines in each column.

Quick Jump:

We’ll be using the -c flag which lets us run a command after the file has been read by Vim.

# Demo Video

Timestamps

1:48 – Going over the Vim command to make all of this work

Command

vim multiopen \
  -c "vsplit +112 multiopen | normal zt" \
  -c "vsplit +221 multiopen | normal zt"

Reference Links

What do you plan to use this feature for? Let me know below.

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per year (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.



Comments