Coder Social home page Coder Social logo

vimconfiguration's Introduction

Goal

To synchronise Vim/NeoVim settings.

Set-up

Under Linux: The NeoVim configuration should live under ~/.config/nvim.

# Create the NeoVim configuration folder if it doesn't exist yet.
mkdir -pv ~/.config/nvim
# Create a symbolic link to this project's vimrc file
ln -s vimrc ~/.config/nvim/init.vim
# Link after/ folder 
# TODO: is this a remnant from the VIM configuration? Should this be `autoload` instead of `after`? It seems to work, and nvim should be backwards compatible in this regard.
ln -s after/ ~/.config/nvim/after

# Vim-Plug for NeoVim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

# Copy ideavimrc file - this sources the NeoVim configuration file for the IntelliJ IdeaVim plugin.
cp ./ideavimrc ~/.ideavimrc

To install the plugins, simply execute :PlugInstall inside (Neo)Vim.

Windows

This hasn't been tested under Windows in a long time. In particular, this has not been updated for NeoVim.

Original NeoVim instructions: The vimrc file lives under %userprofile%\vimfiles\vimrc on Windows (note that there's no dot), so you only need to create a symbolic link and you're done. Assuming the repository path is D:\VimConfiguration, the command would be mklink /J C:\Users\XXX\vimfiles D:\VimConfiguration

Links

Keep your vimrc clean:

https://vim.fandom.com/wiki/Keep_your_vimrc_file_clean

Compiler

Compiler: https://vim.fandom.com/wiki/Autoselect_the_right_compiler_using_the_filetype e.g. https://users.rust-lang.org/t/solved-vim-neovim-rust-how-to-run-cargo-check/26071

vimconfiguration's People

Contributors

stygianlightning avatar

Watchers

 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.