Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2: how to position cursor at begin/end of buffer?

I feel silly having to ask what seems like a basic question. I've Googled plenty, and I've examined the Default(OSX).sublime-keymap file, but I can't figure out:

How can I make the cursor jump to the beginning/end of the current buffer in Sublime2 on OSX?

Home/End scroll to the top/bottom respectively, but they do not position the cursor at the begin/end of the buffer.

Surely there is a way to do this. Some apps (e.g. Intellij) use CMD+Home/End for this, but that doesn't work either.

like image 479
George Armhold Avatar asked Jul 13 '12 22:07

George Armhold


People also ask

What does Ctrl d do in Sublime Text?

Ctrl + D in SublimeText is "Quick Add Next." This appears to be equivalent to Ctrl + B in Brackets, which is "Add next match to Selection" on the Find menu.

How do I move a line up and down in Sublime Text?

CTRL-SHIFT-UP (PC) or CTRL-⌘-UP (Mac) moves a line up, while CTRL-SHIFT-DOWN (PC) or CTRL-⌘-DOWN (Mac) moves a line down.


1 Answers

These work for me (Sublime Text 2 v2.0.1 on OS X 10.7.5)

  • ⌘-↑: start of buffer
  • ⌘-↓: end of buffer

The CMD-up and -down combos are the default shortcut for moving to the start and end of text buffers on OS X. They work in Safari text areas, too, for example. As such, they are not listed in the keymap file.

like image 105
Martijn Pieters Avatar answered Oct 11 '22 15:10

Martijn Pieters