Steal strip trailing spaces from anddam
This commit is contained in:
parent
dc2b9c943a
commit
b2072e7189
@ -3,6 +3,7 @@ require('vis')
|
|||||||
require('plugins/complete-word')
|
require('plugins/complete-word')
|
||||||
require('plugins/myfiletype')
|
require('plugins/myfiletype')
|
||||||
require('plugins/editorconfig/editorconfig')
|
require('plugins/editorconfig/editorconfig')
|
||||||
|
require('plugins/vis-quickfix/quickfix')
|
||||||
|
|
||||||
vis.events.subscribe(vis.events.INIT, function()
|
vis.events.subscribe(vis.events.INIT, function()
|
||||||
-- Your global configuration options
|
-- Your global configuration options
|
||||||
@ -103,3 +104,11 @@ vis:map(vis.modes.VISUAL, ';a', function()
|
|||||||
vis:command(':|par')
|
vis:command(':|par')
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
vis:command_register("sts", function(argv, force, win, selection, range)
|
||||||
|
local lines = win.file.lines
|
||||||
|
for index=1, #lines do
|
||||||
|
lines[index] = lines[index]:gsub("%s+$", "")
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end, "Strip line trailing spaces")
|
||||||
|
Loading…
Reference in New Issue
Block a user