Skip to content

enitihas/GreedyBackspace.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1390

This script will cause your backspace key to delete all the whitespace characters before the cursor when the cursor is on a whitespace character.

For example, if you typed "x       x" and then hit backspace twice, you'd only have "x".  This can be especially useful when auto/smart/c/expression indenting is on.

This script isn't very useful if you don't put "set backspace=indent,eol,start" or at least "set backsapce=indent,start" in your vimrc.


(Thanks to Tomi Mickelsson for testing and bug reports.)

About

Make backspace eat multiple whitespace characters

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%