码迷,mamicode.com
首页 > 系统相关 > 详细

vim配置

时间:2015-09-11 23:23:13      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:

感觉自己现在使用vim越来越少了,记录一下它的配置和命令,万一以后还用呢。

for windows

set autoindent
set cindent
filetype plugin indent on
set nobackup
set shiftwidth=2
set tabstop=2
set nu
set guifont=consolas:h10
set encoding=utf-8
set fileencoding=utf-8
set guioptions-=T
set guioptions-=m

for linux

set nu
set nobackup
set shiftwidth=2
set tabstop=2
set autoindent
set cindent
filetype plugin indent on
set tags=tags;/

other vim command

set ff=dos
set ff=unix
set ff
set ft
set fileencoding=cp936
shift+k
ctrl+]
ctrl+t
tabnew
gt
gT
gg=G

vim配置

标签:

原文地址:http://www.cnblogs.com/qscoding/p/4802282.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!