* .vimrc example
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" set indent for c and cpp
set cindent
set shiftwidth=4
" set the space number of a tab
set tabstop=4
" make tab convert to space.
set expandtab
" enable syntax highlight
syntax on
" set the color scheme to 'sand'
colo sand
" increament search
set incsearch
" highlight search by manual
set hls
set hlsearch
nohls
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
" showing matches when type ')', ']', '}'
set showmatch
set matchtime=1
" key maping
" keys in insert/command mode
"map! ^[[H <Home>
"To the first non-blank character of the line.
map! ^[[H ^[^i
map ^[[H ^
"map! ^[OH <Home>
map! <Esc>[F <End>
map <Esc>[F <End>
"map! <Esc>OF <End>
map! <Esc>[3~ <Delete>
"map! <Esc>OE <Space>
" set <Delete> to delete a char under the cursor.
imap ^? <Del>
* 更换color scheme
在/usr/local/share/vim/vim62/colors下,vim预设很多schemes。
创建~/.vim/colors目录,
放入mycolor.vim,
在.vimrc中加入 colo mycolor
* 更换syntax file
在/usr/local/share/vim/vim62/syntax下,vim预设很多schemes。
创建~/.vim/syntax目录,
放入mysyntax.vim,
在.vimrc中加入 set syntax=mysyntax
常用命令:
auto complete
<C-p> <C-n>
ma: Make a bookmark named a at the current cursor position.
A bookmark can be named any lowercase letter.
You can't see the bookmark, but it's there!
`a: Go to bookmark a. Important: that's a backtick, not a single quote.
The backtick is located to the left of the 1 on most keyboards.
`.: Go to the line that you last edited. This is very useful!
If you need to scroll through the file to look something up,
you can go back to where you were without bookmarking it by using the `. command.
* Read the string under the cursor and go to the next place it appears.
(For instance, if your cursor was somewhere on the word "bob," the cursor
would move to the next occurance of "bob" in your file.)
# Same as above, except it moves the cursor to the previous occurance.
分享到:
相关推荐
vim tips 汇总,可以看到有很技巧
资源来自pypi官网。 资源全名:vimtips-0.2.2.tar.gz
学习vim: http://www.vim.org/ O cial site http://chronos.cs.msu.su/vim/newsgroup.html Newsgroup and Usenet http://groups.yahoo.com/group/vim Speci c newsgroup http://u.webring.com/hub?ring=vim VIM ...
vim技巧 vim 技巧
vim-tips:从社区获取漂亮的Vim技巧:)
vimtips:Vim提示
alfred2-vimtips-workflow Alfred 2 工作流从 vim-tips.com 获取随机 vim 提示 ##Requirement Alfred2 已安装。 ##Install 下载工作流并将其添加到 Alfred。 ##用法 键入“vimtips s”以获取一个随机的 vim ...
Best+of+VIM+Tips(译注).pdf Best+of+VIM+Tips(译注).pdf
vim使用进阶 使用vim提高你的文本编辑效率 目录 1. 目录 ........................................................................ 1 2. 序言 ..................................................................
最低分的资源 im is a fast and efficient text editor that will make you a ... This beloved bestseller has been revised and updated to Vim 7.4 and includes three brand-new tips and five fully revised tips.
实用的Vim提示显示在您的新标签页上。 每次打开新选项卡时,都会学习新的vim命令。 支持语言:English
语言:English新标签页上显示了实用的Vim提示。每次打开新选项卡时,都将学习新的vim命令。
im is a fast and efficient text editor that will make you a faster and ... This beloved bestseller has been revised and updated to Vim 7.4 and includes three brand-new tips and five fully revised tips.
VIM GREAT TIPS HELPFUL
所有技巧都是从Vim Tips Wiki下载的,经过解析和格式化以使其看起来和工作方式类似于Vim原生帮助文件。 您可以使用:helpgrep搜索提示。 使用Ctrl-]跳转标签。 所有笔尖均以vtw-N格式编号和标记,其中N是笔尖数。 ...
vim_tips.txt VIM教程与学习资料汇总(2010-02-19更新) 善用佳软.htm Vim用户手册中文版72.pdf 史上最强的Vim 配置文件(修正版) - redguardtoo的专栏 - CSDN博客.htm 普通人的编辑利器——Vim_善用佳软_新浪...
gVim使用技巧-中文翻译 英文原文: http://www.rayninfo.co.uk/vimtips.html
vim实用手册,介绍使用 vim 作为开发编辑器时的一些技巧与常用插件,对于vimscript与配置文件也有讲解。
VIM提示 插件管理器 -轻松管理您的运行时runtimepath 。 plug-极简主义的Vim插件管理器。 -Vim的插件管理器。 下一代Vim软件包管理器。 (停止发展) 黑暗的Vim / Neovim插件管理器。 版本控制 在VIM中使用git...