Sha256: c1a10c4c24627bb58cd1c709fec0fc42603a2773a9f876fd7d92f0d21c64ec91

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

module VER
  module Methods
    module Delete
      def change_motion(motion, count = 1)
        delete_motion(motion, count)
        start_insert_mode
      end

      def delete_motion(motion, count = 1)
        delete(*virtual_movement(motion, count))
      end

      def delete_line(count = 1)
        count.times do
          delete 'insert linestart', 'insert lineend + 1 char'
        end
      end

      def change_line(count = 1)
        delete_line(count)
        start_insert_mode
      end

      def delete_trailing_whitespace
        tag_all_trailing_whitespace
        execute :delete, *tag_ranges('invalid.trailing-whitespace').flatten
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ver-2009.11.29 lib/ver/methods/delete.rb
ver-2009.11.28 lib/ver/methods/delete.rb