• Stars
    star
    308
  • Rank 135,712 (Top 3 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created almost 10 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Make Vim handle line and column numbers in file names with a minimum of fuss

Vim-fetch

Fetch that line and column, boy!

Build Status Project status Current release Open issues License

Intro

vim-fetch enables Vim to process line and column jump specifications in file paths as found in stack traces and similar output. When asked to open such a file, in- or outside Vim or via gF, Vim with vim-fetch will jump to the specified line (and column, if given) instead of displaying an empty, new file.

If you have wished Vim would have a better understanding of stack trace formats than what it offers out of the box, vim-fetch is for you.

Usage

  • vim path/to/file.ext:12:3 in the shell to open file.ext on line 12 at column 3
  • :e[dit] path/to/file.ext:100:12 in Vim to edit file.ext on line 100 at column 12
  • gF with the cursor at ^ on path/to^/file.ext:98,8 to edit file.ext on line 98, column 8
  • gF with the selection |...| on |path to/file.ext|:5:2 to edit file.ext on line 5, column 2

Besides the GNU colon format, vim-fetch supports various other jump specification formats, including some that search for keywords or method definitions. For more, see the [documentation][doc].

Rationale

Quickly jumping to the point indicated by common stack trace output should be a given in an editor; unluckily, Vim has no concept of this out of the box that does not involve a rather convoluted detour through an error file and the Quickfix window. As the one plug-in that aimed to fix this, Victor Bogado’s [file_line][bogado-plugin], had a number of issues (at the time of this writing, it didn’t correctly process multiple files given with a window switch, i.e. [-o, -O][bogado-issue-winswitch] and [-p][bogado-issue-tabswitch], and as it choked autocommand processing for the first loaded file on the arglist), vim-fetch was born.

Installation

  1. The old way: download and source the vimball from the releases page, then run :helptags {dir} on your runtimepath/doc directory. Or,
  2. The plug-in manager way: using a git-based plug-in manager (Pathogen, Vundle, NeoBundle etc.), simply add wsdjeg/vim-fetch to the list of plug-ins, source that and issue your manager's install command.

License

vim-fetch is licensed under the terms of the MIT license according to the accompanying license file.

More Repositories

1

vim-galore-zh_cn

Vim 从入门到精通
Vim Script
9,881
star
2

Learn-Vim_zh_cn

聪明地学习Vim
2,457
star
3

.SpaceVim.d

My dotfiles for Archlinux and Windows
1,441
star
4

hello-vim

Vim 中文资源整理
1,126
star
5

vim-chat

💜 Chatting client for neovim/vim8
Vim Script
510
star
6

vim-plugin-dev-guide

Vim 插件开发指南
HTML
302
star
7

FlyGrep.vim

Asynchronously fly grep in vim
Vim Script
297
star
8

GitHub.vim

Another github v3 api implemented in vim script
Vim Script
195
star
9

awesome-vimers

国内比较有影响力的 Vim 用户及其插件作品
190
star
10

dein-ui.vim

UI for Shougo's dein.vim
Vim Script
163
star
11

vimdoc-cn

Vim 中文帮助文档
C
147
star
12

vim-script-style-guide

Vim 脚本编程规范
127
star
13

vim-cheat

View cheatsheets via vim
Vim Script
118
star
14

plugins-tutorial

一些常用插件的配置及使用技巧
115
star
15

reading-vimrc

vimrc 读书会,帮你提升你的 vimrc
109
star
16

JavaUnit.vim

🐶 Java Unit Test in VIM
Vim Script
107
star
17

SourceCounter.vim

Vim Script
102
star
18

vim-todo

Better TODO manager plugin for neovim/vim
Vim Script
100
star
19

vim2048

2048 in vim
Vim Script
95
star
20

Mysql.vim

Java
93
star
21

job.vim

Vim Script
93
star
22

lua-tutorial-cn

Lua 简明教程
38
star
23

ChineseLinter.vim

中文文档语言规范检查工具
Vim Script
37
star
24

notifications.vim

Vim Script
27
star
25

Neovim-cn.gitgub.io

20
star
26

git.vim

Use git in spacevim
Vim Script
18
star
27

mdctags.rs

Shell
13
star
28

vim-lua

lua development plugin for Vim
Lua
12
star
29

vim-pact

Vim Script
11
star
30

ruby-tutorial-cn

11
star
31

VimHub.github.io

website
10
star
32

vim-fuzzy

Fuzzy find plugin for SpaceVim
Vim Script
9
star
33

vim-async-dict

Rust
9
star
34

vim-assembly

Assembly language support in Vim/Neovim
Vim Script
8
star
35

vim-nim

nim language support for SpaceVim
Vim Script
7
star
36

scrollbar.vim

Vim Script
7
star
37

vim-mail

mail manage within vim
Vim Script
6
star
38

nsv

The next generation SpaceVim
Lua
5
star
39

vim-dap

async debug adapter protocol plugin for vim and neovim
5
star
40

vim-plugins-zh_cn

4
star
41

host-blacklist

4
star
42

cpicker.nvim

Lua
4
star
43

nim-example

An example nim project developed in SpaceVim
Nim
3
star
44

vim-ring

Syntax file for Ring Programming Language
Vim Script
3
star
45

scoop-neovim-dev

3
star
46

Chatting-server

chatting server and client for vim-chat
Java
2
star
47

vim-deldo

Emacs Lisp
2
star
48

vim-livescript

Vim Script
2
star
49

TelegramGroups

2
star
50

MarkDown.pl

MD===>html
Perl
2
star
51

fuzzy-finder

2
star
52

vim-autohotkey

Vim Script
2
star
53

SpaceVim-comments

1
star
54

vim-pascal

Vim Script
1
star
55

iedit.vim

iedit mode deteched from SpaceVim
1
star
56

xmake.vim

Vim Script
1
star
57

lib.vim

工具包
1
star
58

SpaceVim-rocks

Tell you how to hack vim & SpaceVim(Simplified Chinese)
1
star
59

vim-fsharp

fsharp support for SpaceVim
Vim Script
1
star
60

neovim_if_lua

Lua
1
star
61

vim-agda

agda support for SpaceVim
Vim Script
1
star
62

gfr.vim

grep & filter & replace in vim/neovim
Vim Script
1
star
63

hy-tutorial-cn

Hy 入门教程
1
star
64

vim-asciidoc

Vim Script
1
star
65

vim-plugin-index

1
star
66

telegram.vim

Vim Script
1
star