Giter Club home page Giter Club logo

vimbindings.jl's Introduction

Intro

VimBindings is an experimental Julia package which brings some vim keybindings to the Julia REPL.

VimBindings is early in development and is not yet recommended for daily use. For the brave, feel free to give it a try!

Features

  • Normal mode
  • Basic navigation (h, j, k, l,)
  • Binding escape key from Julia REPL (see caleb-allen#8)
  • Basic editing (e.g. dw, cw, x)
  • Less basic editing (e.g. diw, cfx)
  • History integration (partial)
  • Visual mode
  • Registers
  • Undo/Redo
  • Macros

Installation

] add https://github.com/caleb-allen/VimBindings.jl

Usage

The VimBindings package must be loaded before the REPL to correctly bind the Esc key (see caleb-allen#8). You can do this in your startup config:

# ~/.julia/config/startup.jl
atreplinit() do repl
    @eval using VimBindings
end

Then when you start julia:

julia[i]> # You now have vim bindings!

If you are having issues initializing the package, you can try manual initialization with VimBindings.init()

VimBindings begins in insert mode, and the Julia REPL can be used in its original, familiar fasion.

Switch to normal mode by pressing Esc, where you can navigate with h, j, k, l, etc.

julia[i]> println("Hello world!") # user presses Esc
julia[n]> println("Hello world!") # normal mode!

gif of usage

Gotchas

You may see warnings about method definitions being overwritten. VimBindings.jl overwrites some methods in the standard library in order to hook into REPL functionality, and you can safely ignore these warnings.

You may experience lag when you begin to use VimBindings.jl as Julia compiles functions for the first time. This lag should ease up over time. Adding some precompilation is a longer term item on the todo list.

Feedback

VimBindings.jl is early in development and likely has bugs! Issues with bug reports or general feedback is welcome.

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.