Giter Club home page Giter Club logo

vimrc.js's Introduction

vimrc.js

A vimrc that Just Works™ for modern JavaScript development.

Installing

The easy way

The easiest way to download and use this configuration is to issue the following command.

curl -o- https://raw.githubusercontent.com/zperrault/vimrc.js/master/install.sh | bash

This command will download the installation script and run it through BASH. This script will detect if you have neovim installed, install vim-plug, clone this repo into ~/.vimrc.js, backup your existing vim or neovim configuration, symlink ~/.vimrc.js/vimrc to the appropriate path, and install plugins with vim-plug.

I understand that curl-ing and executing random shell scripts can be scary. You are encouraged to view the source of this file (and tell me how if can be better).

Once installed, you can add your own plugins to ~/.vimrc.js/vimrc.plugs.local and your own settings to ~/.vimrc.js/vimrc.local.

The DIY way

You are by no means required to use the automated installer. All used plugins are listed in vimrc.plugs and all settings for these plugins are listed in vimrc. Feel free to copy and paste pieces of these files into your own vimrc.

Once installed, you can add your own plugins to ~/.vimrc.js/vimrc.plugs.local and your own settings to ~/.vimrc.js/vimrc.local.

Usage

Keybindings

What's in the box?

JavaScript, es6+, FlowType, and JSX syntax highlighting and indentation

Unfortunately there isn't a single plugin out there that provides proper syntax highlighting for modern JavaScript development. This project uses a combination of three plugins to achieve syntax highlighting bliss.

  • pangloss/vim-javascript
  • mxw/vim-jsx
  • gavocanov/vim-js-indent

Syntax highlighting

Intelligent and fast autocomplete

A combination of deoplete and tern means that you'll get smart completion suggestions as you type.

autocomplete

Eslint and FlowType errors on save

Errors reported by eslint and flow are displayed inside vim so you can jump straight to the problem.

Fuzzy file searching

Fuzzy finding is provided by fzf. Open the fuzzy searcher using <C-t> (like Atom)

FZF

File tree viewing

NERDTree provides a project viewer. Toggle it using <C-\> (also similar to Atom).

NERDTree

Git diff markers in the gutter

vimrc.js's People

Watchers

James Cloos avatar Maruf Siddiqui 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.