Giter Club home page Giter Club logo

nvim-config's Introduction

My Perfect NeoVim Configuration

Introduction

This is the personal neovim config of Aleksei Khudiakov (aka Xerkus).

Special thanks to:

  • Evan Coury for vim config I used for years and took as basis for this neovim config
  • All of the authors of the other amazing Vim plugins I use every day.

Installation (Fedora)

  • Compile neovim or install from Copr
    • sudo dnf copr enable dperson/neovim-head
    • sudo dnf install neovim
  • Install neovim python packages
    • sudo dnf install gcc redhat-rpm-config python-devel python3-devel
    • sudo pip2 install neovim
    • sudo pip3 install neovim
  • git clone --recursive -b master https://github.com/Xerkus/nvim-config.git $HOME/.config/nvim
  • nvim +PlugUpdate +qa (You may see some errors about colorscheme or other things, just hit enter and ignore them.)
  • for phpvim/phpcd.vim
    • php with pcntl enabled and php-pecl-msgpack installed
  • Copy config.local.vim.dist to config.local.vim and set your base workspace directory.
  • Create an override.local.vim to override settings such as fonts and stuff.

Features

TODO: update this section

This config needs a lot of improvement but i don't feel like doing it right now. Two things to do next: utilize more of Unite.vim and try padawan.vim

Base Customizations

This config ships with the following basic customizations for vim:

  • :w!! invokes a write with sudo.
  • Trailing whitespace is highlighted in red.
  • Trailing whitespace is automatically removed when saving c, cpp, java, php, javascript, python, twig, xml, yml, phtml, or vimrc files.
  • Tab characters displayed as โ–ธ
  • Make searching highlighted, incremental, and case insensitive unless a capital letter is used.
  • Gvim gui cleaned up (removes menu bars and buttons).
  • F1 is mapped to to prevent accidental opening of help.
  • ; is remapped to : for easier transition into command mode.
  • The Vim backup, swap, and view files are consolidated in one place so they do not interfere with your workspace.

Easy Shortcuts

  • <C-a> - Select all
  • <leader>w - Write current file
  • <leader>c and <leader>v - Copy and paste with the system clipboard

PHP Auto-completion

Run composer update in the project to make use of autocompletion.

PHP autocompletion with phpcd.vim is very simple and very limited, it provides contextual methods and properties completion but it won't help with classnames or namespaces. phpcd.vim relies on composer autoloading to discover dependencies and php Reflection to obtain information about them.

nvim-config's People

Contributors

evandotpro avatar xerkus avatar

Watchers

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