Git Product home page Git Product logo

brackets-vimderbar's Introduction

Vimderbar

(a play on the German word wunderbar)
is an extension meant to bring vim-like functionality to Brackets.

""

Pretty much all of the Vim keymapping is from CodeMirror's /keymap/vim.js, but I modified things very heavy-handedly. The two files will probably need to be maintained in parallel until I can figure out a way to do this natively in Brackets.

Installing Vimderbar

  1. In the Brackets menu bar, choose File > Extension Manager... (or click on the "brick" icon in the sidebar to the right).
  2. Click the Available tab and search for Vimderbar. Click Install.
  3. Enable Vimderbar via the Brackets menu with View > Enable Vimderbar.

Features

  • Basic vim keybindings (hjkl, yy, dd, p, P, o, O, gg, G, etc.).
  • Search function (/) integrated with Brackets' native search.
  • Very basic : commands. :w saves, :q closes the document or the inline editor in focus, and :e opens the "Navigate > Quick Open" menu.
  • Inline editor support. Double-tap Esc to close an inline editor.
  • Modes: Normal, Insert, Visual (Visual-line, too).
  • Vim bar displays command presses in Normal & Visual modes so the user knows what has been pressed.
  • Macro functionality restored.

Limitations

  • : commands are sloppy, only one can be performed at a single time.
  • Can't yet perform complex : commands (like :1,8d or even :wq).
  • : does not yet have "history" (e.g. pressing Up to get previous commands).
  • Reverse search (?) has been disabled to accommodate the native search. (Please open an issue if you want this to be restored.)

Contributing

Please do, by all means, hack on this extension. For coding conventions, review the [Brackets Coding Conventions] (https://github.com/adobe/brackets/wiki/Brackets%20Coding%20Conventions).

Note: The Vim.js file isn't my own code, so I have tried to adhere to CodeMirror's style.

Thanks!

Licence

I'd say WTFPL, but the MIT disclaimers are important(see main.js).

brackets-vimderbar's People

Contributors

hugoruscitti avatar neojski avatar urlysses avatar

Watchers

 avatar  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.