• emacs快速删除


    emacs快速删除

    emacs快速删除

    1 哪儿来的

    这个想法我从vim中借过来的,以前在用vi操作的时候常常会用到 dt df 来删除一大段文字,还会用到 ~di"~ 之类的快速命令。

    可在emacs里面却没有这样的命令,今天在stackoverflow里面找到一个人跟我同样的问题。

    Location: http://stackoverflow.com/questions/9860321/emacs-move-to-a-certain-character-forwards-and-backwards

    2 问: Emacs: move to a certain(某一,已确定的) character, forwards and backwards

    In vim, I can use f to move the cursor forwards to a certain character and F to do this backwards. How to do it in Emacs? I know you can use C-z or M-z to delete until a certain character, and you can also first delete then paste to achieve a motion. But 1) is there a better way to do this, only movement, without delete? and 2) how to do this backwards?

    Forward incremental search is C-s , and reverse incremental search is C-r .

    3 答: Responding to comment:

    To delete from the current position backwards to a specific character, you can use

    C-<space> to mark the current position, then C-r <char> <RET> to locate the search character, and C-w to up vote 2 down delete between current position and mark.

    To get more help on doing things in emacs, you should look at the tutorial. Typing C-h t will open the tutorial in a new buffer.

    To delete, use zap-to-char or activate the mark by pressing C-spc before jumping, then C-w.

    Date: 2013-01-21 Mon

    Author: liweilijie

    Org version 7.9.2 with Emacs version 23

    Validate XHTML 1.0
  • 相关阅读:
    【思考题】任意长度有理数乘法运算
    【排序】表插入排序算法(C语言版)
    JAVA中的反射
    JAVA中关于日期的最常见的操作
    Hibernate:基于HQL实现数据查询
    Hibernate与Mybatis对比
    使用idea实现SSM框架整合
    基于maven搭建hibernate运行环境
    MYSQL中的存储过程
    MySQL 索引
  • 原文地址:https://www.cnblogs.com/liweilijie/p/2870119.html
Copyright © 2020-2023  润新知