Joined July 2013
·
Posted to
Go back to previous buffer in vim
over 1 year
ago
<c-o>
(as well as <c-i>
) is actually for jumping. It won't always take you to the previous buffer, because it is based on a jump list. You jump when you perform a search, or move around with marks, scroll block wise with braces, use %
key... and when switching buffers. The complete list of "jump commands" is in the doc
So this trick can work, only if your last jump was a buffer switching (example your describe). But I think the most efficient way to switch from one buffer to another is use :bp
and :bn
-- or map them to something more comfortable.
Posted to
Express 3.0 Layouts with Jade
over 1 year
ago
worth mentionning that this isn't particularly new as a feature. You can find the same block logic in twig for instance
Achievements
39 Karma
0 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Raven
Have at least one original repo where some form of shell script is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Charity
Fork and commit to someone's open source project in need
Although I use tabular for this kind of things, it is a nice use of shell features from vim. Thanks :)