vim-better-sml icon indicating copy to clipboard operation
vim-better-sml copied to clipboard

[Feature] Vim 8 terminal buffer backend for the REPL

Open Skyb0rg007 opened this issue 1 year ago • 0 comments

This pull request adds a Vim 8 backend for the terminal repl. It uses term_start and term_sendkeys to implement this.

I'm not sure if this is also an issue for Neovim, but the "switching back to the original window" logic needs to use window id, not window number, since window number changes when opening windows. This PR uses win_getid and win_id2win, and if this is an issue with Neovim as well I can update that logic as well.

I also removed the setting of textwidth and shiftwidth from the indent file, since that setting overrides a user's after/ftplugin/sml.vim file, which should be prioritized over the plugins' settings. However this may also be me misunderstanding how Vim loads files.

Skyb0rg007 avatar Jun 26 '23 20:06 Skyb0rg007