User Tools

Site Tools


public:techstuff:vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:techstuff:vim [2012/08/21 13:50] – external edit 127.0.0.1public:techstuff:vim [2020/04/25 13:05] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== vim ======
  
 +|command|result|
 +|g==G|Reformat a file|
 +|% |Putting the cursor on a brace, bracket, or parenthesis and pressing % will send the cursor to the matching brace, bracket, or parenthese. Great for fixing parse problems related to heavily nested blocks of code or logic.|
 +|>>|Indent the highlighted code. (See the earlier section about efficient text selection. If no text is selected, the current line is indented.)|
 +|<<|Like >>, but un-indents.|
 +|gd|Go to the definition (or declaration) of the function or variable under the cursor.|
 +|*|search for word under cursor forwards|
 +|#|search for word under cursor backwards|