Linux下VI编辑器的使用
VI包含插入模式、命令模式、可视模式
插入模式与记事本类似但具有文件识别功能可根据文件的后缀名使用相应的排版模式。
命令模式可进行字符串的查找、替换等操作,快捷键比较简单好记,可自定义快捷键,可将一些复杂的命令定义为一个键盘操作,具体按个人习惯,需要熟读.vim脚本
可视模式可进行文本块的操作,如剪切、复制、删除等,所有操作均可用键盘操作,不用鼠标
VI具有很高的配置性,熟悉后,可根据自己的编辑习惯与编辑要求定制自己的编辑器,具体的配置脚本我已传至http://sites.google.com/site/ideaofanima/
今天先写到这里了,学习一个编辑器需要多用多练,我也是一个Linux初学者。
包含插件
c.vim cppcomplete.vim taglist.vim winfileexplorer.vim winmanager.vim
wintagexplorer.vim
网上有现成的.vim文件,阅读代码使用ctags -R *.[ch]生成tags文件
使用indent命令可对代码进行排版具体使用看man文档
我的VI配置文件
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Import external source
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
source /usr/share/vim/vim71/mswin.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" General
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible " get out of horrible vi-compatible mode
filetype on " detect the type of file
set history=100 " How many lines of history to remember
set ffs=dos,unix,mac " support all three, in this order
filetype plugin indent on " load filetype plugins
set viminfo+=! " make sure it can save viminfo
set isk+=_,$,@,%,#,- " none of these should be word dividers, so make them not be
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Theme/Colors
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
相关文档:
初学Linux,做学习笔记之用。也请高手们多多指教!
Linux命令组成:shell内部命令+shell外部命令
shell内部命令:最简单最常用的命令,在shell启动时进入内存
shell外部命令:独立的可执行程序。是一些使用工具程序
Linux命令的格式:
命令体 [选项] [命令的参数,命令的对象]&n ......
1. 下载 ACE 5.7.
从 http://download.dre.vanderbilt.edu/ 下载 ACE+TAO+CIAO-5.7.tar.gz包。
2. 解压
将压缩包copy到linux目录/data/ACE里,然后解压, tar -zxvf ACE+TAO+CIAO-5.7.tar.gz。
解压后的目录是 /data/ACE_wrappers.
3. 配置config.h和platform_macros.GNU。
官方文档上是这么写的:
......
proftp在linux下安装配置指南
一、安装环境
◆ Red Hat AS 5.0
二、安装包准备
◆ proftpd-1.3.2.tar.gz
三、新建目录
◆ /usr/app/
四、安装步骤
◆ 用户:root
◆ 将压缩文件:proftpd-1.3.2.tar.gz拷贝到/usr/app/下面
◆ 解压缩文件
#cd /usr/app/
#tar –vzxf proftpd-1.3.2.tar.gz
......
一.预防
1.sXid http://os.51cto.com/art/200907/134874.htm
下载地址:http://freshmeat.net/projects/sxid/
2. LSAT
下载地址:http://usat.sourceforge.net/
3.portsentry
下载地址:http://sourceforge.net/projects/sentrytools/
4. fail2ban
http://www.fail2ban.org/
5.lids
http://www.lids.org/
二 ......
http://blog.csdn.net/manio/archive/2006/10/13/1333202.aspx
/*
server
*/
#include
<
stdio.h
>
#include
<
sys
/
types.h
>
#include
<
netinet
/
in
.h
>
#include
<
sys
/
socket.h
>
#include
<
netdb.h
> ......