Giter Site home page Giter Site logo

vimate's Introduction

ViMate

This is outdated code but here for reference at this stage. It was the best I could do without spending weeks neck deep in class-dump (again) writing tons of code that would be obsolete as soon as TextMate V2.0 comes out. Since TextMate 2 is open source it is my hope to build a new vi emulator natively to the app.

I'll warn you that things get funky near the end of file and the end of line and word movement is a crap-shoot without rhyme or reason. There is nothing I can do about this until I'm able to implement my own movement functions (i.e. until TextMate V2.0).

Commands Implemented

Movement

  • h left
  • j down
  • k up
  • l right
  • w word forward
  • b word backward
  • e end of word forward
  • 0 beginning of line
  • $ end of line
  • gg top of document
  • G end of document

Insert

  • i insert
  • I insert at beginning of line (doesn't respect indenting)
  • a append
  • A append to end of line
  • o insert line below (doesn't respect indenting)
  • O insert line above (doesn't respect indenting)
  • c+(?) change
  • cc change line
  • C change to end of line
  • Cut Copy Paste
  • d+(?) cut
  • dd cut line
  • D cut to end of line
  • y+(?) copy
  • yy copy line
  • x cut character forward (or cut selection)
  • X cut character backward (or cut selection)
  • p paste after or below (or replace selection)
  • P paste before or above (or replace selection)

Scrolling

  • Ctrl+u scroll half page up (broken)
  • Ctrl+d scroll half page down (broken)
  • Ctrl+b scroll full page up
  • Ctrl+f scroll full page down
  • Ctrl+y scroll line up
  • Ctrl+e scroll line down

Visual Mode

  • V highlight line
  • v visual mode

Repeat

  • 1,2,3... repeat next command (buggy)

vimate's People

Contributors

kirtfitzpatrick avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.