1.vim ~/.vimrc 进入配置文件 如果不知道vimrc文件在哪,可使用 :scriptnames 来查看 set nu #行号 set tabstop=4 #一个tab为4个空格长度 set ai #设置自动缩进 syntax on #高亮 2.基本 空格键 向右移动一格 x 删除后面的字符 X 删除前一个字符 删除3个字符就是3x dd:删除一行 D 删除到行尾 caw:改写单词 c 相当于 d 变为编辑模式 J:删除换行符,使下一行并上来. nJ:连接后面的n…
文章来源:http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/ Learn Vim Progressively TL;DR: You want to teach yourself vim (the best text editor known to human kind) in the fastest way possible. This is my way of doing it. You start by l…
参考: http://www.tuicool.com/articles/ZRv6Rv 说明: 内容非原创, 主要是做了整合和梳理. 在 ubuntu14.04 & debian 8 下测试通过 安装验证&使用: # usage shortcut : # type za to open and close a fold # Vertical Split : Ctrl+w + v # Horizontal Split: Ctrl+w + s # Close current windows:…
写python代码时,希望缩进是4个空格,而不是制表符tab, 在vim中,我们只需要简单配置一下就ok了,打开~/.vimrc加上下面的几行(如果已经有了,修改一下数值就行了). set tabstop=4 set softtabstop=4 set shiftwidth=4 set expandtab 在复制代码到vim中出现恶心的自动缩进: 解决办法:在~/.vimrc中添加,下面这一行,这样在插入模式下,按F9就会进入粘贴模式,不会自动缩进了 set pastetoggle=<F9>…
转载自https://www.jetbrains.com/help/idea/using-intellij-idea-as-the-vim-editor.html This feature is only supported in the Ultimate edition. The following is only valid when IdeaVim Plugin is installed and enabled! Before you start Make sure that: You a…
" " 主要用于保留一些常用的vim配置,省得每次都另外写,效率太低. " " 2015-09-18 深圳 南山平山村 曾剑锋 " set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundl…
太好用了,括号相关的各种麻烦都一一解决,剩下的就是熟练,熟练,在熟练了.呵呵 连教程都做得这么好,先放这里,以后慢慢翻译. Auto Pairs Insert or delete brackets, parens, quotes in pair. Installation copy plugin/auto-pairs.vim to ~/.vim/plugin or if you are using pathogen: git clone git://github.com/jiangmiao/au…
http://corner.squareup.com/2013/08/fly-vim-first-class.html Engineers at Square use a wide variety of code editors: Sublime, IntelliJ, Xcode, and Vim are among the most popular. Over time, the Square Vim enthusiasts have compiled settings, shortcuts,…