Skip to content

wsgggws/neovim-practise-101

Repository files navigation

neovim-practise-101

1. 删除空行



MacBook Air (M2, 2022 16GB)

MacOS Monterey 12.6.6

NVIM v0.9.0

plugins manager: https://github.com/folke/lazy.nvim


template: https://www.lazyvim.org/

my config: https://github.com/wsgggws/nvim

some requirements: https://github.com/wsgggws/dotfiles/tree/main/brew
NVIM v0.9.0



=>

MacBook Air (M2, 2022 16GB)
MacOS Monterey 12.6.6
NVIM v0.9.0
plugins manager: https://github.com/folke/lazy.nvim
template: https://www.lazyvim.org/
my config: https://github.com/wsgggws/nvim
some requirements: https://github.com/wsgggws/dotfiles/tree/main/brew
NVIM v0.9.0

2. 删除重复行

=>

MacBook Air (M2, 2022 16GB)
MacOS Monterey 12.6.6
NVIM v0.9.0
plugins manager: https://github.com/folke/lazy.nvim
template: https://www.lazyvim.org/
my config: https://github.com/wsgggws/nvim
some requirements: https://github.com/wsgggws/dotfiles/tree/main/brew
NVIM v0.9.0

3. 添加递升/递减序号

1
2
3
4

=>

1. 1
2. 2
3. 3
4. 4

or

4. 1
3. 2
2. 3
1. 4

4. 倒置文本行

1111111
3333333
2222222
4444444

=>

4444444
2222222
3333333
1111111

5. 行排序

case 1
4
2
3
1

case 2
4.1
2.4
3.2
1.3

=>

case 1
1
2
3
4

or

4
3
2
1

case 2
4.1
3.2
1.3
2.4

6. 更改文本对象内容

# 请更改 value 为 wsgggws
{"key": "value"} => {"key": "wsgggws"}

About

neovim 101 道练习题与解题秘籍

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published