Giter VIP home page Giter VIP logo

vim-sensible's Introduction

Neovim Sensible

Contents

Introduction

Neovim’s defaults are pretty good. They are much better than Vim’s at least. But they could be improved, which is why I created this plugin. It is inspired by vim-sensible, but vim-sensible’s changes are only useful to Vim users and not Neovim users because Neovim is already more sensible than Vim. Technically, you can use this plugin even if you are a Vim user, but it is intended for Neovim users. If you use Vim, I recommend installing both vim-sensible and Neovim Sensible.

Changes

Settings

  • window title is enabled

  • default titlestring is "Neovim – %t%( %m%)"

  • line numbering (number and relativenumber) is enabled

  • foldenable is disabled

  • mouse is for Vim and not the terminal

  • cursorline is enabled

  • the default indentation level is set to 4 instead of 8

  • smartindent is enabled

  • termbidi is enabled for right-to-left language writers

  • colorcolumn is set to textwidth + 1

  • do not show the hideous netrw banner

Auto-commands

  • disable marking tab and space characters for diff files
  • disable spell-checking (if it is enabled) for diff and ebuild files
  • set the textwidth to 72 for gitcommit files
  • set two colorcolumns for gitcommit: 51 and 73
  • start gitcommit files in insert mode
  • enable 24-bit colours if the terminal supports it
  • set the spell-checker language to the locale’s default language

Mappings

Completion

Mode Key Mapping
Insert Control-Space Omni complete
Insert Control-L Line complete

Clipboard

Mode Key Mapping
Normal Leader-Y Copy file contents to clipboard
Normal Leader-P Paste from clipboard
Visual Shift-Y Copy to clipboard
Visual Shift-D Cut to clipboard

Movement

Mode Key Mapping
Insert Up Go up even when a completion menu is visible
Insert Down Go down even when a completion menu is visible

Installation

Vim

`# user` git clone https://github.com/amarakon/vim-sensible ~/.vim/pack/vendor/start/vim-sensible

Neovim

`# user` git clone https://github.com/amarakon/vim-sensible ~/.local/share/nvim/site/pack/default/start/vim-sensible

vim-sensible's People

Contributors

amarakon avatar

Stargazers

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