每日心得

2012 - 5 - 7

Vim Tips

i want to learn latex , sometime .

Vim Tips

vim is so good and so many skills to keep in mind . today i learned some commands of vim .

gg 第一行 G 最后一行 v 选中块 b 前一个word e 后一个word == 调整缩进 > 左缩进 < 右缩进 0 行首 $ 行末 <C-N> <C-P> 自动补齐 <C-Q> 选中块
SCons

scons is a good make tool , i think it is better than make , at least easier than make .

it is writen by python .

usage :

create a file named sconstruct , and type the command . samples : Program( 'main.c' ) Object( 'main.c' ) Program( 'fun1.c','fun2.c','fun3.c' ) Program( 'out.exe',[ 'fun1.c','fun2.c','fun3.c'] )
the next thing to do is execute "scons" (or "scons -c" to del the outputfile) in the command line .

install :

pip install SCons . i succeed to download the source code , but i failed to install , os i cd in the folder and install by hand which is quite faimilar with the pythoner : python setup.py install . OK!