vim
tab
python可能4个空格缩进,ruby或者别的一些规定2个空格
下面是关于空格我的~/.vimrc.after,默认tab是4个空格(pythoner),如果写coffee的
话默认两个
set tabstop=4 " A four-space tab indent width is the prefered coding style
" for Python (and everything else!), although of course some
" disagree. This page generally assumes you want 4-space
" indents.
set shiftwidth=4 " This allows you to use the < and > keys from VIM's visual
" (marking) mode to block indent/unindent regions
set smarttab " Use the "shiftwidth" setting for inserting <TAB>s instead
" of the "tabstop" setting, when at the beginning of a
" line. This may be redundant for most people, but some
" poeple like to keep their tabstop=8 for compatability
" when loading files, but setting shiftwidth=4 for nicer
" coding style.
set expandtab " expandtab et Insert spaces instead of <TAB>
" character when the <TAB> key is pressed. This is also
" the prefered method of Python coding, since Python is
" especially sensitive to problems with indenting which can
" occur when people load files in different editors with
" different tab settings, and also cutting and pasting
" between applications (ie email/news for example) can
" result in problems. It is safer and more portable to
" use spaces for indenting.
set softtabstop=4 " softtabstop=4 sts People like using real tab
" character instead of spaces because it makes it easier
" when pressing BACKSPACE or DELETE, since if the indent
" is using spaces it will take 4 keystrokes to delete
" the indent. Using this setting, however, makes VIM see
" multiple space characters as tabstops, and so <BS> does
" the right thing and will delete four spaces (assuming
" 4 is your setting).
set autoindent " autoindent ai Very painful to live without this
" (especially with Python)! It means that when you press
" RETURN and a new line is created, the indent of the new
" line will match that of the previous line.
autocmd FileType coffee setlocal tabstop=2 shiftwidth=2 softtabstop=2可视化
打开tab,来回切换
tab映射,让你的vim变的更加方便
打开tab list
迅速找到并打开当前vim文件夹下的文件
迅速打开# 路径的文件
滚屏
查找移动光标
在行上添加或者减少缩进
一些之前少用的编辑小命令
移动当前行
合并两行
快速跳转单词
记录位置,迅速跳转
注释
粘贴模式
打开文件时(:tabedit 或者ls等)查看目录下文件
snippets
常用的片段
html常用
Elements
jquery
python
单词大小写转化
vim 编译coffeescript
~/.vimrc.after
替换
recording模式
ctags快速跳转到函数定义
Last updated