background preloader

Vim

Facebook Twitter

Vim 常用快捷键 二 - wangkangluo1. CentOS6.4之文本编辑器Vi/Vim - 王乾De技术博客 - 51CTO技术博客. Vim/Vi 简介 Vim/Vi是一个功能强大的全屏幕文本编辑器,是Linux/UNIX上最常用的文本编辑器,它的作用是建立、编辑、显示文本文件。

CentOS6.4之文本编辑器Vi/Vim - 王乾De技术博客 - 51CTO技术博客

Vim/Vi 没有菜单,只有命令。 插入命令 定位命令 删除命令 复制和剪切命令 替换和取消命令 搜索和替换命令 :%s/IRCU/ircu/g :9127,9131s/ircu/IRCU/g (不询问替换) :9127,9131s/ircu/IRCU/c (询问替换) 保存和退出命令 应用实例 ? ? ? 前两者结合使用 ? 范例: : map ^P I#<ESC> : map ^B 0x ? ^尖角号表示行首 :n1,n2s/^#//g 去掉行首注释 :n1,n2s/#//g 去掉所选行全部#号注释. 我的vim配置及说明【k-vim】 - wklken的笔记. 这是倒数第二篇文章了,新博客即将完成 折腾整理了下,自己的vim配置,托管github,支持一键部署 有插件说明,截图及动态gif展示 点击直达 以下为README.md,供参考,希望有帮助 vim插件分类及快捷键 给人一条Vim 命令,他能折腾一晚上;告诉他怎么自定义Vim 命令,他能捣腾一辈子生命不息,折腾不止 写在前面 用vim,将近两年,用原生的用了很长一段时间,后来也折腾过几次,用过网上流行的配置,但总感觉很多地方不能满足需求.

我的vim配置及说明【k-vim】 - wklken的笔记

Avoid the escape key. This tip discusses how to exit from insert mode without needing to press Esc.

Avoid the escape key

The Vi editor was originally written on an ADM-3A terminal, which had the Escape key positioned where the Tab key occurs on most modern keyboards. Many touch typists appreciate the fact that they can leave their hands on the keyboard home row while using Vim, so there are several ideas for avoiding the Esc key at its current location (pressing Esc generally requires stretching to the top of the keyboard). No utility programs or operating system tweaks are required for this tip. For other suggestions involving mapping keys with the operating system or utilities, see Map caps lock to escape in XWindows (for Unix-based systems), or Map caps lock to escape in Windows (for Windows).

Some of the suggestions involve more than avoiding escape; topics also discussed include using the CapsLock key for Ctrl, and avoiding irritations from accidental use of CapsLock. Avoiding the Esc key Edit Mappings :imap jj <Esc> Edit. Vim 自动上级目录查找递归加载ctags和cscope. VIM 好用 Plugin 介紹. Ubuntu利用Git和Vundle管理vim的配置和插件. Vim常用操作动画演示 - 李恺的明天. Vaw select a word viw select inner word va{ select a block 其中花括号{ 可以替换成 '、"、[、]、(、)等 vi{ select inner block 其中花括号{ 可以替换成 '、"、[、]、(、)等 vab select a block 只作用于()内 vib select inner block 只作用于()内 vaB select a block 只作用于{}内 viB select inner block 只作用于{}内 vat select a tag block vit select inner tag daw delete a word diw delete inner word dgn delete next search result dab delete a block ( dib delete inner block ( daB delete a block { diB delete inner block { dVG delete to last line from current line [( go to previous 其中括号(可替换成{ [{ go to previous 如上 surround.vim surround.vim在normal mode时主要就下面三种操作 ysiw' 添加单引号 其中引号'可替换为任何标签比如常用的"、(、[等 cs'" 修改单引号为双引号 其中引号'可替换为任何标签比如常用的"、(、[等 ds" 删除双引号 其中引号"可替换为任何标签比如常用的'、(、[等 surround.vim html标签操作演示 cst\<em\> 修改标签为em dst 删除标签 surround.vim在insert mode和visual mode下 insert mode下surround.vim提供了<C+S>快捷键用于插入标签,终端下是<C+S>g visual mode下按大写S对选中内容插入标签 最后你可以fork我的vim配置.

Vim常用操作动画演示 - 李恺的明天

VIM设置代码折叠 - eros的linux平台技术资料库. 简明 Vim 练级攻略. Vim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的。

简明 Vim 练级攻略

下面的文章翻译自《Learn Vim Progressively》,我觉得这是给新手最好的VIM的升级教程了,没有列举所有的命令,只是列举了那些最有用的命令。 非常不错。 ——————————正文开始—————————— 你想以最快的速度学习人类史上最好的文本编辑器VIM吗? 你先得懂得如何在VIM幸存下来,然后一点一点地学习各种戏法。 Vim the Six Billion Dollar editor Better, Stronger, Faster. The ultimate Vim configuration - vimrc. Vim7.2中文乱码解决方法 - YY哥. 这个问题困扰我几天了。

vim7.2中文乱码解决方法 - YY哥

网上查了许久,由于说得不到位,一直没解决,今天又折腾了一下,终于搞定。 1、下载 可到 2、安装 编译之前,先要configure --help查看一下配置选项, --enable-multibyte Include multibyte editing support. 支持多字节编码,这一步很重要。 然后,[root@localhost wbl]# vim --version | grep multi-mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte+multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl +postscript查看配置是否起作用。 3、配置 编辑~/.vimrc文件,加上如下几行: set fileencodings=gb2312,gb18030,utf-8set termencoding=utf-8set encoding=prc 即可搞定。 附(Vim编码详细介绍): 拼装的艺术:vim之IDE进化实录 - a byte of free. HTML版本停止更新,最新版仅提供PDF( 更新时间2012-9-5,最新版本0.3,更新记录: 完善“一键编译及运行”部分,增加如何查看链接错误。

拼装的艺术:vim之IDE进化实录 - a byte of free

KenThompson告诉我们——“一个程序只实现一个功能,且做到极致,多个程序协作实现复杂任务”——这是unix。 是嘀,这种哲学在linux上随处可见,比如,vim与她的插件们(白雪公主与她的小矮人们 -_-$)。 下面开始我们的vim之IDE进化之旅吧。 VIM设置代码折叠 - eros的linux平台技术资料库.