sponsor Vim development Vim logo Vim Book Ad

gf-user : A framework to open a file by context

 script karma  Rating 0/0, Downloaded by 1190  Comments, bugs, improvements  Vim wiki

created by
Kana Natsuno
 
script type
utility
 
description
*gf-user* is a Vim plugin to provide a framwork to extend |gf|.  Though |gf|
is one of the most useful commands in Vim, it has the following problems:

- The file to be opened is based on the word under the cursor.
- It's not possible to specify the cursor position for the opened file.

Sometimes you might wish |gf| used more text around the cursor to detect the
file to be opened and the initial cursor position.  For example,

- While reading output from diff(1), go to the hunk under the cursor.
- While editing files for an MVC framework, go to the view file corresponding
  to an action of the controller under the cursor.

Though it's not hard to implement each extension, it's a bit troublesome to
synthesize all extensions.  |gf-user| provides a framework for the extensions.


Requirements:
- Vim 7.3 or later

Latest version:
http://github.com/kana/vim-gf-user

Document
in HTML format:
http://kana.github.com/config/vim/gf-user.html
 
install details
...
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-gf-user-0.0.0.zip 0.0.0 2012-01-18 7.0 Kana Natsuno Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github