Giter Club home page Giter Club logo

tcd.vim's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=4431

Tab-specific directories
For Vim version 7.x

Tcd lets you set a working directory for a specific tab. Great if you've
got a session open and are editing some file in another location on the
filesystem, and decide you need to open more files in that directory.
This plugin works particularly well in combination with NERD_Tree.vim

=============================================================================
Global Commands

:Tcd <dir>

Changes the current working directory, but only in your current tab.
When you enter this tab, the specified path will become your current
working directory. Saves the real current working directory, so when you
exit this tab, you will return to your prior location.

=============================================================================
Known Issues

  1. The "old cwd" (the one you switch to when leaving the tab in which you
     called :Tcd) is set the first time you call :Tcd. This means that if
     change your working directory later with the built-in :cd command, this
     new location will be ignored when leaving :Tcd tabs.

     Workaround: Don't use :cd if you are still using :Tcd tabs. Instead,
     call :Tcd in other tabs. I don't expect there to be a real fix for this
     unless Vim adds some autocommand that is run whenever the current
     working directory changes.

=============================================================================
License

tcd.vim is released under the MIT license. See the comments at the head of
tcd.vim for the full license text, or the "COPYING" file you should have
received with your copy of this software.

tcd.vim's People

Contributors

oinksoft avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.