#author:felix
#date:2019-09-19
# terminal
#---------------------------------------
# ctrl+f move forward
# ctrl+b move back
# ctrl+a move to the head
# ctrl+e move to the end
# crtl+h delete a char
# ctrl+w delete a word
# ctrl+u delete current comand
# VIM has Four model
# --normal --insert --command --visual
# normal ----> insert i/a/o I/A/O
# insert ----> normal ESC/ctrl+[
# normal ----> command :
# normal <---> visual v/V/ctrl+v
# ----------------------------------------
# u undo
# ^ move to the line begining
# $ move to the line end
# [num]gg move to the first[num] line
# gi back to the last edit position and into the insert model
# G move to the last line
# ctrl+o back to the pre position
# H jump to the head of the current page
# M jump to the middle of the current page
# L jump to the end of the current page
# ctrl+f next page
# ctrl+b pre page
# ctrl+d next half page
# ctrl+u pre half page
# zz put current position into the screen middle
# w/W move to the next word begining
# e/E move to the next word end
# b/B move to the pre word begining
# ge move to the pre word end
# skills: "e/E" and "a"
# "b/B" and "i"
# search in one line in the normal model
#-----------------------------------------
# f/F[char][;][,] jump to the position of "char";
# ; jump to the next one
# , jump to the pre one
# t[char]
# 0/^ jump to the first char
# $/g_ jump to the last char
# delete in vim
# x delete a char
# [n]x delete "n" chars
# dd delete one line
# [n]dd delete "n" lines
# daw delete around word
# dt[char] delete chars until "char"
# d0 delete chars before the current position
# d$ delete chars after the current position
# replace/change/substitute
#-----------------------------------------------------
# r replace one char
# [n]r replace "n" chars by one char
# R replace one char repeatly
# s delete one char and into the insert model
# [n]s delete "n" chars and into the insert model
# S delete one line and into the insert model
# caw change one word and into insert model
# c0 delete all chars before the current position and into insert model
# c$ delete all chars after the current position and into insert model
# C delete all chars after the current position and into insert model
# ct[char] delete chars until "char"
# search in vim
# /[chars] search forward
# ?[chars] search backward
# */# search current position word
# n/N "n" move pre one; "N" move to next one
# set hls set highlight line
# set incsearch
# search and subsitute
# :[range]s/{pattern}/{string}/[flages]
# range: 10,20 means 10-20 lines; % means all
# pattern: old strings
# string: new strings
# flags: g--global c--comfirm n--number