All Projects → stsewd → gx-extended.vim

stsewd / gx-extended.vim

Licence: MIT License
Extend gx to use it beyond just URLs!

Programming Languages

Vim Script
2826 projects
Makefile
30231 projects

Projects that are alternatives of or similar to gx-extended.vim

bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (+334.78%)
Mutual labels:  vim-plugin, neovim-plugin
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (+617.39%)
Mutual labels:  vim-plugin, neovim-plugin
SimpleSnippets.vim
Simple snippet support for your Vim and Neovim
Stars: ✭ 86 (+273.91%)
Mutual labels:  vim-plugin, neovim-plugin
vim-tips-wiki
1500+ tips downloaded from Vim Tips Wiki, parsed and formatted to look and work like native Vim help files
Stars: ✭ 56 (+143.48%)
Mutual labels:  vim-plugin, neovim-plugin
YankAssassin.vim
Don't let the cursor move while Yanking in Vim/Neovim
Stars: ✭ 50 (+117.39%)
Mutual labels:  vim-plugin, neovim-plugin
denops-gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 27 (+17.39%)
Mutual labels:  vim-plugin, neovim-plugin
vim-dap
Vim/Neovim debugger plugin providing a terminal interface to the Debug Adapter Protocol
Stars: ✭ 43 (+86.96%)
Mutual labels:  vim-plugin, neovim-plugin
auto-pairs
Vim plugin, insert or delete brackets, parentheses, and quotes in pairs
Stars: ✭ 109 (+373.91%)
Mutual labels:  vim-plugin, neovim-plugin
gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 149 (+547.83%)
Mutual labels:  vim-plugin, neovim-plugin
vim-iawriter
iAwriter's Focus mode for vim
Stars: ✭ 23 (+0%)
Mutual labels:  vim-plugin, neovim-plugin
denops-docker.vim
Manage Docker in Vim/Neovim
Stars: ✭ 48 (+108.7%)
Mutual labels:  vim-plugin, neovim-plugin
format.nvim
Neovim lua plugin to format the current buffer with external executables
Stars: ✭ 189 (+721.74%)
Mutual labels:  vim-plugin, neovim-plugin
vim-counterpoint
Cycle between file counterparts in vim or neovim.
Stars: ✭ 12 (-47.83%)
Mutual labels:  vim-plugin, neovim-plugin
onestatus
an api to customize tmux from vim
Stars: ✭ 82 (+256.52%)
Mutual labels:  vim-plugin, neovim-plugin
42header.vim
Add and update the 42 comment header at the top of your files
Stars: ✭ 15 (-34.78%)
Mutual labels:  vim-plugin, neovim-plugin
fzf-checkout.vim
Manage branches and tags with fzf
Stars: ✭ 187 (+713.04%)
Mutual labels:  vim-plugin, neovim-plugin
vim-lineletters
because letters are easier to touch type than numbers
Stars: ✭ 38 (+65.22%)
Mutual labels:  vim-plugin, neovim-plugin
code runner.nvim
Neovim plugin.The best code runner you could have, it is like the one in vscode but with super powers, it manages projects like in intellij but without being slow
Stars: ✭ 234 (+917.39%)
Mutual labels:  vim-plugin, neovim-plugin
vim-jukit
Jupyter-Notebook inspired Neovim/Vim Plugin
Stars: ✭ 55 (+139.13%)
Mutual labels:  vim-plugin, neovim-plugin
virt-column.nvim
Display a character as the colorcolumn
Stars: ✭ 64 (+178.26%)
Mutual labels:  vim-plugin, neovim-plugin

gx-extended.vim

CI

Extend gx to use it beyond just URLs!

Note: this plugin is still under development a lot of things may change!

Features

  • Open anything under your cursor with several handlers per file type
  • Normal and visual mode support
  • Handlers that work together across all file types
  • Fall back to the original gx command if all handlers fail
  • Implement your own handlers

Installation

Install using vim-plug. Put this in your init.vim/.vimrc.

Plug 'stsewd/gx-extended.vim'

Usage

Press gx on normal or visual mode, the text under the cursor or the selected text will be handled by a handler.

See :h gx-extended for more information about settings and how to write your own handler.

Handlers

Handlers with the global file type work across all file types.

global#urls

Opens links with/without an explicit protocol. Examples:

  • A cursor under google.com will open https://google.com

global#gx

Mimics the original gx command.

gitcommit#github

Opens an issue/PR from a git commit message. Examples:

  • A cursor under Fixes #23 will open https://github.com/user/repo/issues/23

Note:

You need to have installed hub (recommended), or tpope/vim-fugitive.

markdown#link

Opens Markdown links. Examples:

  • A cursor under [link](https://google.com) will open https://google.com

Note:

If you have plasticboy/vim-markdown installed (it's included in sheerun/vim-polyglot) you'll need to disable the default key mappings, since that plugin remaps gx by default.

vim#plugin

Opens the GitHub page of the plugin under the cursor. Examples:

  • A cursor under Plug stsewd/fzf-checkout.vim will open https://github.com/stsewd/fzf-checkout.vim

TODO

  • ReStructuredText?
  • requirements.txt?
  • Write more tests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].