proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« 看blog的好工具 FeedDemon.v1.10 发布 | Main | gmail 到手~  爽啊 »

June 9, 2004

VIM (VIsual editor iMproved - vim-enhanced)

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/06/09/000393.html

今天 vim6.3 发布了
vim 这些年来用的也算超级多了

我爱网络 没有 vim 可就没法爱了 呵呵

vim 是指 vi improved 是vi的增强版 是个超强大的文本编辑器
我无意比较vim和emacs 也不对vim ultraedit editplus 等各种编辑器进行比较
只是我个人用 vim ue 较多 习惯就好

用vim首先要知道怎么退出
进入vim之后 任何条件下 经过按若干次esc 然后按: 即可在左下角看到: 这是输入q 即退出
如果你改动了什么东西 或者输入了什么 它会提示你
No write since last change (use ! to override)      
这时可以 :w 进行保存 或者 :q! 不保存退出 或者 :wq 保存退出 可以指定(新)文件名:w test.txt

为什么要按"若干次"esc呢 因为可能那个时候你正处于编辑模式 或者手头正在进行某项任务的一部分

vim有6种模式 一般分成三类
normal(commom) mode :可以直接敲按键指令 比如x dd 3g shift+G ...
insert mode:就是编辑模式了 i I o O a A 多种按键指令都可以进入这种模式 然后就随便敲 随便改
ed (common-line) mode: 就是命令行了  比如刚才的 :q! :wq

强大的同时意味着必须对这些按键指令 各种命令行 好多东西都熟悉才行
你越熟你就觉得它越强
如果只知道 :wq 保存退出 就只能当成普通的记事本了 呵呵

具体的使用没必要多说了
玩linux的新手总要学习一下vim吧
vim 挺好的

随便敲些命令 具体去看帮助和各种技巧手册啥的吧
w
b
0
$
gg
(shift+)G
3gg
v d
dd
v y
yy
p
J
 ^o ...
z.
^f
^b
i
esc
:3
:set ff=unix
:3,8s/girl/woman/g
:%s/love/hate/g
:%d
:wq test.txt
:n

或者shell下就可以完成操作 比如替换等好多 类似 perl -pi -e "s/girl/woman/g" 、 awk 、sed 等

----->   http://vim.sourceforge.net/

 News Vim 6.3 is the current version 

Vim 6.3 has been released

[2004-06-08] It has been a year since version 6.2. During that year many bugs were fixed and a few new features added. The support for multiple languages has been improved. It is now possible to use translated help files. A lot of testing has been done and all reported problems have been solved. This is the most stable Vim release ever! Release notes can be found in the announcement. Or do ":help version-6.3" after installing. Happy Vimming! (Bram Moolenaar)

more news...

----->   http://vim.sourceforge.net/about.php

What Vim Can Do

Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. It's useful whether you're already using vi or using a different editor. Users of Vim 5 should consider upgrading to Vim 6, which is greatly enhanced since Vim 5.

A General Overview

What Is Vim?

Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

What Vim Is Not?

Vim isn't an editor designed to hold its users' hands. It is a tool, the use of which must be learned.

Vim isn't a word processor. Although it can display text with various forms of highlighting and formatting, it isn't there to provide WYSIWYG editing of typeset documents. (It is great for editing TeX, though.)

Vim's License

Vim is charityware. Its license is GPL-compatible, so it's distributed freely, but we ask that if you find it useful you make a donation to help children in Uganda through the ICCF. The full license text can be found in the documentation. More information about charityware on Charity-ware.org.

Vim in Six Kilobytes

If all of this information is overwhelming, try a smaller dose. We can expound the wonders of vim in just six kilobytes -- and in more languages than you can shake a stick at!

Testimonials

Don't take our word for it! Read what others have said about Vim.

----->   随便搜索两篇  熟悉了就可以看manual了

VI IMproved 说明

大家来学VIM(一个历久弥新的编辑器)

 
本blog WWW

Posted by windtear at June 9, 2004 12:59 AM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.