diff options
author | Thomas Buckley-Houston | 2021-12-10 14:16:50 +0000 |
---|---|---|
committer | Thomas Buckley-Houston | 2021-12-10 14:53:52 +0000 |
commit | e79194233442e79e515c47c01573580fdf3690b7 (patch) | |
tree | e421e1433c9e55eacb514a5f66a48a4d6df0c81f | |
parent | 8d581b2df5bac897e16ae2ad78cc146292312d42 (diff) |
Update tests
-rw-r--r-- | .github/workflows/specs.yml | 18 | ||||
-rw-r--r-- | .ruby-version | 1 | ||||
-rw-r--r-- | .travis.yml | 16 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | spec/novim_mode_spec.rb | 4 |
5 files changed, 21 insertions, 22 deletions
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 @@ -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 `<RETURN>`. 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 '<M-;>Vexplore<CR>' + type '<M-;>vsplit README.md<CR>' buffer_id = vim.command "echo bufnr('%')" expect(buffer_id).to eq '2' - # Close Netrw pane type '<C-w>' buffer_id = vim.command "echo bufnr('%')" expect(buffer_id).to eq '1' |