`
wellee
  • 浏览: 100986 次
  • 性别: Icon_minigender_1
  • 来自: 温州
社区版块
存档分类
最新评论

vim 常用记录

    博客分类:
  • vim
阅读更多

 

神器VIM 常用技巧

--welleelin


 

参考资料

 

 

国内

http://www.vimer.cn/

http://lilydjwg.is-programmer.com/

http://nootn.com/blog/

http://easwy.com/blog/

国外

Using Vim as a Complete Ruby on Rail s IDE

http://akitaonrails.com/

 

 

Ubuntu 10.4 编译 VIM7.3

http://easwy.com/blog/archives/compile-vim73-on-ubuntu/

 

How to solve compile vim with ruby enabled

http://stackoverflow.com/questions/3794895/installing-vim-with-ruby-support-ruby

 

This should help (I got Ubuntu):

  1. sudo apt-get install mercurial
  2. hg clone https://vim.googlecode.com/hg/  vim
  3. cd vim
  4. ./configure --enable-rubyinterp
  5. make
  6. sudo make install

To test if things look fancy:

  1. vim --version | grep ruby

Should return something like:

-python3 +quickfix +reltime -rightleft +ruby +scrollbind +signs +smartindent

Ruby should have plus now. Another trick to test it - enter vim and hit :ruby 1 . Should not fail.

 

configure

./configure --enable-gui=gnome2 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-cscope --enable-multibyte --enable-xim --enable-fontset --with-features=huge --disable-netbeans --prefix=/usr --enable-python3interp

 

 

 

Linux 卸载vim

用make install安装,对吧
那就用make uninstall提换掉make install。

cd 源代码目录
make clean
./configure
make uninstall

 

 

 

vimrc参考

https://github.com/akitaonrails/vimfiles/   <-- 俺正在用基于介个银滴vim配置的vim

 

pathogen.vim 要生成帮助文档的话,就在vim下输入:call pathogen#helptags()

https://github.com/tpope/vim-pathogen

 

http://amix.dk/vim/vimrc.html

http://blog.csdn.net/redguardtoo/archive/2006/09/03/1172136.aspx

http://www.2maomao.com/blog/wp-content/uploads/vim_tips.txt

 

 

windows 编译 vim

http://www.vimer.cn/2010/04/windows%E4%B8%8B%E7%BC%96%E8%AF%91vimgvim%E5%B9%B6%E5%8A%A0%E5%85%A5python2-6%E5%92%8C3-1%E6%94%AF%E6%8C%81.html

 

 

windows 安装 Command-T

http://chrislaco.com/blog/gettimg-command-t-working-on-windows/

http://rfbrazier.posterous.com/installing-the-command-t-vim-plugin-on-window

 

 

更新帮助文档命令

更新帮助文件的tags,如:

:helptags d:\soft\Vim\vimfiles\doc\


Vim chinese version help

http://sourceforge.net/projects/vimcdoc/

 

 

ci[ 删除一对 [] 中的所有字符并进入插入模式 ci( 删除一对 () 中的所有字符并进入插入模式 ci< 删除一对 <> 中的所有字符并进入插入模式 ci{ 删除一对 {} 中的所有字符并进入插入模式 cit 删除一对 HTML/XML 的标签内部的所有字符并进入插入模式 ci” ci’ ci` 删除一对引号字符 (” 或 ‘ 或 `) 中所有字符并进入插入模式

 

Here are some basic formatting commands:

=  is an operator (by default, it formats/indents text).
i{  is a text object that specifies the surrounding code block.
vi{  visually selects the inner code block around the cursor.
=i{  formats the code block.
=2i{  formats the current block and the block around it.

You can format the entire buffer with gg=G .

 

 

内置快捷键参考

http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html

分享到:
评论

相关推荐

    vim 常用快捷键记录

    vim 常用快捷键 光标定位 复制粘贴 查找 编辑状态常用命令

    vim 技巧和插件

    第一个部分是vim常用命令快捷方式 第二个是Tlist插件的安装和使用实例。 第三个是ctags的安装和使用实例 第四个是自动补齐功能的实例 第五个是winmanager的安装和使用实例 第六个是cscope安装和使用实例 每个录制...

    Linux下Vim工具常用命令

    作为一个新手,我也是刚刚接触,本节将我日常使用或收集的Vim常用命令记录下来。  当然,直接在命令行上输入:vimtutor,可以学习到Vim的所有命令了。Vim很强大,很多牛人在vim里集成很多插件什么的,但这里只介绍...

    vim user manual ---vim用户手册

    j05.7j 常用选项 10 11 第00章目录 jusr 06.txtj 使用语法高亮 j06.1j 打开色彩 j06.2j 没有色彩或色彩错误? j06.3j 不同的颜色 j06.4j 有色或无色 j06.5j 彩色打印 j06.6j 进一步的学习 jusr 07.txtj 编辑多个文件 ...

    vim用户手册中文版7.3

    vim7.3 版本的中文使用说明,详细记录了vim常用的快捷键和常用的使用说明

    windows-use-vim-ctags-and-git

    但是有时候又需要使用到windows下面的一些应用,所以开始折腾怎么在windows下使用vim+ctags+git,下面是我整理的记录。 windows使用vim,好多人推荐安装vim工具,但是我用了一下随着windows版本的升级,比如win8,...

    Vim用户手册中文版72.pdf

    05.7 常用选项 第06章 使用语法高亮 06.1 打开色彩 06.2 没有色彩或色彩错误? 06.3 不同的颜色 06.4 有色或无色 06.5 彩色打印 06.6 进一步的学习 第07章 编辑多个文件 07.1 编辑另一个文件 07.2 文件列表 07.3 ...

    coc-lists:coc.nvim的常用列表

    cmdhistory命令的历史记录。 colors的色彩方案。 files搜索当前cwd中的文件。 filetypes文件类型。 grep来自当前cwd的grep文本。 vim的helptags标签。 lines通过正则表达式模式搜索行。 vim位置列表中的...

    PHP调试技术手册.pdf

    3.1 基本常用IDE介绍 3.1.1 Vim 3.1.2 Zend Studio 3.1.3 Eclipse 3.1.4 NetBeans 3.2 IDE调试 3.2.1 Zend Studio + Zend Debugger 3.2.2 Eclipse (PDT) + Xdebug 3.2.3 Vim + Xdebug + DBGp 4 PHP 性能调试技术 4.1...

    SERVICES 01:发布网络YUM源、vim编辑技巧、源码编译安装

    案例1:补充应用技巧 ...将记录的历史命令条数更改为 200 条 3. 统计 /boot、/etc/pki 目录占用的空间大小 以格式“yyyy-mm-dd HH:MM” 显示系统时间 1.2 方案 date日期时间工具: 显示日期时间:date、date +”%Y-%

    php调试手册适合新手php开发者

    3.1 基本常用IDE介绍 3.1.1 Vim 3.1.2 Zend Studio 3.1.3 Eclipse 3.1.4 NetBeans 3.2 IDE调试 3.2.1 Zend Studio + Zend Debugger 3.2.2 Eclipse (PDT) + Xdebug 3.2.3 Vim + Xdebug + DBGp 4 PHP 性能调试技术 4.1...

    tools-usage:记录一些常用工具的使用情况

    介绍 该存储库用于记录一些常用工具的使用情况。

    PHP调试技术手册 1.0.rar

    3.1 基本常用IDE介绍 3.1.1 Vim 3.1.2 Zend Studio 3.1.3 Eclipse 3.1.4 NetBeans 3.2 IDE调试 3.2.1 Zend Studio Zend Debugger 3.2.2 Eclipse (PDT) Xdebug 3.2.3 Vim Xdebug DBGp 4 PHP 性能调试技术 ...

    xshell常用命令.docx

    :MR:查看历史文件记录(注意:MR大写) :sp 横向切换界面窗口 :vsp 纵向切换界面窗口 12.命令rz、sz——文件上传下载 运行命令Sudo rz,即是接收文件,xshell就会弹出文件选择对话框,选好文件之后关闭对话框,文件...

    qq_msg_handle:QQ聊天记录处理并进行词频统计

    实现效果:统计qq聊天记录,并得出该人的常用词的前10个 使用技术:STL/结巴分词 使用:将所要统计的.txt文件放在同级目录下,修改handle_qq.h文件中的两个const声明,其中dirname是用于存放结果个人聊天记录的。 注...

    Automation Windows Application with win32com

    最后的Reference(手册)则是详尽的记录了常用win32com工具的常用函数,常用工具有: - Microsoft Excel - Lotus Notes - Microsoft Outlook - 数据库与数据 ----------------- 若有手误,请查阅在线版: ...

    EmEditor Pro(文本编辑器) V15.9.0 绿色中文版

    2)历史选项卡中可以记录最近打开文件记录,同时记录最近使用的字体。这样,在换字体时,只需要执行:查看菜单,就会有几个最近使用的字体。 3)查看:可以配置其他分栏的外观,如:资源管理器、大纲、输出窗口等;...

    cmdcheatsheet:shell 中的快速备忘单工具,您可以使用关键字来达到您的编辑需要!

    vim插件的快捷键 shell常用/组合命令(很长很难记住的) 服务器的host/pwd等等,或者跳转命令 各类语言特性/快捷键/命令 等等 CSData means CheatSheetData Show ##Install git clone git@github....

    Linux 用户管理完整篇

    1.常用配置文件  用户信息文件: /etc/password  密码文件: /etc/shadow  用户组文件: /etc/group  用户组密码文件:/etc/gshadow  1.1 /etc/password文件  vim /etc/password  fubh:x:1020:1000...

    iphone4(ios7.1.2),逆向工具deb离线包

    file #常用的file命令 links #links,文本浏览器 netcat #nc ngrep #ngrep (Network grep). Nmap #nmap Screen #screen tcpdump #tcpdump 11.iFile是一款文件管理工具. 12.MobileTerminal(注意没有空格)是开源的IOS...

Global site tag (gtag.js) - Google Analytics