Socket
Socket
Sign inDemoInstall

@axlair/jupyterlab_vim

Package Overview
Dependencies
156
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @axlair/jupyterlab_vim

Code cell vim bindings


Version published
Maintainers
1
Created

Changelog

Source

0.12.3 / 2020-04-25

  • z c hides selected code cell
  • z o shows selected code cell
  • z m hides all code cells
  • z r shows all code cells

Readme

Source

jupyterlab-vim

Disclaimer: fork of https://github.com/jwkvam/jupyterlab-vim for personal use. Use at your own risk.

npm version Build Status npm downloads

Notebook cell vim bindings

jlabvim

Special Thanks

I want to acknowledge Alisue and his excellent work creating vim bindings for Jupyter notebooks. I hope this extension can meet the high bar his work set.

Modes

This extension splits Jupyter edit mode into two modes: Vim command mode and Vim insert mode. Three editing modes now exist: Jupyter command, Vim command, and Vim insert.

Install

Prerequisites

  • JupyterLab 2.0

Install or upgrade

jupyter labextension install @axlair/jupyterlab_vim

Uninstall

jupyter labextension uninstall @axlair/jupyterlab_vim

Key Bindings

Please note that all keys are lowercase unless Shift is explicitly indicated. For example, Y, Y is two lowercase ys, Shift-Y, Y is one uppercase Y followed by a lowercase y.

Shortcuts this extension introduces:

Vim Ex commands

CommandAction
:w[rite]Save Notebook
:q[uit]Enter Jupyter command mode

Vim command bindings

ChordAction
Ctrl-O, UUndo Cell Action
-Split Cell at Cursor
Ctrl-O, -Split Cell at Cursor
Ctrl-O, DCut Cell
Ctrl-O, YCopy Cell
Ctrl-O, PPaste Cell
Ctrl-Shift-JExtend Marked Cells Below
Ctrl-Shift-KExtend Marked Cells Above
Ctrl-O, OInsert Cell Below
Ctrl-O, Ctrl-OInsert Cell Above
Ctrl-JSelect Cell Below
Ctrl-KSelect Cell Above
Ctrl-O, GSelect First Cell
Ctrl-O, Ctrl-GSelect Last Cell
Ctrl-EMove Cell Down
Ctrl-YMove Cell Up
Ctrl-O, Z, ZCenter Cell
Ctrl-GShow Tooltip
Command/Ctrl-1Code Cell Mode
Command/Ctrl-2Markdown Cell Mode
Command/Ctrl-3Raw Cell Mode
Shift-EscapeLeave Vim Mode
Escape, Ctrl-[Exit Vim Insert Mode

Jupyter command bindings

ChordAction
G, GSelect First Cell
Shift-GSelect Last Cell
D, DDelete Cell
Y, YYank (Copy) Cell
PPaste Cell
Shift-PPaste Cell Above
OInsert Cell
Shift-OInsert Cell Above
UUndo Cell Action
Ctrl-EMove Cells Down
Ctrl-YMove Cells Up
Z, ZCenter Cell
Z, CHide Code Cell
Z, OShow Code Cell
Z, MHide All Code Cells
Z, RShow All Code Cells

Contributing

Contributions and feedback are most welcome!

Development

For a development install (requires npm version 4 or later), do the following in the repository directory. Please note, you need to make sure that you satisfy all the prerequisites, i.e. the JupyterLab version.

jlpm install
jlpm run build
jupyter labextension link .

To rebuild the package and the JupyterLab app:

jlpm run build
jupyter lab build

Keywords

FAQs

Last updated on 19 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc