All Projects → liuchengxu → Vim Better Default

liuchengxu / Vim Better Default

Licence: mit
🎨 Simplify your .vimrc and make the default vim better

Projects that are alternatives of or similar to Vim Better Default

Vimrc
📝 Vim Configuration for nerds with vim-plug
Stars: ✭ 33 (-76.09%)
Mutual labels:  vim-plugin, vimrc
vim-easydebugger
A VIM multi-language debugger plugin
Stars: ✭ 47 (-65.94%)
Mutual labels:  vimrc, vim-plugin
Vinux
Swiss Army Knife,Dark power vim config
Stars: ✭ 198 (+43.48%)
Mutual labels:  vim-plugin, vimrc
nan vimrc
A Vim configuration for SSH client to edit on a remote Linux host.
Stars: ✭ 15 (-89.13%)
Mutual labels:  vimrc, vim-plugin
vim
📝 minimalistic vimrc based on KISS principle @vim
Stars: ✭ 46 (-66.67%)
Mutual labels:  vimrc, vim-plugin
VimConfig
Configuration files for Vi-IMproved.
Stars: ✭ 23 (-83.33%)
Mutual labels:  vimrc, vim-plugin
Dot-It-Up
A collection of dotfile scripts, plugins, and clever hacks so that you can become the master of your own OS! 🚀
Stars: ✭ 254 (+84.06%)
Mutual labels:  vimrc, vim-plugin
Vim Monokai Tasty
VIM Colour scheme
Stars: ✭ 279 (+102.17%)
Mutual labels:  vim-plugin, vimrc
Learn Vim
无废话极简版Vim学习笔记!文章按主题分拆为多个章节,并尽量控制每节的信息量;通过文字色彩和字体,将命令、快捷键突出显示;在每节结尾,提供一个命令列表,以便回顾文中介绍的重要命令。如果这些文章能对喜欢Vim的朋友有所益处,我将不胜荣幸。
Stars: ✭ 83 (-39.86%)
Mutual labels:  vim-plugin, vimrc
Nvim Treesitter Context
Show code context
Stars: ✭ 113 (-18.12%)
Mutual labels:  vim-plugin
Vim Clap
👏 Modern performant fuzzy picker for Vim and NeoVim
Stars: ✭ 1,802 (+1205.8%)
Mutual labels:  vim-plugin
Vim Trex
Running T-Rex with Vim
Stars: ✭ 111 (-19.57%)
Mutual labels:  vim-plugin
Incsearch Fuzzy.vim
Stars: ✭ 116 (-15.94%)
Mutual labels:  vim-plugin
Vem Tabline
A lightweight Vim/Neovim plugin to display buffers and tabs in the tabline
Stars: ✭ 129 (-6.52%)
Mutual labels:  vim-plugin
Sqhell.vim
An SQL wrapper for vim
Stars: ✭ 113 (-18.12%)
Mutual labels:  vim-plugin
Vim Bujo
A minimalist task manager for vim.
Stars: ✭ 136 (-1.45%)
Mutual labels:  vim-plugin
Vim For Coding
vim-for-coding
Stars: ✭ 110 (-20.29%)
Mutual labels:  vimrc
Dotfiles
My dotfiles for Archlinux and Windows
Stars: ✭ 1,419 (+928.26%)
Mutual labels:  vimrc
Devdocs.vim
Open devdocs.io from Vim
Stars: ✭ 137 (-0.72%)
Mutual labels:  vim-plugin
Syntastic
Syntax checking hacks for vim
Stars: ✭ 11,044 (+7902.9%)
Mutual labels:  vim-plugin

vim-better-default

There are some general settings for convenience in almost everyone's .vimrc file. Let's shorten your .vimrc and make the default vim better.

Features

  • Out-of-the-box: address a ton of deficiencies of the default vim configurations that nearly everyone can agree upon.

  • Mnemonic key bindings: commands have mnemonic prefixes like <Leader> b for the buffer commands or <Leader> w for the window commands. SPC key is recommended as the leader key. You could also see the key bindings in wiki.

If new to Vim, you can install vim-better-default as a starting point, rather than copying some random vimrc you found.

If you have been a vimmer for quit a while, please see default.vim directly. In the beginning vim-better-default is intended for simplifying the tedious .vimrc file, so you may also use it to shorten your .vimrc.

Installation

This plugin can be installed with a varity of plugin managers, such as:

  • Vundle
    • Add Plugin 'liuchengxu/vim-better-default to .vimrc
    • Run :source $MYVIMRC and :PluginInstall
  • Plug
    • Add Plug 'liuchengxu/vim-better-default to .vimrc
    • Run :source $MYVIMRC and :PlugInstall

Options

Option Description Default
vim_better_default_minimum Only add essential funationalities 0
vim_better_default_backup_on Set backup 0
vim_better_default_persistent_undo Persistent undo 0
vim_better_default_enable_folding Enable fold 1
vim_better_default_key_mapping Whole key (re)mappings 1
vim_better_default_basic_key_mapping Basic key (re)mappings 1
vim_better_default_buffer_key_mapping Buffer key mappings 1
vim_better_default_file_key_mapping File key mappings 1
vim_better_default_fold_key_mapping Fold key mappings 1
vim_better_default_window_key_mapping Window key mappings 1

If you set the vim_better_default_minumum option, then vim seemingly looks like no difference with the default vim, it only adds some essential funtionalities.

let g:vim_better_default_minimum = 1

If you want to exclude key mappings in vim-better-default, just set the value as 0.

let g:vim_better_default_key_mapping = 0

For more details, please refer to the default.vim. Don't worry. It is extremely simple and just part of your own .vimrc file alike.

You can also fork vim-better-default and modify plugin/default.vim for more customization.

How to override the existing settings?

default.vim normally loads after your .vimrc, making it a bit tricky to override. If you want to load it earlier, add the following content to your .vimrc, then follow on the settings you want to override.

For instance, if you don't like relativenumber:

runtime! plugin/default.vim
set norelativenumber

Contributions

If you have any ideas or suggestions to improve vim-better-default, please open an issue, or fork it and send a pull request. Your feedback is highly appreciated.

Inspiration

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].