Sign inSign up

benjah1/vimrc

By benjah1

•Updated over 5 years ago

docker vim

Image
0

781

benjah1/vimrc repository overview

⁠The vimrc

⁠How to install it on local? (Mist)

	git clone git://github.com/benjah1/vimrc.git ~/vim_runtime
	sh ~/vim_runtime/install_vimrc.sh

After this, open vim and execute :PluginInstall. And then, you need to complete the dependency for youCompleteMe, Tern_for_vim, Tagbar-phpctags. It may be different on different OS.

ps: not sure as I haven't used it in this way for a long time.

⁠How to install it with docker?

The awesome part of this is you can use docker image of it and without worry about the dependency. To install it simply do following:

	git clone git://github.com/benjah1/vimrc.git ~/vimrc
	cd ~/vimrc
	docker build .

⁠Use it from docker hub

Even better, use it from Docker hub directly.

  docker run -d --name [xxx] -v $(pwd):/src \
		-e GIT_AUTHOR_NAME=[xxx] \
		-e GIT_AUTHOR_EMAIL=[xxx] \
		-e GIT_COMMITTER_NAME=[xxx]
		-e GIT_COMMITTER_EMAIL=[xxx]


		benjah1/vimrc:1.7.[x]

	docker exec -it [xxx]

⁠What plugins are included?

⁠Language
⁠Completion
⁠Code display
⁠Integration
⁠Interface
⁠Command

⁠Key Mappings

⁠Spell checking

Pressing <leader>ss will toggle and untoggle spell checking

map <leader>ss :setlocal spell!<cr>

Shortcuts using <leader> instead of special chars

map <leader>sn ]s
map <leader>sp [s
map <leader>sa zg
map <leader>s? z=

⁠ToDo

  • Update plugin keymap
  • Reduce docker image size

Tag summary

Content type

Image

Digest

sha256:e18a22e35…

Size

63.2 MB

Last updated

about 10 years ago

docker pull benjah1/vimrc