Tag: vim

分享我的VIM配色和配置

没有评论

2010年03月12日 at 7:45 上午分类:Linux

molokai

” disable VI’s compatible mode..
set nocompatible

” set encoding=utf-8
set fileencodings=utf-8,ucs-bom,gbk,default,latin1

” use[......]

Read more

Popularity: 14% [?]

去掉VIM的^M

没有评论

2010年02月10日 at 1:55 上午分类:Linux | 开发技术 | 生活杂项

每次有时候打开文件的时候会出现换行符,太烦了
于是把换行符替换掉 如下:
:% s/\r//g
:%s/^M//g

^M要按[ctrl-v][ctrl-m]

Popularity: 2% [?]