第二十四章 Inserting quickly

usr_24 Inserting quickly

24.1 Making corrections
# delete a word
ctrl-w
# delete line
ctrl-u
24.2 Showing matches
:set showmatch 
:set matchtime
24.3 Completion
ctrl-p
ctrl-n
  • options
complete
ignorecase
infercase
  • COMPLETING SPECIFIC ITEMS
        CTRL-X CTRL-F           file names
        CTRL-X CTRL-L           whole lines
        CTRL-X CTRL-D           macro definitions (also in included files)
        CTRL-X CTRL-I           current and included files
        CTRL-X CTRL-K           words from a dictionary
        CTRL-X CTRL-T           words from a thesaurus
        CTRL-X CTRL-]           tags
        CTRL-X CTRL-V           Vim command line
  • COMPLETING FILE NAMES
  • COMPLETING IN SOURCE CODE
Repeating an insert
ctrl-a
ctrl-@
24.5 Copying from another line
ctrl-y
ctrl-e
24.6 Inserting a register
ctrl-r
24.7 Abbreviations
:iabbrev ad advertisement
  • ABBREVIATION SEVERAL WORDS
iabbrev JB Jack Benny
        :iabbrev #b /****************************************
        :iabbrev #e <Space>****************************************/
  • FIXING TYPING MISTAKES
:abbrevation teh the
  • LISTING ABBREVIATIONS
        c       Command-line mode                       :cabbrev
        !       both Insert and Command-line mode       :abbreviate
  • DELETING ABBREVIATIONS
        :abbreviate @f fresh
        :unabbreviate @f
        :abclear
  • REMAPPING ABBREVIATIONS
        :abbreviate @a adder
        :imap dd disk-door
        :noreabbrev @a adder
24.8 Entering special characters
ctrl-v
24.9 Digraphs
ctrl-k Co
:digraphs
24.10 Normal mode commands
        CTRL-O D
        CTRL-O "g3dw
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值