Giter Site home page Giter Site logo

vim-on-the-fly's Introduction

Vim On The Fly

VIM anywhere

Objective

  • Run VIM on the fly on Windows or linux or mac

Prerequisites

Prepare

Run Docoker via Boot2docker Start shortcut on the desktop

or by power shell

PS C:\> cd 'C:\Program Files\Boot2Docker for Windows'
PS C:\> sh start.sh

Instruction

  1. Make sure the Docker is running via Boot2docker status. It has to return running. If not go back to previous section

  2. Build

    PS C:\> docker build -t vim-on-the-fly .
    
  3. Run the container There are 2 choices

    • Use access directly

      docker run -it vim-on-the-fly zsh
      
    • Run the container in the background ( Recommended on Windows )

      1. Run the container in the background (use docker ps to see the process)
      PS C:\> docker run -d -p 2222:22 vim-on-the-fly
      
      1. Log in to it
        • Method 1: Through Docker VM

          PS C:\> boot2docker ssh
          $ ssh root@localhost -p 2222
          
        • Method 2: Through host To use ssh to 192.168.59.104 which is ip of docker VM and port 2222 The password is vimotf that is defined at config/username.

          PS C:\> ssh [email protected] -p 2222
          

          Note: You can get the IP of docker VM by boot2docker ip

  4. Run vim, Cheer!

    vim
    

Clean up

PS C:\> docker stop run-vimotf
PS C:\> docker rm run-vimotf
PS C:\> docker rmi vim-on-the-fly

Troubleshooting

Problem 1:

If get the message something like that

Get http://127.0.0.1:2375/v1.19/images/json: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.. Are you trying to connect to a TLS-enabled daemon without TLS?

Fix it at boot2docker/boot2docker#952

Problem 2:

Basic volume mount fails with windows docker client against boot2docker #12751 or Problem with -v shared folders in 1.6 #12590

Solution: ahmetalpbalkan said

vim-on-the-fly's People

Contributors

mildronize avatar

Watchers

 avatar  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.