Coder Social home page Coder Social logo

vimrc's Introduction

Fishy Vim Configuration

Portable neovim configuration tailored for my needs.

Principles

  • Lua - Plugins and configuration should be in lua which is significantly faster than vimscript and way nicer IMO.
  • Use Vim's language - Most of the plugins I use extend vim's natural language - adding targets and motions that can be repeated. Motions include commenting and sorting. Targets include classes, methods, urls, indents, lines and more.
  • Modular config - Each config file should be loadable without the others and can be hacked on individually.
  • Evolution - I'm constantly improving/speeding up/learning new convenient ways of having a better workflow.
  • Speed - I always try to have the least number of keystrokes to achieve what I need.

Prequisites

  • neovim
  • nodejs
  • ruby
  • python

Setup

git clone http://github.com/willfish/vimrc.git ~/<path/to/repos>
cd ~/path/to/repos/vimrc
./setup.sh

Now open vim and run :PackerInstall

Configuration

  • See init configuration file for initialisation and configuration I can't do without.
  • See maps configuration file for normal, visual and terminal mode maps.
  • See opts configuration file for changes to the out of the box configuration of neovim.
  • See plugins for a list of installed plugins.
  • See advanced for plugin configuration.

I'm part way through a migration to 100% lua and still have a vimrc of to-be-migrated vimscript.

Useful vim normal mappings

A list of commands that I find useful and that it is worth you being aware of.

NB: <leader> is defined as , (comma).

  • jk: goes to normal mode from insert and terminal modes.
  • <leader>sv: Source all vim configuration files.
  • <leader>ev: Edit the init vim configuration script.
  • <leader>evi: Edit the init lua configuration script (soon to replace ev).
  • <leader>evm: Edit the maps lua configuration script.
  • <leader>evp: Edit the plugin lua configuration script.
  • <leader>eva: Edit the advanced lua configuration script.
  • <leader>v: vertical split
  • <ctrl>f: opens project wide file search
  • <ctrl>g: opens project wide word search
  • <leader>n: toggles file tree
  • <leader>x: Run tests nearest to the cursor in the current file.
  • <leader>t: Run tests in current file.
  • <leader>r: Run all tests in current project.
  • <leader>e: Run last invocation of tests (nearest, current file, all).
  • <leader>l: Switch to last ran test file.

vimrc's People

Contributors

willfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.