第二十四章 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 ****************************************/
  • 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

你可能感兴趣的:(我的,vim,帮助,vim)