44

GitHub - rstacruz/vimfiles: My VIM config files.

 4 years ago
source link: https://github.com/rstacruz/vimfiles
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Rico's vim files

@rstacruz's Vim setup managed by vim-plug

Installing

Clone the repo anywhere. (I like putting it in my ~/Config, but it can be anywhere you like.)

git clone https://github.com/rstacruz/vimfiles.git
cd vimfiles

Symlink it to ~/.vim.

make link

Install Vim plugins from the lockfile.

make restore

How to use

There's magical documentation at:

:Usage
# or 'make help' in the CLI

Adding packages

vim ~/.vimrc     # add 'Plug 'x/y''
make install     # update ./bin/install

Reference

make          # same as 'make install'
make install  # installs vim plugins and creates lockfile
make help     # show key bindings
make link     # link the config to ~/.vim and ~/.config/nvim
make upgrade  # updates plugins (dangerous)
make restore  # restore from lockfile

Minimal mode

When Vim is started as the Git editor, it defaults to minimal mode where it doesn't load many of the plugins.

To force this behavior elsewhere, you can use env GIT_DIR='.' vim.

Tips

brew install macvim ---with-override-system-vim --with-python3 --with-lua --with-luajit

Or use Neovim!

Troubleshooting

Make tells me `nvim: command not found`.

Either install neovim, or use env vim=vim make in place of make.

(MacVim) I get Python errors.

In macOS, use MacVim to use a better build of vim with support for Ruby, Python, Lua, and other niceties.

brew install macvim ---with-override-system-vim --with-python3 --with-lua --with-luajit
(Neovim) I get Python errors.

See :help provider-python.

Thanks

vimfiles © 2017-2018, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).

ricostacruz.com  ·  GitHub @rstacruz  ·  Twitter @rstacruz

 


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK