sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

codepath.vim : A function for your root project path

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

created by
Luca Pette
 
script type
utility
 
description
codepath.vim is a plugin that provides a simple function to obtain your code
path directory if you have one. The concept is simple: I have a dir located
in $HOME/code where i store all my projects and I want to set current project
directory as root directory for plug-in like NERDTree and CommandT.

It provides a function you can use in the following ways:

nnoremap <silent> <F4> :NERDTreeToggle `=codepath#path()`<cr>
inoremap <silent> <F4> <Esc>:NERDTreeToggle `=codepath#path()` <cr>

or

map   <silent> <C-T> :CommandT <c-r>=codepath#path()<CR><CR>
imap   <silent> <C-T> <ESC>:CommandT <c-r>=codepath#path()<CR><CR>
 
install details
Unzip it into your $HOME/.vim/plugin
 

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
codepath.zip 1.0.0 2011-09-29 7.0 Luca Pette Rewritten. Use only VimL now. Very ligth.
codepath.zip 0.1.1 2011-09-01 7.0 Luca Pette Added a statusline
codepath.zip 0.0.4 2011-05-03 7.0 Luca Pette Please take care, this version is not compatible with the previous versions. See docs or readme on github for changes
codepath.zip 0.0.3 2011-03-14 7.0 Luca Pette more simple implementation of path-related methods
codepath.zip 0.0.2 2011-03-12 7.0 Luca Pette bug fixing
codepath.zip 0.0.1 2011-03-12 7.0 Luca Pette See https://github.com/lucapette/codepath.vim for new configurations and features
codepath.zip 0.0.1 2011-01-31 7.0 Luca Pette Initial upload
ip used for rating: 23.20.147.6

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.
   
SourceForge.net Logo