sponsor Vim development Vim logo Vim Book Ad

cmdpathup : Hotkey for going one level up when editing a path on command line

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

created by
Carsten Gräser
 
script type
utility
 
description
This plugin provides a hotkey to go up by one level
when editing a file path on the vim command line.

Suppose you edit a file system path in the command line
where | represents the position of the cursor

:e ~/foo/bar/foo-bar/|barbar

Then pressing the plugin hotkey will result in

:e ~/foo/bar/|barbar

In contrast you would have to press <c-w> four times to
delete '/', 'bar', '-', and 'for' one by one.
 
install details
You can simply extract the content of the .tar.gz into your vim directory.
However, I recommend to use pathogen (http://www.vim.org/scripts/script.php?script_id=2332)
and to extract into bundle/vim-cmdpathup instead.

You can also directly clone from the github repository into bundle/.
https://github.com/cgraeser/vim-cmdpathup.
 

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
cmdpathup.tar.gz 1.0 2012-05-13 7.0 Carsten Gräser Initial upload
ip used for rating: 216.73.216.103

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github