Use lcd in Vim for easier navigation between server and client app
Suppose that you have a separate repo for front-end and back-end app and the two reside in the same parent directory:
pwd
~/projects/keepa
ls
keepa
keepa-client
Open keepa
in one window and change pwd
(print working directory) with :lcd ../keepa
. In another window run :lcd ../keepa-client
, accordingly. Now you can easily navigate between the two without typing the whole path.
Without the :lcd
:
:e ../keepa/config/routes.rb
:e ../keepa-client/config/routes.rb
After (for :lcd ../keepa-client
)
:e config/routes.rb
Written by Wojtek Ryrych
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#