`

5.convert_find_substitute

    博客分类:
  • vim
阅读更多
" Insert
Shift-i/A               insert mode and move to head/tail
a/i                     cursor after/befor insert
[n]O/o                  line before/afer insert n times
[n]-i                   insert mode repeate n times


" Convert
~                       char upper/lower
g ~ w                   word upper/lower
g ~ $/g ~ ~             line upper/lower
gU/uw                   word upper/lower


" Find
F/f{char}               backwards/forewards find a char
t/T{char}               find a char before target
dt{char}/df{space}      delete from cursor to find target
/{char}                 command line find


" substitute
        [range][substitute]/{pattern}/{String}/[flags]
s/going/rolling/g               this line all "going" substitue to "rolling"
%s/going/rolling/g              % matches all range

Shift-r/R                       substitute mode
r                               char substitute
cw                              change word
c$/C                            change line after cursor


分享到:
评论

相关推荐

    scr_reset.rar_The Substitute_scr_reset

    在IT行业中,尤其是在文本处理和终端界面开发领域,"scr_reset.rar_The Substitute_scr_reset" 提供了一个关于屏幕重置和子程序替换的概念。这个压缩包中的核心文件 "scr_reset.c" 很可能是C语言编写的一个源代码...

    GENESIS 2000 DFM PE

    The DFM Programming Environment is one of the many unique concepts of the Genesis 2000 system. Unlike any existing tool, the DFM Programming Environment (DFMPE) enables any user with elementary ...

    boost_sp_counted_base.rar_ARGUMENT!

    Substitute for bad_weak_ptr object in the case of -fno-exceptions.Empty helper class except when the template argument is _S_mutex.

    iRF.zip_IRF_On Purpose_random frog

    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING ...

    xx.rar_Do You

    substitute the value, e.g. build the md5 by concat the strings together, then you can use the java.lang.String.format method. But in Camel 2.0 we have added two convenient methods in the Java DSL so ...

    geteyelevel.rar_On Purpose

    SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING ...

    php.ini-development

    5. The web server's directory (for SAPI modules), or directory of PHP ; (otherwise in Windows) ; 6. The directory from the --with-config-file-path compile time option, or the ; Windows directory (C:\...

    tomcat_apache共享动态连接库

    LoadModule substitute_module modules/mod_substitute.so LoadModule deflate_module modules/mod_deflate.so LoadModule log_config_module modules/mod_log_config.so LoadModule log_forensic_module modules/...

    substitute.rar_Linux/Unix编程_Unix_Linux_

    例如,如果我们有一个名为`substitute.c`的源代码文件,其中包含以下内容: ```c #include <stdio.h> int main() { char str[] = "Hello, World!"; printf("%s\n", str); return 0; } ``` 我们可以使用`sed`...

    exec4_Substitute_

    5. **递归**:对于某些复杂情况,源码可能使用了递归方法来实现替换,特别是当替换操作需要考虑字符串嵌套结构时。 6. **字符串不可变性**:在某些语言(如Python和Java)中,字符串是不可变的,这意味着每次替换...

    UG6.0快捷键大全

    SYNONYMS substitute, alternate, swap, switch HINT This command is available in history modeling mode. HELP DSN_replace BITMAP replace_feature POPUP_LABEL Repl&ace... POPUP_MESSAGE Replaces the ...

    KCF源码代码

    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT...

    substitute

    substitute.cpp substitute strings in a list of files This program operates on a set of files listed on the command line. The first file specifies a list of string substitutions to be performed on...

    SUBSTITUTE函数[定义].pdf

    SUBSTITUTE函数是Excel中用于文本处理的一个重要工具,它的主要功能是在给定的文本字符串中替换指定的文本。SUBSTITUTE函数的基本语法为:SUBSTITUTE(text, old_text, new_text, [instance_num])。 1. `text`:这是...

    Fast-neural-network-learning.rar_软件设计/软件工程_PDF_

    Although frequent measurement is neededto avoid inadequate dialysis efficiencycan repeatedly perform the forecasting tasks andmay be a satisfactory substitute for laboratory tests. Artificialneural ...

    SUBSTITUTE函数.pdf

    SUBSTITUTE函数 SUBSTITUTE函数是Excel中的一个文本替换函数,用于在文本字符串中用new_text替代old_text。该函数的语法为:SUBSTITUTE(text,old_text,new_text,instance_num),其中text为需要替换其中字符的文本或...

    Python 如何在字符串中插入变量

    s.substitute(vars()) ``` 尽管这些方法也能工作,但`format()`和`format_map()`提供了更强大的功能,如对齐、填充和数字格式化,这些都是其他方法无法比拟的。 `__missing__()`方法是字典类的一个高级特性,允许...

    HTMLTestRunner.py资源包

    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ...

    2021_play_ball_substitute_player_batch

    5. **批处理框架**:Java社区有许多批处理框架,如Spring Batch,它提供了一种结构化的方式来处理批量作业,包括读取、处理和写入数据。这个项目可能使用了类似的框架来组织批处理逻辑。 6. **设计模式**:在编写...

Global site tag (gtag.js) - Google Analytics