Vim: Hard Mode Vim: Hard Mode / tutorial / free

https://github.com/wikitopian/hardmode

Enable this plugin on to disable h,j,k,l and the arrow keys. This forces you to use Vim's other navigation keys, as well as reminding you how much you might be using h,h,h,h,h jump to a certain spot.
1 favorite
submitted almost 4 years ago, by SkinnyGeek1010
Vim: Hard Mode popular tutorial

5 Comments

SkinnyGeek1010

One thing that I have trouble with. If I call hardmode, I can't jump up to the prev line.

For example, if my cursor is on req, how can I jump up to Home?? jumping to title is easy with searching, but going up seems to be a problem :/ :

# Home page
app.get '/', (req, res) ->
  res.render 'index', {title: siteName}

SkinnyGeek1010, almost 4 years ago

pineapple

Use ? to search backwards (opposite of /). Use n to repeat your search going in the appropriate direction (using n after ? will go in reverse, n after / will go forward).

When you want to search in a line, f goes forward, and F goes backwards, Use ; to repeat your last same-line search in the appropriate direction. So like fh;;; will find the 4th 'h' character on the line. F will do same in reverse.

pineapple, almost 4 years ago

pineapple

Another way is use line numbers. Say "req" is on line 15 and "Home" is on line 14. You can either use command mode with :14 or you can use G (my preferred method) with 14G.

pineapple, almost 4 years ago

SkinnyGeek1010

Oooo yea i'm retarded... I should have figured shift would have reversed it. I love how Vim conventions are pretty predictable once you get them down!

SkinnyGeek1010, almost 4 years ago

pineapple

One of my favorite macvim tricks lately is to use gx when your cursor is over a URL and it will open it in your browser. Great for all those files where you have a

# comment with url - http://pineapple.io

pineapple, almost 4 years ago


Login or to comment.

Tutorials are any resources you learn from.

Examples: an intro to html5 screencast, a pdf about git, photoshop effects tutorials, meta-programming in ruby, lambda calculus, higher-order fixed-point combinators.

Tools are websites, apps or services used -on- your project (indirectly), to aid the process.

Examples: A color scheme generator, email marketing software, usability heat maps, css3 code generators, a downloadable png compressor.

Assets are downloadable files used -in- your projects, usually as code, textures, or images.

Examples: a jquery sticky menu, photoshop brushes, background textures, mvc frameworks, twitter bootstrap, 960 grid system.