Coder Social home page Coder Social logo

rhysd / vim.wasm Goto Github PK

View Code? Open in Web Editor NEW
5.5K 77.0 144.0 108.68 MB

Vim editor ported to WebAssembly

Home Page: http://rhysd.github.io/vim.wasm

Makefile 2.69% Shell 0.36% NSIS 1.03% Objective-C 0.04% C 87.21% Roff 3.39% Awk 0.14% Perl 0.45% Batchfile 0.06% PostScript 0.47% Python 0.17% Smalltalk 0.19% Emacs Lisp 0.22% JavaScript 0.29% NewLisp 0.27% Ruby 0.27% SystemVerilog 0.20% C++ 1.07% Module Management System 0.36% M4 1.09%
vim wasm webassembly editor

vim.wasm's Issues

Add sound support

What is an issue which you want to solve with your feature request?

A vim plugin like killersheep does not fully work.

スクリーンショット 2020-01-01 11 05 11

Describe the solution you'd like

Support sound feature (enable sound feature in :version) using Web Audio API.

Additional context (if any)

None

Build sometimes fails with bad memory access

Describe the bug

An exception is sometimes thrown as #28 (comment) reported.

Steps To Reproduce

Not sure, but sending key input sometimes causes this.

Expected behavior

Not crash

Actual behavior

Crash with exception thrown

Screenshots/DevTools console (if possible)

Shown above

Your environment

  • OS: macOS 10.12
  • Browser: Chrome
  • Browser Version: 75

Additional context (if any)

VimWasm.cmdline() does not update screen

Describe the bug

VimWasm.cmdline() runs given command, but screen is not updated. To avoid this, appending | redraw to the command is necessary.

Steps To Reproduce

  1. Visit https://rhysd.github.io/vim.wasm/?debug=1
  2. Open DevTools console
  3. Run vim.cmdline('edit ~/.vim/vimrc')

Expected behavior

Screen renders the content of ~/.vim/vimrc

Actual behavior

Screen is not updated though only statusline is updated to notify opening ~/.vim/vimrc

Screenshots/DevTools console (if possible)

スクリーンショット 2019-07-09 14 47 39

Your environment

  • OS: macOS 10.12
  • Browser: Chrome (stable)
  • Browser Version: 75

Additional context (if any)

Cross origin isolation

What is an issue which you want to solve with your feature request?

Working in Firefox (And maybe other browsers).

Describe the solution you'd like

up arrow for command history instead prints <Up>

Describe the bug
In vim previous commands entered (possibly only the ones that executed successfully, I'm not too sure I'm afraid) can be replayed by pressing up in command mode.

Steps To Reproduce
type
:%s/foo/bar/
then press enter
then type (colon, then press up arrow)
:<Up>

Expected behavior
:%s/foo/bar/
is in the command bar, ready to be executed by pressing enter

Actual behavior
prints a literal
:<Up>
to the command bar, rather than displaying previous command -> :%s/foo/bar/

Screenshots/DevTools console (if possible)
see bottom, sorry there's a lot on the console

Your environment:

  • OS: ubuntu 18.04
  • Browser: firefox
  • Browser Version: 62.0.3

Additional context (if any)

The Components object is deprecated. It will soon be removed. vim.wasm
Error detected while processing /usr/local/share/vim/colors/desert.vim:
index.js:1:40840
put_char
https://rhysd.github.io/vim.wasm/index.js:1:40840
write
https://rhysd.github.io/vim.wasm/index.js:1:39443
write
https://rhysd.github.io/vim.wasm/index.js:1:83857
doWritev
https://rhysd.github.io/vim.wasm/index.js:1:104304
___syscall146
https://rhysd.github.io/vim.wasm/index.js:1:130894
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:369608:2147484861
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:341315:2147484806
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:435028:2147485154
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:6738:2147483759
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:519447:2147485385
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:34464:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:6322:2147483748
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:38261:2147483791
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:229175:2147484476
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:59596:2147483929
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:136844:2147484169
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:5720:2147483736
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:15509:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:74271:2147483986
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:48355:2147483856
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:591698:2147485518
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:199388:2147484373
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:327296:2147484791
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:91933:2147484029
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:470186:2147485272
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:606034:2147485606
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:15298:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:74271:2147483986
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:48355:2147483856
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:533302:2147485417
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:32642:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:615257:2147485673
Module._main
https://rhysd.github.io/vim.wasm/index.js:1:170474
callMain
https://rhysd.github.io/vim.wasm/index.js:1:172730
doRun
https://rhysd.github.io/vim.wasm/index.js:1:173529
run
https://rhysd.github.io/vim.wasm/index.js:1:173715
runCaller
https://rhysd.github.io/vim.wasm/index.js:1:172316
removeRunDependency
https://rhysd.github.io/vim.wasm/index.js:1:23053
receiveInstance
https://rhysd.github.io/vim.wasm/index.js:1:25621
receiveInstantiatedSource
https://rhysd.github.io/vim.wasm/index.js:1:25929
line   22:
index.js:1:40840
put_char
https://rhysd.github.io/vim.wasm/index.js:1:40840
write
https://rhysd.github.io/vim.wasm/index.js:1:39443
write
https://rhysd.github.io/vim.wasm/index.js:1:83857
doWritev
https://rhysd.github.io/vim.wasm/index.js:1:104304
___syscall146
https://rhysd.github.io/vim.wasm/index.js:1:130894
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:369608:2147484861
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:341315:2147484806
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:435028:2147485154
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:6738:2147483759
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:519447:2147485385
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:34464:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:6322:2147483748
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:38261:2147483791
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:229175:2147484476
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:59596:2147483929
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:5736:2147483736
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:15509:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:74271:2147483986
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:48355:2147483856
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:591698:2147485518
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:199388:2147484373
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:327296:2147484791
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:91933:2147484029
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:470186:2147485272
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:606034:2147485606
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:15298:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:10477:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:74271:2147483986
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:48355:2147483856
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:533302:2147485417
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:32642:2147483767
<anonymous>
https://rhysd.github.io/vim.wasm/index.wasm:615257:2147485673
Module._main
https://rhysd.github.io/vim.wasm/index.js:1:170474
callMain
https://rhysd.github.io/vim.wasm/index.js:1:172730
doRun
https://rhysd.github.io/vim.wasm/index.js:1:173529
run
https://rhysd.github.io/vim.wasm/index.js:1:173715
runCaller
https://rhysd.github.io/vim.wasm/index.js:1:172316
removeRunDependency
https://rhysd.github.io/vim.wasm/index.js:1:23053
receiveInstance
https://rhysd.github.io/vim.wasm/index.js:1:25621
receiveInstantiatedSource
https://rhysd.github.io/vim.wasm/index.js:1:25929
index.js:1:40543
TODO: set_shellsize 1288 910 65 184 index.js:1:40543 

(in chrome) arrow keys in command mode not working correctly

If you enter a command like :w filename, and hit enter, then press : to get back to command mode and press the up arrow key, it should go back in the command history and pull up :w filename, but instead it inserts :<Up>. This happens with all four arrow keys.

Uncaught abort("Assertion failed: undefined")

Describe the bug crash

Steps To Reproduce write text, shift-v down arrow / up arrow, y/d, p, repeat

Expected behavior works fine

Actual behavior crashes at some point

Screenshots/DevTools console (if possible)

bug

Your environment:

  • OS: macOS
  • Browser: Chrome
  • Browser Version: 76 (canary)

Additional context (if any) I'm not sure exactly of the steps to reproduce

Vim crashes with empty string argument

Describe the bug

When passing an empty string as command line argument of Vim, Vim crashes on start.

Steps To Reproduce

import { VimWasm } from '/path/to/vim-wasm/vimwasm.js';

const vim = new VimWasm({ ... });

vim.start({ debug: true, cmdArgs: [ '' ] });

Run above script in browser and check console in DevTools.

Or access to http://rhysd.github.io/vim.wasm/?arg=

Expected behavior

Vim normally starts with an unnamed buffer

Actual behavior

Vim crashes with following abort error:

worker: Error was thrown in worker: abort("TypeError: Cannot read property 'mode' of null") at Error
    at jsStackTrace (http://localhost:1234/vim.js:1374:13)
    at stackTrace (http://localhost:1234/vim.js:1391:12)
    at abort (http://localhost:1234/vim.js:8200:44)
    at ___syscall33 (http://localhost:1234/vim.js:5581:69)
    at _access (wasm-function[4982]:59)
    at _readfile (wasm-function[1636]:2316)
    at _open_buffer (wasm-function[175]:1086)
    at _create_windows (wasm-function[4640]:792)
    at _vim_main2 (wasm-function[4638]:1543)
    at _wasm_main (wasm-function[4629]:1356)

Screenshots/DevTools console (if possible)

スクリーンショット 2019-08-01 15 50 30

Your environment

  • OS: macOS 10.12
  • Browser: Chrome
  • Browser Version: 75.0.3770.100

Additional context (if any)

Text artifacts on changes

Describe the bug
Text artifacts are visible on any large changes to text.

Steps To Reproduce
Open vim.wasm, enter insert mode to remove the starter text.

Expected behavior
All previous text should be gone and no white marks of a previous text should be visible.

Actual behavior
There are white marks of the previous text

Screenshots/DevTools console (if possible)
https://i.imgur.com/IwlLIJv.gif

Your environment:

  • OS: Windows 10
  • Browser: Firefox and Edge
  • Browser Version: 66.0.3 and 44.17763.1.0

Additional context (if any)
Tested with both browsers at different window sizes.
Tested on 1920x1080 and 3840x2160 resolution
Testing device has embedded graphics and a dedicated GPU

vim.wasm installation process

What is an issue which you want to solve with your feature request?

The installation process of vim.wasm is not documented.

Describe the solution you'd like

Provide installation instruction or provide a Dockerfile for quick deployement.

Thank you, very neat project.

`.cmdline()` method not working

In most cases, the vimWasm.cmdline() method does not work as expected. I anticipate that cmdline() should function similarly to manually using Vim's execution mode.

Here are examples of bugs:

  • vimWasm.cmdline('startinsert') should change Vim to insert mode, but it does not work.

  • vimWasm.cmdline('2') is supposed to move the cursor to line 2, but I don't see the cursor updating. Even after trying to redraw vimWasm.cmdline('2 | redraw'), it still doesn't work.

@rhysd Please help to find solutions. Thanks

PDCurses.js integration

There is a project called PDCurses.js which actually allows linking with lcurses. Just wondering if you have considered using it instead of writing the terminal interaction manually. The advantage would be to compile the original project without the need to hack the original files and its compiled size is small too.

Can not input chinese characters

Describe the bug
I Can not input chinese characters with vim.wasm

Steps To Reproduce

  1. Open https://rhysd.github.io/vim.wasm/
  2. Try to input chinese,like " 你好,世界"
  3. It shows "nihao,shijie" in the vim.wasm.

Expected behavior
It shows "你好,世界" in the vim.wasm.

Actual behavior
It shows "nihao,shijie" in the vim.wasm.

Screenshots/DevTools console (if possible)
image

Your environment:

  • OS: macos
  • Browser: chrome
  • Browser Version: 73.0.3683.103

Additional context (if any)
None

Typing ":w foo" (and Enter) makes the tab unusable

Describe the bug

Typing ":w foo" (and Enter) makes the tab unusable

Steps To Reproduce

:w foo and Enter

Expected behavior

Actual behavior

Tab gets stuck and nothing responds.

Screenshots/DevTools console (if possible)

Your environment:

  • OS: mageia v7 x86-64
  • Browser: firefox-66.0.3-1.mga7
  • Browser Version: 66.0.3

Additional context (if any)

vim.wasm with networking protocol: IPFS, Remote-storage?

What is an issue which you want to solve with your feature request?

One of the problems with vim.wasm is that there is no facility to choose where to save the typed code. This is a problem when you write code and want the copy to be kept somewhere else for backup or for data security reasons.

Describe the solution you'd like

I would like to have an option in vim.wasm to choose the storage location. For example, I could save all the code I'm typing in vim.wasm directly to google drive, dropbox, trezorit or I could save it through a protocol like IPFS, FTP etc.

Additional context (if any)

Saving should trigger a file download

This is not an issue, nor appropriated for the Vim mailing list. However, since this is basically a version of Vim for the web it would make sense to offer some of the features you would expect from a web editor, such as saving. The :w command could for example trigger a file download. Likewise, opening a file could ask the user to select a file to upload.

Can't generate from release tarball

vim.wasm/build.sh

Lines 5 to 8 in 97335e7

if [ ! -d .git ]; then
echo 'build.sh must be run from repository root' 1>&2
exit 1
fi

Trying to generate the vim.wasm file from a release tarball, I get an error because there's no .git folder. I understand this behaviour is to prevent errors, but in that case, I think is superfluous and should be removed.

Unable to switch splits in the browser

Describe the bug

When trying to use the regular command to switch splits, the browser intercepts the command and tries to close the browser window

Workaround

In the help text, introduce the ':winc " for moving between splits.

Steps To Reproduce

Open vim.wasm
split a window ( :sp )
Try to use ctrl-w to move windows

  • The browser will try to close the browser tab

Expected behavior

Actual behavior

Screenshots/DevTools console (if possible)

Your environment

  • OS: Windows
  • Browser: Opera
  • Browser Version: 81.0.4044.138

Additional context (if any)

SharedArrayBuffer restricted in new browser versions

Describe the bug

A downstream project as well as the demo on https://rhysd.github.io/vim.wasm/ are now broken on most browsers, since SharedArrayBuffer has been disabled

Steps To Reproduce

Run https://rhysd.github.io/vim.wasm/

Expected behavior

vim opens up

Actual behavior

Alert popup with message FATAL: SharedArrayBuffer is not supported by this browser. If you're using Firefox or Safari, please enable feature flag.

Screenshots/DevTools console (if possible)

Your environment

  • OS: Win10
  • Browser: Chrome
  • Browser Version: 93

Additional context (if any)

https://caniuse.com/?search=SharedArrayBuffer
https://hacks.mozilla.org/2020/07/safely-reviving-shared-memory/

Clipboard read on visual select

Describe the bug

When I visual select some code, I notice that it's triggering the onWriteClipboard

Steps To Reproduce

  1. Visual select some text
  2. See your clipboard (or use the debug)

Expected behavior

No clipboard when visual selecting

Actual behavior

Clipboard when visual selecting

Your environment

  • OS: macOS
  • Browser: chrome
  • Browser Version: 109

Additional context (if any)

/usr/local/share/vim/autoload/dist does not exist

Describe the bug

On setting filetype dist#... function does not exist and causes an error

Steps To Reproduce

  1. Visit https://rhysd.github.io/vim.wasm
  2. Open foo.html

Expected behavior

html filetype is set

Actual behavior

Error as follows

Error detected while processing BufNewFile Autocommands for "*.html":
E117: Unknown function: dist#ft#FThtml

Screenshots/DevTools console (if possible)

スクリーンショット 2019-07-16 2 56 27

Your environment

  • OS: macOS 10.12
  • Browser: Chrome 76
  • Browser Version:

Additional context (if any)

build from vim/vim

Hello,

Is there any instruction how to rebase from vim/vim to fetch the latest changes?

Backspace の動作不具合

Backspace(以下BS)で文字を消すことができなかったのでご報告致します

OS : Windows 10
Browser : Firefox (プライベートブラウズも試しました)

再現方法 :
a → 適当な文字列を打つ → BS(この時カーソルは一文字戻りますが、文字が消えません。また、戻ったカーソルにさらに文字を打つと上書きするような動きをします)

そのあと、 Esc → a → 適当な文字列を打つ → BS(この時はBS自体が利かなくなります)

Feature Request: embed .wasm file inside of vim.html so you have a single html file with everything. Like vim.html

What is an issue which you want to solve with your feature request?

I want to have a single "vim.html" where everything is contained, even if it makes the file bigger. I already embedded the "VimWasm.js" inside a <script>.

So in this I only have to "import" the "vim.js" file like this:

const screenCanvasElement = document.getElementById('vim-screen');
const vim = new VimWasm({ // VimWasm is available in the global scope via window.VimWasm(loaded via <script>)
    workerScriptPath: './node_modules/vim-wasm/small/vim.js',
    canvas: screenCanvasElement,
    input: document.getElementById('vim-input'),
});

The problem is that when you're inside of vim.js it uses fetch to get the vim.wasm binary so you need a server running to have this working.

Describe the solution you'd like

The solutions would be that you can actually embed .wasm inside of a .html file via base64 encoding, this might not be the most good for performance but for portability it's great!( see https://stackoverflow.com/questions/52582367/a-single-file-webassembly-html-demo and https://gist.github.com/dio/ae79cf546e808a9bc46515bf9400ad5d)

I have tried edit the code myself but it uses both WebAssembly.instantiate and WebAssembly.instantiateStreaming so I'm not exactly sure what to do thus I'm opening this issue.

Additional context (if any)

" '' should be object " appears when starting firefox

Describe the bug

The page stays black when accessing https://rhysd.github.io/vim.wasm/ with firefox.
" '' should be object " appears on the bottom of the page as shown in the attached image.

Steps To Reproduce

  1. Access https://rhysd.github.io/vim.wasm/ with firefox: will stay black (nothing be shown on the page).
  2. Restart firefox, then you'll the screen as shown attached.

Expected behavior

The screen like vim will appear.

Actual behavior

The page stays black.

Screenshots/DevTools console (if possible)

ShouldBeObject

Your environment

  • OS: Windows 10
  • Browser: Firefox
  • Browser Version: 72.0.1 (64 bit)

Attempting to close the browser tab should not be possible

Ideally this would result in an alert saying "Type :qa! and press to abandon all changes and exit vim". Anything else is simply not true to the vim experience (ignoring for the moment that :q doesn't actually work, which it probably should)

Access to vim api and context from a containing app

What is an issue which you want to solve with your feature request?

We have a Qt-based desktop application for medical image processing and we use python code as a kind of macro language to extend and automate the program.

We'd like to be able to use a full featured editor integrated within the application to work with our python code.

Because our app uses Qt, we have the QWebEngine available and can embed a full featured web browser in our app, and we can call browser's javascript environment from python (e.g. like in this test code). Note that it's all asynchronous on both the javascript and python sides.

Recently the question came up about using a full editor to edit the python code in our app, and I found that I can run you vim.wasm code in our embedded browser:

https://discourse.slicer.org/t/directly-interacting-with-python-console/34455/7

But I don't see any easy way to get/set the contents of the editor window or be notified in javascript of vim events.

Describe the solution you'd like

I'd like to be able to start the vim.wasm context in the browser and then call a javascript function to populate the current text buffer for editing. Then I'd like to be able to use vim keystrokes to trigger javascript code in the browser that would make calls back to the python code, for example to send selection buffers to python for execution.

Additional context (if any)

I tried using the ?debug argument to set the vim object as window.vim and while I could access vim in the debug console I didn't see any way to set or get the values of the current vim buffers. It would be great if window.vim were available to interact with the browser's javascript enviornment.

Thanks in advance - I'm a long-time vi/vim user and having this available would make me very happy : )

diw not working

To replicate:

  1. Hit "i" to go to insert mode and try writing something
  2. Hit to go back to normal mode
  3. Move to the middle of a word
  4. Try typing "diw" to delete inner word in normal mode

Nothing happens.

Potential PWA App

What is an issue which you want to solve with your feature request?

Allow the live demo to be installed as a PWA (Progressive Web App).

Allowing the live demo to be installed could include great features such as:

Describe the solution you'd like

Implement a service worker to cache vim.wasm and the files to run it in the browser.
Add a web manifest to help the browser install it.

Additional context (if any)

Some good tutorials can be found at web.dev (https://web.dev/tags/progressive-web-apps/)

Build not working

After cloning the repo and building it using ./build.sh, running a local server and hosting vim.html raises quite a few errors.

Following the steps under Development of the README file, raised these errors.

Screenshot from 2019-05-29 15-40-33

Vim should run without any problems in the browser

But what I see is a blank screen with multiple errors in the console

Your environment:

  • OS: Ubuntu 18.04
  • Browser: Google Chrome
  • Browser Version: 74.0.3729.169

Add support (or instruction) for pasting from clipboard

Is your feature request related to a problem? Please describe.

I couldn't paste some code I wanted to reformat. Felt like vim.wasm could possibly do this, (mostly for convenience) on a Chromebook. 😄

In particular, I wanted a simple reformat, which I knew I could do quickly in Vim:

In:

#Array
#Complex
#Float
#Hash
#Integer
#Rational
#String

Out:

(`Array()`, `Complex()`, `Float()`, `Hash()`, `Integer()`, `Rational()`, `String()`)

Describe the solution you'd like

Add support for pasting via Ctrl-V/Cmd-V, "+p, or another solution. Add a short blurb somewhere on the page describing this.

Additional context (if any)

n/a

Resizing the browser window

Resizing the browser window isn't triggered as resizing the terminal, instead it just squishes and stretches the rendering.

screen shot 2018-07-11 at 10 01 42

wasm-ld: error: unknown file type: vim.bc

Describe the bug

Error when running build.sh

Steps To Reproduce

Run build.sh

Expected behavior

No error . .

Actual behavior

Error

Your environment

  • OS: Fedora 33
  • Browser: - why does that matter?
  • Browser Version:

Additional context (if any)

BTW, this project is a great idea! - I have been wondering for years how getting Vim going in the browser might be done!

Phil.

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.