VIM anywhere
- Run VIM on the fly on Windows or linux or mac
- Docker for windows
- Git Client
- Optional: alternative power shell Cmder
- For best appearance using putty and Solarized theme of Putty
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
-
Make sure the Docker is running via
Boot2docker status
. It has to returnrunning
. If not go back to previous section -
Build
PS C:\> docker build -t vim-on-the-fly .
-
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 )
- 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
- 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
to192.168.59.104
which is ip of docker VM and port2222
The password isvimotf
that is defined atconfig/username
.PS C:\> ssh root@192.168.59.104 -p 2222
Note: You can get the IP of docker VM by
boot2docker ip
-
- Run the container in the background (use
-
-
Run vim, Cheer!
vim
PS C:\> docker stop run-vimotf
PS C:\> docker rm run-vimotf
PS C:\> docker rmi vim-on-the-fly
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
Basic volume mount fails with windows docker client against boot2docker #12751 or Problem with -v shared folders in 1.6 #12590
Solution: ahmetalpbalkan said