关于数字3

2015-01-09  本文已影响48人  变与不变

因为高中时的学号是3号,现在还有不少高中的同学叫我的绰号3号。不过话说回来,对3这个数字还是挺喜欢的。近来看各种不同的书,有时候也学点东西,各式各样的内容太多,就想尝试着用3这个数字来做减法。

比如现在在看vim的用户手册,vim超级强大,各种命令不知道多少,肯定是记不全,也没有必要;可是如果走马观花,什么命令也不记住,真要用的时候每个命令都要查手册,那个效率也就太低,所以想把每个主要的操作点的命令记着3个,这样也就差不多了。

The first steps in Vim

  1. "i" "a" "o" insert the text;
  2. "h" "j" "k" "l" move the cursor;
  3. "u" "CTRL-R" undo the editor command

For funny: as Vim can interactive with the shell command, we can get the output from the shell command as our document input.

Try to type :read !cal:

 一月 2015

日 一 二 三 四 五 六
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Then,try to list my home directory by typing :read !ls -l .

total 80
-rw-r--r-- 1 gaochunlan staff 7393 1 7 22:28 1.html
-rw-r--r-- 1 gaochunlan staff 7405 1 7 22:52 2.html
-rw-r--r-- 1 gaochunlan staff 7446 1 7 23:00 3.html
drwx------ 4 gaochunlan staff 136 1 28 2014 Applications
drwx------+ 22 gaochunlan staff 748 1 7 13:59 Desktop
drwx------+ 15 gaochunlan staff 510 1 3 19:48 Documents
drwx------+ 30 gaochunlan staff 1020 1 7 23:22 Downloads
drwx------@ 64 gaochunlan staff 2176 10 24 13:25 Library
drwx------+ 8 gaochunlan staff 272 12 16 08:28 Movies
drwx------+ 5 gaochunlan staff 170 1 29 2014 Music
drwx------+ 6 gaochunlan staff 204 12 28 20:27 Pictures
drwxr-xr-x+ 4 gaochunlan staff 136 1 26 2013 Public
drwxr-xr-x 4 gaochunlan staff 136 10 18 13:15 VirtualBox VMs
-rw-r--r-- 1 gaochunlan staff 12 1 9 14:17 ZenofPython.py
-rw------- 1 gaochunlan staff 2993 3 29 2014 mbox
drwxr-xr-x 14 gaochunlan staff 476 1 7 22:03 microblog
-rwxr-xr-x 1 gaochunlan staff 2248 1 7 22:02 pagination.py
-rw-r--r-- 1 gaochunlan staff 2279 1 9 15:26 python.md
drwxr-xr-x 5 root staff 170 8 24 16:18 tmp
drwxr-xr-x@ 13 gaochunlan staff 442 10 9 10:07 快盘
drwxr-xr-x@ 8 gaochunlan staff 272 12 28 20:15 百度云同步盘

That's all.

上一篇 下一篇

猜你喜欢

热点阅读