vim highlight whitespace at end of line and auto delete them
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
vim highlight whitespace at end of line and auto delete them的更多相关文章
- vim - Highlight unwanted spaces
		http://vim.wikia.com/wiki/VimTip396 precondition: set hlsearch" Show all tabs:/\t" Show tr ... 
- vim配置python编程环境及YouCompleteMe的安装教程
		python号称人工智能语言,现在可算大热,这篇博客将介绍如何用vim打造一款自己专属的python编程环境. step1 由于安装YouCompleteMe需要vim8.0及以上版本,所以得安装使用 ... 
- vim+python
		#!/bin/bash # install fisa vim config echo '===============================' echo 'start to install ... 
- vim 操作
		vim -b test.bin vim 的 -b 选项是告诉 vim 打开的是一个二进制文件,不指定的话,会在后面加上 0x0a ,即一个换行符,这样若是二进制文件,则文件被改变了,后面多了一个0x0 ... 
- VIM命令集
		Command Action Notes vim file +54 open file and go to line 54 any : command can be run using + on co ... 
- Linux : Vim 使用与配置 (附 GitHub 自动化配置脚本)
		由于经常使用 vim 编辑配置文件,有时候也会进行使用vim 编写一些脚本和c/c++ 程序,所以配置一个常用的 vim 是很是必要的.这篇博文主要是记录vim使用和配置相关的一些知识点. 关于vim ... 
- vim:隆重推荐括号补全插件--auto-pairs
		太好用了,括号相关的各种麻烦都一一解决,剩下的就是熟练,熟练,在熟练了.呵呵 连教程都做得这么好,先放这里,以后慢慢翻译. Auto Pairs Insert or delete brackets, ... 
- Vim改装成一个IDE编程环境
		1 写在前面 Linux下编程一直被诟病的一点是: 没有一个好用的IDE, 但是听说Linux牛人, 黑客之类的也都不用IDE. 但是对我等从Windows平台转移过来的Coder来说, 一个 ... 
- vim 使用
		vim有三种模式:输入模式,命令模式,底行模式,使用esc进入命令模式,在命令模式下按英文的冒号,进入底行模式:命令行模式下按i进入输入模式.vim编辑文件是将文件内容复制到缓冲区显示在屏幕上. vi ... 
随机推荐
- Entity Framework排序
			public ActionResult Index() { using (ApplicationDbContext db = new ApplicationDbContext()) { //var l ... 
- C#操作AD的例子
			一下连接中包含了使用c#对AD操作的各种列子 http://www.codeproject.com/Articles/18102/Howto-Almost-Everything-In-Active-D ... 
- Eclipse MyEclipse 复制项目 复制现有项目 复制功能相似项目
			如果现在已经存在一个Java Web项目 ProjectA,现在想做另外一个项目,里面绝大部分功能和结构都可以复用,如果想通过复制的方法来,那么可以这么做: 1.到资源管理器中,将ProjectA文件 ... 
- G - Reduced ID Numbers(第二季水)
			Description T. Chur teaches various groups of students at university U. Every U-student has a unique ... 
- JavaScript实现div宽、高自动缓慢拉伸
			最近打算实现一个带有滤镜效果的地自动拉伸图片.发现使用css3浏览器兼容性得需要特别关注.这里我使用js实现了一个div边框自动拉伸和缩小.源码如下: <!DOCTYPE html>< ... 
- eclipse中的debug的用法
			最基本的操作是: 1.首先在一个java文件中设断点,然后debug as-->open debug Dialog,然后在对话框中选类后--> Run 当程序走到断点处就会转到debug视 ... 
- struts2框架的核心内容
			Struts1和Struts2的区别和对比: Action 类: • Struts1要求Action类继承一个抽象基类.Struts1的一个普遍问题是使用抽象类编程而不是接口,而struts2的Ac ... 
- android sdk manager无法更新
			问题描述: Android SDK Manager 无法下载更新,或者更新速度超慢,或者待安装包列表不显示. 解决方法: 第一,我们先修改下hosts文件.该文件的位置在系统盘 ... 
- mysql的四种隔离级别
			一.READ UNCOMMITTED(未提交读) 在READ UNCOMMITTED级别,事务中的修改,即使未提交,对其他事务也都是可见的.事务可以读取未提交的数据,这也被称为脏读( Dirty RE ... 
- 通过Wmi实现Hyper-V远程管理(一)
			最近公司需要做Hyper-V的远程管理,在现有产品基础上扩展对Hyper V的管理,实现远程开关机.远程开启虚拟机会话,其他内容可查看MSDN中有对Hyper-V的描述和相关实例代码. Wmi操作hy ... 
