欧美free性护士vide0shd,老熟女,一区二区三区,久久久久夜夜夜精品国产,久久久久久综合网天天,欧美成人护士h版

首頁綜合 正文
目錄

柚子快報激活碼778899分享:Vim Tutor隨記

柚子快報激活碼778899分享:Vim Tutor隨記

http://yzkb.51969.com/

How to use neovim

u will undo the change in Nomarl Mode

How to delete the character in Normal Mode

type the h j k l to move the cursor to the character you want, and press x

How to append something to the sentence tail

move cursor and press A. The Caps A

How to edit a file by nivm

nvim and :wq to save the changes

The Deletion Command

How to delete the word you want

move the cursor to the beginning of the word, and press dw

Type d$ delete to the end of the line

d - is the delete operator motion - is what the operator on

motions: w - delete the word where cursor is e - delete to the end of current word, INCLUDING the last character $ - delete to the end of the line.

NOTE: Keep pressing the d will keep deleting the character. Actually, it’s a combination. Just to type once is ok. Like type d, the type $. And the command will run perfectly.

Quick move the cursor

2w – two words the cursor move forward like move right

3e – the third word cursor

0 – MOVE THE CURSOR TO THE START OF THE LINE

Operations on lines

dd – delete a whole line

Undo command

type u to undo once

type U to undo all the line

ctrl + r to undo the undo commands

The PUT COMMAND

Type p to put previously deleted text after the cursor

The REPLACE COMMAND

Type r$ to replace the character at the cursor with $

The CHANGE OPERATOR

To change until the end of a word, type ce.

from the cursor (including the cursor)

Note that ce deletes the word and places you in INSERT MODE

MORE CHANGES USING c

format: c [cursor] motion motion: w word e end $ the rest from the cursor

CURSOR LOCATION AND FILE STATUS

Type ctrl + g to show the location where the cursor is in a file and file status

Type G to move to a line in the file

Wanna go to the line$number format is $number + G

THE SEARCH COMMAND

type / + $yourlookingfor

type n to search next

type N to search backward

to search for a parse in the backward direction , use ?

MATCHING PARENTHESES SEARCH

type % to find a matching ), ] or } (need to move cursor to a parenthese)

THE SUBSTITUTE COMMAND

format: :s/oldStr/newStr/ - only match the first oldSTR /two example/ :s/oldStr/newStr/g - match all oldStr in sentences and substitute

Note: to change every matches from line to line, just type :#,#s/oldStr/newStr/g example: :1,10s/oldStr/newStr/g - use oldStr with newStr from line 1 to line 10

Note: to change every occurrence in the WHOLE FILE, type :%s/oldStr/newStr/g

EXECUTE AN EXTERNAL COMMAND

Type :! followed by an external command

format: :! + command example: :!ls -la

MORE ON WRITING FILES

To save the changes made to the file, type :w $FILENAME

SELECTING TEXT TO WRITE (Visual selection)

Type v to enter Visual Mode which just like pressing the left key and dragging it to obtain text

Note: after selected, you can type operator like d to delete the text selected

RETRIEVING AND MERGING FILES

To retrieve the contents of a file, type :r $FILENAME

Seems like copy the result to where the cursor is

THE OPEN COMMAND

Type o the open a line below the cursor and place you in INSERT MODE

THE APPEND COMMAND

Type a to insert text AFTER the cursor.

Note: a, i and A will go to the same Insert mode, the difference is the index or position of the cursor

ANOTHER WAY TO REPLACE

Type a R to replace more than one character.

Compared to r which can replace on character, R can replace more.

COPY AND PASTE TEXT

Use the y to copy text and p to paste it.

Note: you can use y as an operator: yw yanks one word. make no sense. Note: you can use P to paste before the cursor instead of replacing after.

SET OPTION

Set an option that search and substitute commands ignore case.

Set the ‘ic’(Ignore case) option by entering :set ic Note: To remove the hightlight of matches :nohlsearch

option ":set xxx"

'ic' 'ignorecase' ignore upper/lower case when searching

'is' 'insearch' show partial matches for a search phrase(incomplete match)

prepend "no" to switch an option off

GETTING HELP

comprehensive (adj.完整的)

Note: :help w :help c_CTRL-D :help insert-index and so on

USE Tab to complete the command

use Ctrl d to see possible completions then use tab to complete the commands

柚子快報激活碼778899分享:Vim Tutor隨記

http://yzkb.51969.com/

參考文章

評論可見,查看隱藏內(nèi)容

本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。

轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。

本文鏈接:http://gantiao.com.cn/post/19724594.html

發(fā)布評論

您暫未設(shè)置收款碼

請在主題配置——文章設(shè)置里上傳

掃描二維碼手機訪問

文章目錄