`

8.textObject_macro

    博客分类:
  • vim
阅读更多
" text Object
    {operator}{a}{object}
    {operator}{i}{object}
    
daw = delete a word
      ==a==n object: include tail space

ciw = change inner word
      ==i==nner object: just content self
      exclude tail word space

" word/sentence/paragraph
    textObject      specification
    w               word
    s               sentence
    p               paragraph
    
" chunk object
    ]/[             []block
    )/( b           block
    >/< >/<         <>block
    }/{ B           Block
    t               tag block: <> </> 

" visual mode
    viw             select word
    vis             select sentence
    vip             select paragraph
    vi(             select content in (
    vi[             select content in [
    vit             select content in tab 

    v2i{            select content in 2{
    v3aw            select 3 word
    v3iw            select 3 word, exclude tail space
    
v operator can substitute to c x d y etc. operator effect on text Object

====================================

" macro
    if you write a thing once,it is okay. However if you're writing
t twice or more times, then you should find a better way to do it. 

qa                  start record macro and reg to a
q                   stop record macro
n@a                 execute n times macro a
@@                  redo last operation
:n,mnormal @a       n to m row execute reg a
:let @a= '          edit macro reg a


" best operation
    normalize cursor pos: 0
    execute edit and operator
    move cursor to easy back pos: j


" macro save
    viminfo/vimrc file
    save history and not null reg 
    vim launch read
    easy to cover
分享到:
评论

相关推荐

    vxworks_kernel_programmers_guide_6.9

    Object Management Support ........................................................................... 17 Error Detection and Reporting Policy Hooks ............................................... 18 ...

    Itanium Architecture For Programmers

    Section D.8. System Information Registers Section D.9. System Control Registers References Appendix E. Conditional Assembly and Macros (GCC Assembler) Section E.1. Interference from ...

    acpi控制笔记本风扇转速

    Added #pragma pack(8/4) to acobject.h to ensure that the structures in this header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been manually optimized to be aligned and will not work ...

    freemarker总结

    &lt;/#macro&gt; &lt;#assign mail = "jsmith@acme.com"&gt; ? 使用import指令导入库到模板中,Freemarker会为导入的库创建新的名字空间,并可以通过import指令中指定的散列变量访问库中的变量: &lt;#import "/lib/my_test....

    Programming Excel With Vba And .net.chm

    Chapter 8. Opening, Saving, and Sharing Workbooks Section 8.1. Add, Open, Save, and Close Section 8.2. Share Workbooks Section 8.3. Program with Shared Workbooks Section 8.4. Program with ...

    freemarker语法完整版

    Freemarker页面语法 A 概念 最常用的 3 个概念 sequence 序列,对应java 里的list 、数组等非键值对的集合 hash 键值对的集合 namespace 对一个ftl 文件的引用, 利用这个名字可以访问到该ftl 文件的资源 ...

    《游戏编程精粹》光盘源代码

    The file "usertype.dat" is simply a text file listing the state machine keywords. Here is a brief overview of the state machine structure. Each game object can point to a state machine. When ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Naming General Naming Rules File Names Type Names Variable Names Constant Names Function Names Namespace Names Enumerator Names Macro Names Exceptions to Naming Rules Comments Comment Style File ...

    数位板压力测试

    • Tablets often control the system cursor, provide additional digitizing input, and provide template or macro functions. 1.2 The Windows Environment Programming for tablets in the Windows ...

    PLSQL.Developer v11.0.4.1774 主程序+ v11中文包+keygen

    Object Browser filter text now also works for user-defined query-based folders Viewing job classes on Oracle12c could lead to "ORA-01036: illegal variable name/number" PL/SQL Beautifier did not format...

    Turbo C 2.00[DISK]

    WELCOME TO TURBO C 2.0 ---------------------- This README file contains important, last minute information about Turbo C 2.0.....DOC file on the COMMAND LINE/UTILITIES disk also answers many common ...

    Turbo C 2.01[DISK]

    WELCOME TO TURBO C 2.01 ----------------------- This README file contains important, last minute information about Turbo C 2.01.....DOC file on the COMPILER/UTILITIES disk also answers many common ...

    Springer.Markov.Random.Field.Modeling.In.Image.Analysis.3rd.Edition.Mar.2009.eBook-ELOHiM

    This second edition includes the most important progress in Markov modeling in image analysis in recent years such as Markov modeling of images with "macro" patterns (e.g. the FRAME model), Markov ...

    FastReport.v4.9.81 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版

    Multi-functional "Text" object can display one or more text lines. That may contain text mixed with variables or dataset fields or expressions. It supports simple HTML tags (b,i,u,strike,sub,sup,font ...

    Access 2003 Add-in: Source Code Control

    用vba在access 2003中进行多人开发时,... Microsoft Access then imports the text file into your Microsoft Access database, turning it into a Microsoft Access object (query, form, report, macro, or module).

    一个跨平台的CString源码

    // based upone the UNICODE macro setting // // This header also declares our own version of the MFC/ATL UNICODE-MBCS // conversion macros. Our version looks exactly like the Microsoft's to // ...

    OPUS- free Optical design software for linux

    opus computes AKA "traces" the path of light "rays" from an "entrance-aperture" or "object-plane", through a series of "optical surfaces" (lens-surfaces, mirror-surfaces, vignette-stops) to a focal ...

    Professional.MFC.with.VC6

    Chapter 8: Using the Windows Common Controls Overview Common Control Basics Initializing the Common Controls Library Notifications Image Lists Image Masks List Views and Image Lists ...

Global site tag (gtag.js) - Google Analytics