This file is a Practise file for sublime text 3. It is inspired by vimtutor available on some machine. It is designed to be done multiple times so that you learn by doing rather than active memorization exercises.
This tutorial is written to work with no additional packages and vintage mode switched off.
ATTENTION This tutorial was written on a Linux machines and some commands will be different on OSX.
This tutorial will modify the text so save a copy. (Or use the fetch package to grab the repo version)
In Sublime text 3 as in Sublime text 2 moving around is done using the arrow keys. GO TO:
X<- The beginning of this line.
The end of this line ->X
And on this final line here ->X somewhere in the middle.
Yes it as easy as that.
There are several advanced navigation options. NOTE: If Num lock is on these commands will write a number and not act as described here.
CTRL + LEFT move left to next word beginning
CTRL + RIGHT move right to next word ending
HOME move to beginning of the line
END move to the end of the line
CTRL + HOME move to beginning of the document
CTRL + END move to the end of the document
CTRL + BACKSPACE delete left till word beginning
CTRL + DELETE delete right till the end of the word
MOODugong
DugongONG
It's theEPEP cowPAT of the
Sea TEAsea sea!
CTRL + (K -> K) Delete from cursor position until the end of the line
CTRL + (K -> BACKSPACE) Delete from cursor position until beginning of the line
CTRL + SHIFT + K Delete whole line
Dugong THIS IS UNECESSARY
Dugong
BEWARE THE CHOCOLATE TEAPOT
Also known as the
ALL OF THESE WORDS AREN'T NEEDED Manatee!
CTRL + SHIFT + Up move line of selection up
CTRL + SHIFT + Down move line of selection down
CTRL + SHIFT + Return insert line above current
CTRL + Return insert line below current
This list of my favourite aquatic mammals requires is in disarray. Reorder it and complete the list your own choices.
- Dugong
- Bottlenosed Dolphin
- Blue Whale
- Beluga
- Narwhal
- Bowhead Whale
Comments can be toggled on individual lines with cursor(s) in the line to be selected. Comments can also be applied to multiple lines
CTRL + '/' to comment uncomment
This is along line of code perhaps (or perhaps a comment ( or maybe it is indeed code)a)
CTRL + M move to end the beginning of brackets
CTRL + SHIFT + M expand to brackets
Text selections can be wrapped in "quotes" or (brackets) First select the text to be wrapped Second simply type one of ([{'"
add round brackets
add square brackets
add curly brackets
add quotes
add double quotes
CTRL + L select line including end of line character
CTRL + A select all in file
CTRL + SHIFT + J join lines
CTRL + SHIFT + D duplicate lines
CTRL + SHIFT + J expand to indent
multiple versions of above expand the selection by same rules
CTRL + SHIFT + SPACE expand to scope CTRL + SHIFT + ALT + p show scope name CTRL + SHIFT + a Expand to tag
Selections of text can be made all upper-case or all lower-case using the following commands
CTRL + (K -> U) upcase selection
CTRL + (K -> L) downcase selection
CTRL+SHIFT+[ fold
ALT + . close tag
CTRL + q == Exit