自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

jerry_zjunwei的专栏

将Linux进行到底

  • 博客(17)
  • 收藏
  • 关注

原创 Ubuntu 12.04 sudo 不需要输入密码

(1)$ su -(2)#chmod 660 /etc/sudoer(3)modify it as follow:(using sudo without password)%sudo ALL=NOPASSWD: ALL(4)#chmod 440 /etc/sudoer(5) add user to sudo group$sudo ad

2012-08-20 20:49:06 1984

原创 TxtBrowser

How to install TxtBrowser?(0) Install ctagsFor windows gVimhttp://ctags.sourceforge.net/ctags58.zipupzip it then copy ctags.exe to C:\Windows\System32(1) Download taglisthttp://www.vim

2012-06-03 01:00:38 483

原创 如何安装VIM插件

How to install Vim plugin?(1) Download plugin with zip packet.Vim scripts(2) unzip plug-in packetUsually we can get 4 folderdoc: *.txt, *.cnx(usually for Chinese)ftplugin: *.vimplugi

2012-06-02 23:29:16 1043

原创 VIM fold 折叠

1. 折叠方式可以通过设置foldmethod来指定折叠方式。注意,每一种折叠方式互不兼容,如果选择其中一种就不能设定为其它方式。set foldmethod=orset fdm=manual 手工定义折叠indent 更多的缩进表示更高级别的折叠expr 用表达式来定义折叠syntax 用语法高亮来定义折叠diff 对没有更改的文本进行折叠marker

2012-06-02 16:27:59 5460

原创 VIM diff

比较两个文件的不同(1) 直接diff打开$ vimdiff  filename_1 filename_2或$ vim -d  filename_1 filename_2(2) 如果已经打开了两个文件,可以分别在每个文件中输入:diffthis如果想要取消diff比较:diffoff可以看到左右两侧的屏幕滚动是同步的。这是因为"scrollbind"

2012-06-02 13:26:10 658

原创 shell operation

CTRL-t Character on cursor and its previous character are interchanged.When cursor is at the end of line, last 2 characters of that line are interchanged. META-bCursor is moved to left by 1

2012-05-30 12:36:21 347

原创 vim Linux environment cannot add words for spell check

:set spell add the word to vim spell check with "zg"please make sure that$ mkdir -p ~/.vim/spell

2012-05-28 15:40:58 477

原创 VIM的正则表达式

把行首的标号加1%s/^[0-9]\+\./\=printf("%d\.",submatch(0)+1)/gc 从当前行开始.,$s/^[0-9]\+\./\=printf("%d\.",submatch(0)+1)/gc从当前行,每一行第一个.,$s/[0-9]\+\./\=printf("%d\.",submatch(0)+1)/c

2012-05-27 00:10:40 270

原创 mknod

为驱动创建文件节点 mknod Name { b | c } Major Minor b 块设备c 字符设备

2012-05-24 16:13:00 394

转载 号称世界上最牛的vimrc

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" User configuration"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" turn off nice effect on status bar titlelet perf

2012-03-30 14:31:31 3941

原创 Linux环境中USB转串口的应用(minicom)

看到网上很多人写的都是PL2303驱动,甚至还有人上传了原代码。自己也准备下载编译一下。突然发现jerry@ubuntu:~/tmp$ lsusbBus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1

2012-03-26 21:04:52 857

原创 sudo command 不再输入密码(/etc/sudoers)

1. 进入root用户jerry@ubuntu:~$ su -密码: 2. 修改/etc/sudoers属性root@ubuntu:~# chmod 740 /etc/sudoers3. 修改最后一行root@ubuntu:~# vim /etc/sudoers%admin ALL=(ALL) ALL改为:%admin ALL=NOPASSWD:

2012-03-26 20:18:16 516

原创 设置root密码

jerry@ubuntu:~$ sudo passwd root[sudo] password for jerry: 输入新的 UNIX 密码: 重新输入新的 UNIX 密码: passwd:已成功更新密码jerry@ubuntu:~$ su -密码: root@ubuntu:~#

2012-03-26 20:08:01 216

原创 Firefox Add-ons

It's All Text!中文支持:字符编码默认是UTF-8,改为gb2312即可。Tab Mix Plus

2012-03-23 21:25:30 264

原创 TODO Memo

List of questions or TODO 1. diff and patch    diff -upr2. git command3. diff irq command4. has table5. type of __cpuinit and __devinit   refer to ".init.text"6.EXPORT_SYMBOL7.switch

2012-03-23 17:46:08 209

原创 Vim settings(.vimrc or _vimrc)

" ---------------------------------------------------------------------------" operational settingsset nocompatible " vim defaults, not vi!syntax on " syntax on

2012-03-22 21:03:48 681

原创 Vim Common Command

----命令行-----打开新的tab:tabnew d:\$PATH\file在当前编译窗口打开文件:e d:\$PATH\file:%s/为./&\r/gc% 全文,否则为当前行s 替换 s/a/b为把a替换为b& 被替换的内容\r 回车/gc 一直替换(不是仅替换第一个),并且要用户确认。支持正则表达式为. 以为开头的两个字符s

2012-03-22 20:45:45 1467

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除