From e79194233442e79e515c47c01573580fdf3690b7 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Fri, 10 Dec 2021 09:16:50 -0500 Subject: Update tests --- .github/workflows/specs.yml | 18 ++++++++++++++++++ .ruby-version | 1 + .travis.yml | 16 ---------------- README.md | 4 +--- spec/novim_mode_spec.rb | 4 +--- 5 files changed, 21 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/specs.yml create mode 100644 .ruby-version delete mode 100644 .travis.yml diff --git a/.github/workflows/specs.yml b/.github/workflows/specs.yml new file mode 100644 index 0000000..ceb96bf --- /dev/null +++ b/.github/workflows/specs.yml @@ -0,0 +1,18 @@ +name: Run tests in headless Vim +on: [push] +jobs: + Specs: + runs-on: ubuntu-latest + steps: + - name: Install Vim GTK + run: | + sudo apt-get install vim-gtk -y + vim --version + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + - name: Run specs + uses: GabrielBB/xvfb-action@v1 + with: + run: bundle exec rspec diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..1effb00 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.7 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b74d59e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: ruby - -rvm: - - 2.4.1 - -before_install: - # The default Ubuntu vim-gtk doesn't seem to load the plugin :/ - - sudo add-apt-repository ppa:laurent-boulard/vim -y - - sudo apt-get update -q - - sudo apt-get install vim-gtk -y - -before_script: - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start" - -script: bundle exec rspec diff --git a/README.md b/README.md index 6aaa5bf..73d8941 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# No Vim Keybindings Mode [![Build Status](https://travis-ci.org/tombh/novim-mode.svg?branch=master)](https://travis-ci.org/tombh/novim-mode) +# No Vim Keybindings Mode Some, indeed many, may say this is counter-productive or even sacrilegious. But Vim is a lot more than just a keybinding paradigm; firstly it has one of the richest plugin ecosystems of any editor, but also it is a -if not *the* most- ubiquitous text editor that's been battle tested for over 25 years. There are more reasons to use it than merely its famous shortcut vocabulary. @@ -14,8 +14,6 @@ Use your favourite plugin manager, eg, for vim-plug; `Plug 'tombh/novim-mode'` -Note that Vim before v7.5 and Neovim before v0.1.5 have a bug where Insert Mode is inappropriately set for some panes. - ## Usage Most keybindings should work as you might expect from, say Atom or Sublime Text; `SHIFT+ARROW` to select and `CTRL+C/V` to copy/paste. But don't expect Vim to completely bend to your will, it is still useful to familiarise yourself with some of Vim's basic concepts. For instance you may on occasion find yourself stuck in a particular Vim mode, like when pasting text without 'Paste Mode' then inserted text can trigger random mappings. In such case `CTRL+Q` may not kill Vim and you'll need to find a way of getting to Normal Mode and typing `:q` then ``. Such is life with Vim, this plugin is highly unlikely to ever change that. (BTW conventional pasting is on by default, but to exit an errant 'Paste Mode' use `:set nopaste`.) diff --git a/spec/novim_mode_spec.rb b/spec/novim_mode_spec.rb index ce19704..1d0bc99 100644 --- a/spec/novim_mode_spec.rb +++ b/spec/novim_mode_spec.rb @@ -260,12 +260,10 @@ describe 'Pane control' do end specify 'closing a pane' do - # Open Netrw file manager in a sidebar - type 'Vexplore' + type 'vsplit README.md' buffer_id = vim.command "echo bufnr('%')" expect(buffer_id).to eq '2' - # Close Netrw pane type '' buffer_id = vim.command "echo bufnr('%')" expect(buffer_id).to eq '1' -- cgit v1.2.3-70-g09d2