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操作系统下system () 函数详解
(执行shell 命令)
相关函数
fork,execve,waitpid,popen
表头文件
#include<stdlib.h>
定义函数
int system(const char * string);
函数说明
system()会调用fork()产生子进程,由子进程来调用/bin/sh-c string来执行参数string ......
目录结构如下:
|
|---- YourProject
| |-------- WebRoot
| | |---- WEB ......
作者:lch
matlab
for
Linux
安装
(
安装方法文档是从网上查资料+
实践得到的 )
一.
安装
1.
首先需要建立安装目录
[wzh@localhost ~]$ su
[root@localhost ~]$ mkdir /usr/matlab
2.
然后加载光盘映像
[root@localhost wzh]# mount -o loop -t iso9660
/mnt/hda7 ......
Linux 进程间通信学习
1.Linux 间进程通信的分类
1. 管道通信(pipe)和命 ......
系统:fedora core 5
服务器端程序:
/* server */
#include <stdio.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#inclu ......