使用 mpv 和 Anime4K 播放动画视频

  • 用 mpc-hc 和 madVR 来 upscale 播放动画也不错,不过还是按捺不住想折腾的心思,于是尝试了下这个。

  • mpv

    • 官网:https://mpv.io/

    • 安装:https://mpv.io/installation/

      • Windows 解压后,进入 installer 文件夹,使用管理员权限运行 mpv-install.bat 和 configure-opengl-hq.bat

      • 切换到 mpv.exe 运行目录,打开 mpv/mpv.conf 文件

  • Anime4K

  • 打开一个视频文件,shift + i 显示 OSD 菜单,按 2 可以看到当前的 user shader 设置,使用 ctrl + 1 到 6 来切换 shader profile,ctrl + 0 来清除 shader profile.

  • 试了下我还是使用第一个推荐的 For 480/720p videos 的配置了。

2017

点击开启 2017 一年份的碎碎念。

原本还准备再拖一段时间再继续写的,不过昨天在玩 よりくれ 进入个人线之后玩了 3个多小时,感觉读不下去了,不如休息下,明天继续写 2017 年的年终碎碎念,于是今天照计划开始继续写碎碎念了。

分话题,一个部分一个部分单独拿出来记录下好了。

设备

用 ThinkPad T460P 当主力机一年,总体上还是很满意的。

不过在 8.17 日的时候入手了 DELL U2718Q 深受 Windows 在高分屏下各种软件不适配的痛苦,脑抽的情况下在 8.27 日的时候下单了个 MacBook Air 13 (2017)i7 + 8G RAM + 128G SSD(7688 RMB)。 到手之后,连上 4k 显示器使用起来是特别棒,然而由于窝日常工作都需要在 Windows 下完成,MBA 就一直在家里放着吃灰,在 2018年 1月底的时候因为需要找一个新的租房,在京东回收上以 3695 RMB 的价格卖出去回血了……(毕竟放着吃灰,不如直接出掉算了。顺便 MBA 的屏幕,我的评价只有 2个字「垃圾」,色彩只能用惨淡来形容了。)

年底回家之后,用以前买的螺丝刀套装拆了 T460P 清理了下 CPU 风扇的灰尘,过完年到武汉之后顺便把买的 2.5英寸 2TB 的 HDD 替换掉现在用的 500G 的 HDD 好了,如果今年开发的时候对硬盘性能有要求的话,看情况入个 2.5英寸的 SSD 替换掉 HDD。(日常还是 gal 占用的空间最大,然而玩 gal 并不需要 SSD)

软件(Software)

时间追踪(Time Tracking)

用了差不多一年的 RescueTime,2018.1 的时候开了个高级会员,下了一份报告,看了下年度时间花费,排名大概是 Social -> Web Browsing -> Game -> Software Development,和日常情景差不多(聊天,上网,游戏,开发)。

在 Telegram 群里有人推荐了 ManicTime,2018 年时间花费记录应该会切换到这个软件上,比 RescueTime 要强大点,当然最大的好处是不用联网。

操作系统(Operating System)

因为目前开发的环境是 Windows 环境必须,在大学用了三年 Mac OS X 之后,毕业后到现在又转回用 Windows,除了 Windows 的一些硬伤(字体渲染)和第三方软件开发者未适配(HiDPI 应用),感觉还行。

当然 エロゲ 基本都是 Windows Only,也就必须用 Windows 了,虽然虚拟机也不是不能用,某些强迫症患者,或者说各种私人观念,还是实体机比较方便。

现在日常日区 Locale + 日文 UI + 东京时区,玩 gal 还是挺方便的,不过遇到必须在中区 Locale 的情况下,需要切换重启,也比较烦就是。

工作(Working)

目前个人活跃度还算可以,2017 年也算做了不少微小的工作

同人

我主要是做些和脚本相关的事情(用 Node.js 写了个把 演出剧本 转换成 演出脚本 的工具)

合作

基本就是把 Steam 插件接入,然后封包上传发布到 Steam。

公司

三色绘恋用的是 吉里吉里2(Engine)+ KAGEX(System)的组合,我主要是负责把系统相关的代码根据需求修改,以及做一些和 UI 上对应的脚本。(这里基本上就是看 krkr2 的 doc,tjs2 的 doc 和 kag 的 doc,然后读源码进行修改自定义。)

不过有些角色在 2018.2.9 日更新的时候,有 400+ 的表情,像导出表情的自动化这种也需要我去写脚本完成,毕竟重复工作量太大。(用 Python + win32com 调用 Photoshop API 来做自动化导出处理。)

因为目前没有想到更好的多语言系统方案,还有像生成英文的脚本这种,也需要写脚本来自动生成。(用 Python 写的自动化处理。)

2017 年从编程语言上来看基本上都是在和 TJS2 JavaScript Python 打交道,虽然没写什么复杂的代码,不过日常拿来用还是可以的。

官网和几个特设页的 HTML 代码也是我写的(设计另有人做,毕竟我不会设计x),可是自我感觉惨不忍睹,嘛,还是设计优先,实现了效果,还行,还行,还行……(不自觉的留下了羞愧的眼泪)我不会写前端。我不会写前端。我不会写前端。

比较好奇日本的会社这个 Workflow 是怎么个流程,然而没有机会参观……

エロゲ(Eroge)

2018.1 月初整理了下 PicPick Screenshot 文件夹,里面只有从 2017.3 月份开始的,并且在玩的时候有些游戏也没截图,这个列表也不完整就是,嘛,窝算是 2017 年入坑エロゲ的。(居然有人是在大学之后工作的第一年才入坑 eroge 的

这个列表可以滑动快速略过

[Laplacian] ニュートンと林檎の樹
[Yuzusoft] 千恋*万花
[ぱれっと] 9-nine - ここのつここのかここのいろ
[Lose] ものべの -happy end-
[SWEET&TEA] 枯れない世界と終わる花
[TYPE-MOON] 魔法使いの夜
[Yuzusoft] サノバウィッチ
[Us:track] 恋 × シンアイ彼女
[Lose] まいてつ
[ALcot] Clover Day's Plus
[ま~まれぇど] お家に帰るまでがましまろです
[CUBE] your diary +H
[ねこねこソフト] ルリのかさね ~いもうと物語り~
[SMEE] Making*Lovers
[Parasol] 桜ひとひら恋もよう
[Curefull Base] ツギハギめいくぴーす -pretending friendship-
[Recette] しゅがてん!-sugarfull tempering-
[あかべぇそふとすりぃ] まほ × ろば -Witches spiritual home-
[RASK] Re:LieF ~親愛なるあなたへ~
[すみっこソフト] あきゆめくくる
[SAMOYED SMILE] 夜巡る、ボクらの迷子教室
[GIGA] 添いカノ ~ぎゅっと抱きしめて~体験版
[Lump of Sugar] 縁りて此の葉は紅に 体験版
[MOONSTONE] 妹ぱらだいす!3体験版
[ねこねこソフト] すみれ

然后,窝需要单独拿出来几个说说

サノバウィッチ

2016 年底窝玩 千恋万花 的时候还不知道 柚子社,那个时候也确实不知道 Developer 是谁(信息不自觉型无视),不过在群里聊天的时候,有人推荐窝去玩下 魔女的夜宴 这作,玩了之后就一发不可收拾,如果没有 ReStart 的话,刀片不可避。

然后就开始在意 brand(品牌)了,魔女的夜宴挺不错的,让窝知道了 Yuzusoft 和相关的画师,剧本,各种对应职位的 staff,在通了宁宁线之后,可以转到下一个作品。

恋 × シンアイ彼女

如果说 Sanoba Witch 让窝知道了一些 staff 的话,那 koikakei 是让我脑子记住了可能这几年之内都会忘不了的那几位 staff。

主剧本担当的新岛夕,原画之一的きみしま青,音乐制作的水月陵。

koikakei 这个作品让我产生了一种「到底发生了什么事情,能让创作者做出这样的作品」,这个作品想要表达出来的东西,令我难以忘记。

まほxろば 剧情就比较平淡了,虽然こなつ很可爱,但是……bug 比较致命,可以说是年度程序 bug 甚至能让人拿出来专门说的程度了。

your diary +H

your diary 在大学的时候有一个好朋友有段时间很沉迷,不过我当时沉迷看新番补旧番,不玩 eroge,时至今日,因为片头曲,OP,カントク以及工作上一个演出需求的效果,尝试扫雷了下。

ゆあ,可爱。

不过在 clear 了一条线之后,故事虽说没有那种难以忘怀的感觉,但是 bgm 所营造的氛围可以说也是那种可遇不可求的作品之一了。(Duca 的 OP 曲实在是好听的不得了。)

ルリのかさね ~いもうと物語り~

这是我第一部入正的 エロゲ

原本在公司里有看到过 ラムネ2的周边,不过没太在意,正好不知道是几月份的时候 ruri 出了体验版,玩了下感觉有点意思,就试着在 sofmap 上预定了下,然后不出意料的,跳票了 233。嘛,10月底的时候发售了,拿到手的时候,我已经 clear 了 ruri 线,剧情(催泪,哭死我),音乐,CG 都挺好的。

至于猫猫社和片冈不得不说的秘密(雾)其实并没有,原本 OP 发出来的时候因为公司里有人也参与了视频制作,在 OP 里看到公司的名字出现在制作协力上也是一种神奇的体验。

ルリ很可爱,可爱即正义。

Making*Lovers

一句话送给 Making * Lovers(个人评价)

2017 年度最搞笑作品

SMEE 的作品质量还是一如既往,完全 OK,刚发售就完售,实在厉害。剧情里笑梗非常多,OP 也很魔性,循环起来很带感。

夜巡る、ボクらの迷子教室

迷子教室这作可以说是 11 月的一部剧情作,并且今年出的新作里,剧情作排名(个人)可以入前三。(这排名没意思,只是想说,剧情起伏比较大,各种情节也比较现实,总之就是,挺好的。

动态 CG 很实用 =_=

最后

白箱动画里的有一句台词很有趣,大意是:「这个业界充满了怪人,正是因为这样,才有趣。」。大概这也适用于不同的业界,正是因为有很多人,不停的在想做出自己认为有趣的东西,才让观众能够看到一些不同的作品。

作品是由创作者做出来的,在作品有趣的情况下,难免会让人产生一种,为什么作者会这样子做呢?好想问下他/她。

这里可以推荐下 Twitter 这个社交平台,以 エロゲ业界 来说,能在 Twitter 上能找到各个品牌的宣传官推,剧本,原画,声优,音乐制作人,企划,监督,等等职位的创作者。

观察人是一件很有趣的事,能看到不同人的各种行为。(STK

Use Vim (Note for vimbook-OPL.pdf)

Learn use vim as my main text editor
總體上感覺:
看到10章之後,速度慢慢就上去了,可能是自己慢慢熟悉命令了。
這個Note僅僅是我在練習時順便整理的。

The Tutorial

Get start

    I just think vim is a very good productivity tools.

    Did you think so?

    尝试使用中文,感觉这个输入法的速度都变快了,有没有?

    字体比较小,怎样把字体变大呢?(cmd=)

    背景也能不能设置为黑色的呢?(GUI 下 theme=evening)

    都需要自己探索,学习。

1.Vim:Commands

Moving Around

    hjkl Move cursor ### Deleting Characters
    x: Delete charcter under score your cursor ### Changing modals
    esc: Change modal
    i	inserts a character before the character under the cursor
    v: Visual modal (Select multi lines text) ### Undo and Redo
    u: Undo

    U: Undo line

    Ctrl r twice: Undoes the undo

Getting Out

    ZZ: Writes files and exits 保存并关闭文件

    :q!	quit-and-throw-things-away 退出不保存

    :w	写入文件不退出

    :q	退出

Other Editing Commands

    a	insert text after the cursor
    dd	delete a line
    o	a new line below the cursor,then enter insert mode.
    O	a new line above the cursor,then enter insert mode.
    :help	display help

    some text enclosed in vertical bars (etc: |tutor),then press
    ctrl ]	Jump to tag(Jump to the location of the tag given by the word under the cursor)
    ctrl t	pop tag(Back to the location of the tag)

    get help in NORMAL mode on subject

    etc.
    :help x
    :help deleting
    :help ctrl-a
    :help ctrl-h


    get help in INSERT mode on subject
    prefix key i_

    :help i_ctrl-h

    special key such as Arrow key
    :help <Up>	get help on <Up> arrow key
    other help prefix key , see note

    **Using a Count to Edit Faster**
    If you want to type aaaaaaaaa
    you can
	    9ia<Esc> 	then it will insert aaaaaaaaa
    or
	    9aa<Esc>	append aaaaaaaaa to after the cursor 

    If you want move up 10 lines
    you can
	    10k
    to move down 10 lines
	    10j
    to move cursor left 5 characters
	    5h
    to move cursor right 5 characters
	    5l

2.Editing a Little Faster

Word Movement

    w	forward 1 word
    b	backward 1 word
    3w	forward 3 words
    4b	backward 4 words

Moving to the Start or End of a line

    $	move to the end of line
    ^	move to the begin of line
    2$	move to the end of 2 line
    0	move to the begin of line

Searching Along a Single Line

    fx	forward search single character x
    Fx	backward search single character x
    2fx	twice search single character x
    tx	cursor stop in searched character x begin
    Tx	cursor stop in searched character x after

Moving to a Specific Line

    gg	Go to file start
    G	Go to file end	

Telling Where Are in a File

    :set number	display line number
    :set nonumber	display line number off

Where am I?

    ctrl+g	display a status line that indicates where you are in the file.	

Scrolling Up and Down

    ctrl+u	scroll up half a screen
    ctrl+d	scroll down half a screen

Deleting Text

    dw	delete a word
    dd	delete one line
    d2w	delete two word
    d3d	delete three line
    d$	delete from cursor to end of line
    d0 or d^	delete from cursor to begin of line
    3d2w	delete 2 words repeat 3 times for a  total of 6 words

Chaging Text

    cw	change a word
    c3w	change 3 words
    cc	change a line

Joining Lines

    J	join the current line with the next one
    3J	join 3 lines to one line

Replacing Characters

    rx	replaces the character under the cursor with x
    5ra	replaces the character under the cursor with aaaaa

Changin Case

    ~	change the character under the cursor with lowercase or uppercase

Keyboard Macros

    q character command records keystrokes into the register named character. (The char-
    acter must be between a and z.)
    ---
    qa	Start recording a macro in register a.
    ^	Move to the beginning of the line.
    i#define<Esc>	Insert the string #define at the beginning of the line.
    j	go to next line
    q	Stop recording the macro.
    ---
    @a	use macro
    10@a	use macro 10 times

3.Searching

Simple Searches

    /string		search string	if you want to search forward use /<Enter>
    /<Up>or<Down>	use history search string

Searching Options

Highlighting

    :set hlsearch	set highlighting search
    :set nohlsearch 	no highlighting search
    :nohlsearch	clear the current highlighting

Incremental Searches

    :set incsearch
    :set noincsearch
    n	next matched string ### Searching Backward
    ?string		search string backward
    n	last matched string

Changing Direction

    n	normal next matched string
    N reverse search between ? and /

Basic Regular Expressions

The Beginning(^) and End ($) of a line

    /str$	search line end with str 
    /^str	search line begin with str 

Match Any Single Character(.)

    etc.
    /a.p	apple	adplus result will show like left words

Regular Expression Summary

    x	The literal character x
    ^	Start of line
    $	End of line
    .	A single character
    character	Turns off the special meaning of many characters, gives special meaning to a few others

4. Text Blocks and Multiple Files

Cut,Paste and Copy

    Use p (put) command
    dd -> p  You can delete a line ,then put into your cursor in what line you want
    d$ -> p	 You can delete from cursor to end of line , then put into where you want to put under your cursor
    d2w -> p delete 2 words then put to another place

Character Twiddling

    etc.
    if you want to type 'the' then you type 'teh' you can put your cursor on 'e' then
    xp	x->delete the character p-> paste character after the cursor

More on “Putting”

    p	places the text after the cursor
    P	places the text before the cursor
    3p	paste 3 times

Marks

    :marks Display all marks
    ma	make a mark named a
    mb	make a mark named b
    `a	jump to mark a
    `b	jump to mark b
    d'a	from cursor delete mark a content

Yanking

    yank (Most other editors call copy operation)
    yy yank a line then use p to paste
    3y	yank 3 lines

Which File Am I On?

    :args

Edit multi files

    you can use vim to open a.txt b.txt
    vim a.txt b.txt
    then
    :next	Next file
    :previous	Previous file
    :wnext	Write then go to next file
    :wprevious	Write then go to previous file
    :rewind		Edit first file
    :last	Edit last file
    ctrl+^(6)	switch to alternate file (You can use :next to jump other file then two files are alternate)

5.Windows

Opening a New Window

    :split	split to up/down two window
    ctrl+w w	move cursor to alternate window
    ctrl+w j	move cursor to down window
    ctrl+w k	move cursor to up window

Opening Another Window with Another File

    :split file	etc. :split YQRealLink.m
    :split +/str file	search str and open file	etc. :split +/define YQRealLink.m	search define in YQRealLink.m
    :20 split file	Open file set window size 20 rows

Split Summary

    :count split +command file
    count	The size of window
    +command	An initial command
    file	The name of file to edit(You can use autocompleted to fix filename)

The :new Command

    open a new window without content of file(This is a new file)

Changing Window Size

    ctrl-w+		etc. ctrl+w 10 + increase 10 rows to current window
    ctrl-w-		etc. ctrl+w 20 - decrease 20 rows to current window
    .	Repeat last command	
    ctrl-w=		etc. ctrl+w =	make all window size equal
    (count)ctrl-w_		makes current window (count) lines high

Buffers

    :buffers	show current buffer list
    stats explain
    - Inactive
    h Hidden
    % Current
    # Alternate buffer
    + File has been modified

Selecting a Buffer

    :buffer number	etc. :buffer 2	Select second buffer file
    or
    :buffer file	etc. :buffer file2.txt
    :sbuffer number(or file)	splits the window and starts editing the buffer
    Annotations: P51	Other buffer-related commands

6.Basic Visual Mode

Entering Visual Mode(v)

    :help v_d	describes what the d command does in visual mode
    v	visual block
    V	visual line
    You can use <Esc> to leave all mode ### Editing with Visual Mode
    d	delete highlighted text
    D	delete highlighted line
    y	places the highlighted text into a register
    Y	places the highlighted line into a register
    c	change text
    C	change line
    J	join all the highlighted lines into one long line
    If you want to join the lines without adding spaces,use the
    gJ command

Indent

    <	shiftwidth(shift tab)
    >	width(tab)
    =	indents the text
    ctrl ]	jump to definition of the function highlighted
    K	man highlighted text ### Visual Block Mode
    :help v_b_r	get help on the visual block r command
    ctrl-v	Enter visual block mode
    then
    I	insert after blocked text
    and you can use hjkl to select block
    c	delete string then insert on each line in the block
    C	delete the character from cursor to end of line then insert new text to block
    $	extend block to the end of line
    A	add text to the end of each line #### Replacing
    r	applies all the selected characters with a single character #### Shifting
    >	right tab
    <	left tab	
    one
    two
    three

7. Commands for Programmers

Syntax Coloring

    :syntax on #### Syntax Coloring Problems
    :set background?	get current background setting
    :set background=light	set background to light
    :set background=dark	set background to dark
    :set filetype=c(Or java )	tell Vim types of syntax highlighting to use
    :set shiftwidth=4	change the size of the shift width ### Automatic Indentation
    set: cindent
    set: smartindent
    set: autoindent

    to set all open c,cpp file use cindent to .vimrc file
    :filetype on
    :autocmd FileType c,cpp :set cindent


    = using Vim's internal formatting program

Locating Items in a Program

    [ctrl-i,]ctrl-i		

8. Basic Abbreviations,Keyboard Mapping,and Initialization Files

Abbreviations

    :abbreviate ad advertisement	when you type ad<space> or <tab> then will appear advertisement

    see all abbreviate use
    :abbreviate

    see you vimrc file
    :version

    write all your settings to a file
    :mkvimrc file

    My .vimrc is locate on ~/.vimrc

9.Basic Command-Mode Commands

    :	Enter command line mode 
    :p(rint)	Just print current line text
    :1,5 print	Print 1-5 lines content
    :5 print	Print fifth line text
    :1,$ print	Print all content
    ma	mark selected content to a
    :'a print	print a mark content
    :shell	Enter shell mode (As Terminal) type exit to back to vim

10.Basic GUI Usage

11.Dealling with Text Files

Automatic Text Wrapping

Text Formatting Command

    :range center width 	etc.	:1,5 center 30	to center a range of lines(width default is 80)
    :range right width
    :range left margin

The formatoptions Option

    :set formatoptions=cq
    c	Automatically wrap comment. Insert the comment leader automatically.
    q	Allow gq to format comments. #### File Formats
    :set fileformats=unix,dos	set file fromat to unix,dos
    :set fileformat?	see current file format
    :set fileformat=unix	set file format to unix #### Changing How the Last Line Ends
    :set endofline	Last line ends in <EOL>
    :set noendofline	Last line does not have an <EOL> #### Troff-Related Movement
    )	moves forward one sentence
    (	backward sentence	
    }	moves forward one paragraph (most as one blank line as division)
    {	backward paragraph ### Section Moving
    [[	move a section backward
    ]]	move a section forward

12.Automatic Completion

    ctrl-p	backward search word to complete
    Many options you can customize in advanced chapter
    ctrl-n	forward search word to complete ### Customization of Completion
    :set ignorecase		tells the editor to tray all words regardless of case ### Specifying a Dictionary
    :set dictionary=file,file,...
    etc.
    single dictionary
    :set dictionary=/Users/yaqinking/Documents/dict/anime_dic.txt
    multi dictionary
    :set dictionary=/usr/dict/words,/usr/doc/words
    !You can specify your input method dict to you vim dict to auto complete your type exp.

Line mode

    ctrl-x ctrl-l	line completion ### Adjusting the screen
    ctrl-x ctrl-y	scroll up one line
    ctrl-x ctrl-e	scroll down one line

14.File Recovery and Command-Line Arguments

    :set backup	open backup
    :set backupext=string	add extension type to backup file
    etc.
    :set backupext=.bak
    It will be backup to file.txt.bak

    :set nobackup	close backup
    :set backupdir=~/tmp/

    $vim -r file
    recovery file from swap file
    :swapname	show what swap file your current use
    If you don't want to use swap file (Default swap file is on :set swapfile)
    :set noswapfile

Controlling When the Swap File Is Writen

    :set updatetime=23000	23seconds(milliseconds)
    :set updatecount=400	the number of character 400 you typed it will be writen to swap file

15.Miscellaneous Commands

    ga(or :ascii)	prints the number of the chracter under the cursor.
    5gg(or 5G)	go to 5 line
    30gg(or 30G)	go to 30 line
    ctrl-l		Screen Redraw
    z10	resize current window to 10 lines
    :intro		View introductory flash screen

16.Cookbook

Chracter Twiddling

    teh->the	xp ### Replacing One Word with Another Using One Command
    If you want to replace Oreimou to Oreimou Radio,
    If Oreimou line are 100-110,

    :100,110s/Oreimou/Oreimou Radio/g

    :100,110	100 line to 110 line
    s	:substitute
    Oreimou		old word
    Oreimou Radio	new word
    g	global change

    If you want to change all use	1,$
    1	first line
    $	last line

Interactively Replacing One Word With Another

    1.	/Radio<Enter>	Search
    2.	cw<Esc>	change word
    3.	n	next word Radio
    4.	cw<Esc>	change word
    5.	repeat 3-4

Moving Text

    If you want to moving some line
    1.	V	select line
    2.	ma	mark as a
    3.	move cursor to where you want put line
    4.	d'a	delete marked a content(Put it to pasteboard)
    5.	p	paste to cursor current line

Moving paragraph

    1.	V	select start line
    2.	ma	mark as a
    3.	}	move to paragraph end
    4.	mb	mark as b
    5.	move cursor to where you want put line
    6.	:'a,'b move .		move

Copying a Block of Text from One File to Another

    0.	:split file	split window
    1.	V	select line (etc. select 2 lines) then
    2.	2y	yank 2lines text
    3.	ctrl-w-w(or ctrl-w-p)	switch to another window
    4.	p	paste

    or

    1.	ma	mark as a
    2.	y'a	yank 'a
    3.	ctrl-w-w	switch to another window
    4.	p	paste ### Drawing Comment Boxes
    put into .vimrc
    :ab #b /****************************************
    :ab #e <Space>****************************************/
    When you want to type #b just type #bb then delete second b it will not expanded.

    Another better option use external program like boxes(see http://www.vim.org)

Oops, I Left the File Write-Protected

    :w filename	save to another file

17.Topics Not Covered

File Encoding

    :set fe=encoding	set file encoding
    :set fe=twiwan(or prc)	traditional Chinese (or Simplified Chinese)
    :set fileencoding=encoding	long format
    :set fe=japan		Japanese Ecoding

The Details

18.Complete Basic Editing

    e	move to end of a word
    ge	backward move to end of a word
    3ge	3 backward move to endo af a word

    ^	move to first non-black character on the line
    0	move to beginning of the line

Repeating Single-Chracter Searches

    fx	searches fo the first x (to repeat search use ;	 to reverse use , )

Moving Lines up and down

    -	moves up to the first non-blank character line
    =	moves down ### Jumping Around
    <count>-	move <count> up line
    <count>G	go to <count> line

    ctrl-o	Jump to previous location
    <TAB>	Jump to next location ### Where Am I,in Detail
    ctrl-g	Display summary information at the bottom of the screen	
    1ctrl-g	add path to show
    2ctrl-g	add buffer to show
    gctrl-g	another tpe of status information

Scrolling Up

    ctrl-u	scrolls up half a screen
    :set scroll=10	set ctrl-u commands scrolls up number
    2ctrl-u	scrolls up 2 line
    5ctrl-y	scrolls up 5 line
    ctrl-b	scrolls up an entire screen

Scrolling Down

    ctrl-d	move down The amount is controlled by the 'scroll' option

    ctrl-e	move down one line

    ctrl-f	move down one screen of data (also <PageDown> or <S-Down> Shift-ArrowDown)

Define How Much to Scroll

    :set scrolljump=5 ### Delete to the End of the Line
    <count>D	delete line (or <count> amount lines)
    C	change line text current cursor to end of line then enter INSERT mode

    Mmmm, basic command has d and d two forms, and you can add <count> to dozens do.
    Usally,d -> delete current word or character D -> delete cursor to end of line
    3d -> delete 3 lines

    a	append at begin line
    A	append at end of line
    gi	insert at begin line (same as a)

Arithmetic

    ctrl-a	increase number
    ctrl-x	decrease number

Jpining Lines with Spaces

    J	join the current line with the next one
    gJ	join line without spaces
    3gJ	join 3 line without spaces

Replace Mode

    r	replace a chracter
    R	enter replace mode

Chaning Case

    <count>~	change a chracter case
    <count>g~	change current line and next line text case
    <count>g~~	change line case

    <count>gUU	change entire line case

19.Advanced Searching Using Regular Expressions

Searching Options

Case Sensitivity

    :set ignorecase		turn on ignorecase
    :set noignorecase	turn off	
    :set smartcase		WORD will be matches WORD

Instant Word Searches

    *	search under cursor word
    g*	go to searched words under cursor word
    g#	reverse

Search Offsets

    /nisekoi/2	go to searched nisekoi next 2 line position
    /nisekoi/b2(or s2 start)	moves the cursor to the beginning of the match
    /nisekoi/e	moves the cursor onto the last character of the match