---
# System prepended metadata

title: 'Lesson 1 : 上上下下左左右右前前後後'
tags: [VIM, NeoVIM, TextEditor]

---

# Lesson 1 : 上上下下左左右右前前後後
###### tags: `TextEditor` `VIM` `NeoVIM`

![](https://i.imgur.com/brJgIJm.jpg)

## 1.上上下下左左右右

|command   | descript |
|----------|----------|
|   h      |  游標向左 |
|   j      |  游標向下 |
|   k      |  游標向上 |
|   l      |  游標向右 |

:::info
:bulb: 搭配數字可移動多個字元
:::
![](https://i.imgur.com/SF2L6Zx.gif)

## 2.前前後後
|command   |     descript    |
|----------|-----------------|
|   w      |  向前移動一個word |
|   b      |  向後移動一個word |
:::info
:bulb: 搭配數字可移動多個word
:::
![](https://i.imgur.com/hGjSK9B.gif)

## 3.快速翻閱吧
|command   |     descript    |
|----------|-----------------|
|   ctrl+f |  page down      |
|   ctrl+b |  page up        |
![](https://i.imgur.com/grelofO.gif)

## 4.跳至文件開頭與結尾
|command   |     descript    |
|----------|-----------------|
|  gg      |  跳至文件開頭      |
|   G      |  跳至文件結尾      |
![](https://i.imgur.com/LwnRXED.gif)

## 5.跳至指定行數
|command   |     descript    |
|----------|-----------------|
| <number>gg |  游標跳至number|
| <number>G  |  游標跳至number|

![](https://i.imgur.com/5YKt6ru.gif)

## 6.喬個位子
|command   |     descript         |
|----------|----------------------|
| zz       |將目前游標位置移到畫面中央 |
| zt       |將目前游標位置移到畫面頂端 |
| zb       |游標跳至number頂端      |

![](https://i.imgur.com/FAH2UFk.gif)
