📗
Notes
  • Introduction
  • Files
  • Android
    • Http
      • Http基础
      • Okhttp理解
    • Jetpack
      • Notes
  • Java ways
    • 101
      • Basis
        • Index
        • Front
          • Angular
            • Angular start 01
            • Angular start 02
          • Typescript
            • Index
            • Ts 01
        • Java
          • Concurrency
          • Frameworks
            • Jdbc与连接池
            • Rxjava基础
            • Spring框架基础
          • Sugar&skill
        • Tool
          • Docker
            • Docker basis
            • Kubernetes play
          • Git
            • Git basic
          • Vim
            • Vim advance
      • Cs
        • Imp
          • Lru
          • Index
    • Snippets
      • Jpa和spring系列注解表
      • Java与oracle数据库各种操作
      • Maven初始化template
      • Nginx配置
      • Nginx反代后配置自动ssl续签
      • 终端033颜色
    • Ways
      • Java ways 01
      • Interview
        • Question
        • Requirements
      • Leetcode101
        • Acwing
          • Index
          • 背包问题
        • Explores
        • Solutions
          • Algorithms
            • Index
          • Concurrency
            • Index
          • Shell
            • Index
          • Sql
            • Index
  • Leecode
    • 牛客
      • 剑指offer
  • Play
    • Youtube离线下载
  • Python basic notes
    • Python days
Powered by GitBook
On this page
  • 基础
  • 用例实践
  • Macro用例实践
  • Resources

Was this helpful?

  1. Java ways
  2. 101
  3. Basis
  4. Tool
  5. Vim

Vim advance

   Author: Gentleman.Hu
   Create Time: 2020-11-06 16:17:19
   Modified by: Gentleman.Hu
   Modified time: 2020-11-06 20:58:43
   Email: justfeelingme@gmail.com
   Home: https://crushing.xyz
   Description: 一些vim进阶用法

基础

符号

对应单词

含义

y

yank

拷贝, 大写yank到行尾

t

till

直到

c

change

改

g

not sure(namespace)

"go"

a

append

小写后插,大写前插

o

not sure

小写下行插,大写上行插

d

delete

小写跟数字,删除指定数量,大写从cursor删到行尾

~

改变大小写

改变大小写

p

put

寄存器存的内容放在cursor后,大写放之前.前边跟数字,放置n遍

e

end

末尾

$

end

末尾

0

start

首

%

not sure

匹配到对应括号

z

not sure

z. cursor居中屏幕;zt,top;zb,bottom

*

mark/star

快速标记

  • 上表并不完整, 列举仅仅常用

用例实践

  • 多行添加注释

  • gt+"字符",删除直到某个"字符"

  • 其他慢慢探索

Macro用例实践

在spacevim中录制macro

Key

Mode

Action

<leader> + qr

Normal

Same as native q

<leader> + qr/

Normal

Same as native q/, open cmdwin

<leader> + qr?

Normal

Same as native q?, open cmdwin

<leader> + qr:

Normal

Same as native q:, open cmdwin

普通vim直接q即可进入录制,spacevim改变了映射,qr刻可进入录制

  • 简单加引号

  • 其他用例可参照资源, 各种玩法, 等待探索

Resources

PreviousVimNextCs

Last updated 4 years ago

Was this helpful?

油管_大神
vim_micros
stack_exchange_what_is_meaning_of_blabla_invim
vim_CheatSheet
dot_command_in_vim