Misc.
Category: Linux
vim
undo u diplays line # :set number go to line 14 :14 go to character 40 :goto 40 :s (substitute) count # of time a pattern exists :%s/pattern//gn Replace foo to bar :%s/foo/bar/g Add comment ( and space) for line 5 to 8 :5,8s/^/# / Move around Go to first / last line gg /…