zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    laravel吐槽系列之一
    每日晨读_20140924
    技术晨读_2014_9_1
    大话胖model和瘦model
    大话PHP缓存头
    vim黏贴自动增加tab的毛病
    Laravel学习
    郑捷2017年电子工业出版社出版的图书《NLP汉语自然语言处理原理与实践》
    delete
    NLP知识结构概述
  • 原文地址:https://www.cnblogs.com/liweilijie/p/2870119.html
Copyright © 2011-2022 走看看