vim highlight whitespace at end of line and auto delete them
2024-09-26 07:06:19
install Vundle.vim
- mkdir ~/.vim/bundle
- git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- create .vimrc if it not exist. add the following setting into .vimrc
set nocompatible " be iMproved, required
filetype off " required " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin() " let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim' " All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
install vim-better-whitespace git:https://github.com/ntpeters/vim-better-whitespace
add : Plugin 'ntpeters/vim-better-whitespace' to .vimrc between vundle#begin() and vundle#end()
Plugin 'ntpeters/vim-better-whitespace'
then rum vim : :PluginInstall
if you want to auto delete whitespace if can add the following cmd into your .vimrc
autocmd BufWritePre * StripWhitespace
最新文章
- jstack工具查看系统线程问题
- 数论(poj 1401)
- 【转载】delete table 和 truncate table 的区别
- HDU3037 Saving Beans(Lucas定理+乘法逆元)
- nodejs3-事件zepto.js事件
- iOS UIKit:TableView之表格创建(1)
- (转)Spring MVC
- has-a关系——包含对象成员的类
- 委托、Lambda表达式
- Java8:使用Lambda表达式增强版Comparator排序
- abstract class与interface的区别与联系
- 使用paramiko远程执行
- 更便捷的css处理方式-postcss
- python3写入csv多一个空行
- LINQ学习之旅 C#3.0新特性(一)
- load_basemap
- jquery tmpl学习资料 --{{each}} each使用
- js 获取上传文件的字节数及内容
- hdu4059The Boss on Mars 容斥原理
- receive.denyCurrentBranch 推送错误解决
热门文章
- <;runtime>; 的 <;assemblyBinding>; 元素
- Android中Menu的基本用法
- 设置JQuery的Ajax方法同步
- 【Tika基础教程之一】Tika基础教程
- 生成简历经验总结(解析HTML字符串)
- Git学习01 --git add, git commit , git log ,git status, git reset --hard, head
- SQL中 and or优先级问题(转)
- HeadFirst设计模式读书笔记(5)-单例模式
- 【python】中文的输出,打印,文件编码问题解决方法
- INNO SETUP 获得命令行参数