All Projects → ashfinal → Vimrc Config

ashfinal / Vimrc Config

re-vim: sensible vim configuration

Projects that are alternatives of or similar to Vimrc Config

Dotfiles
💾 Ian's dotfiles, utils, and Zsh/Vim/tmux configs
Stars: ✭ 554 (+161.32%)
Mutual labels:  dotfiles, vimrc, vim-configuration
Vim Bootstrap
Vim Bootstrap is a generator that provides a simple method of generating a configuration for vim / neovim.
Stars: ✭ 1,870 (+782.08%)
Mutual labels:  dotfiles, vimrc, vim-configuration
Learn Vim
无废话极简版Vim学习笔记!文章按主题分拆为多个章节,并尽量控制每节的信息量;通过文字色彩和字体,将命令、快捷键突出显示;在每节结尾,提供一个命令列表,以便回顾文中介绍的重要命令。如果这些文章能对喜欢Vim的朋友有所益处,我将不胜荣幸。
Stars: ✭ 83 (-60.85%)
Mutual labels:  vimrc, vim-configuration
Dotfiles
My configurations and scripts
Stars: ✭ 82 (-61.32%)
Mutual labels:  dotfiles, vimrc
Vim Config Framework
📗 VIM / Neovim configuration framework
Stars: ✭ 97 (-54.25%)
Mutual labels:  dotfiles, vimrc
Dotfiles
My awesome dotfiles 🚀
Stars: ✭ 47 (-77.83%)
Mutual labels:  dotfiles, vim-configuration
Dotfiles
dotfiles managed by GNU Stow
Stars: ✭ 52 (-75.47%)
Mutual labels:  dotfiles, vimrc
Dotfiles
My configuration files
Stars: ✭ 89 (-58.02%)
Mutual labels:  dotfiles, vimrc
Vimrc
📝 Vim Configuration for nerds with vim-plug
Stars: ✭ 33 (-84.43%)
Mutual labels:  vimrc, vim-configuration
Vinux
Swiss Army Knife,Dark power vim config
Stars: ✭ 198 (-6.6%)
Mutual labels:  vimrc, vim-configuration
Dogfiles
dog + dotfiles = dogfiles
Stars: ✭ 104 (-50.94%)
Mutual labels:  dotfiles, vimrc
Vim For Coding
vim-for-coding
Stars: ✭ 110 (-48.11%)
Mutual labels:  vimrc, vim-configuration
Dotfiles
🚀 My setup for linux kernel based operating systems. Managed as a bare repository
Stars: ✭ 44 (-79.25%)
Mutual labels:  dotfiles, vimrc
Vimrc
💺 Options for my preferred text editor.
Stars: ✭ 43 (-79.72%)
Mutual labels:  dotfiles, vimrc
Dotfiles
📃 My configuration files: Vim, Bash, JavaScript, tmux
Stars: ✭ 59 (-72.17%)
Mutual labels:  dotfiles, vimrc
Dotfiles
Get ready for dotfiles. Contains i3, i3blocks, rofi, dunst, picom, vim, tmux, and zsh.
Stars: ✭ 985 (+364.62%)
Mutual labels:  dotfiles, vimrc
Dotfiles
Dotfiles for my Xmonad desktop
Stars: ✭ 88 (-58.49%)
Mutual labels:  dotfiles, vimrc
Arch Dotfiles
A set of elegant dotfiles in the spirit of Arch Linux that will give you a development boon.
Stars: ✭ 19 (-91.04%)
Mutual labels:  dotfiles, vimrc
Takumi
Takumi, clean and elegant dotfiles
Stars: ✭ 22 (-89.62%)
Mutual labels:  dotfiles, vimrc
Dotfiles
My dotfiles managed by GNU Stow - Arch, i3-gaps, bspwm, ncmpcpp, (neo)vim, zsh etc.
Stars: ✭ 99 (-53.3%)
Mutual labels:  dotfiles, vimrc

re-vim: sensible vim configuration

★ Single file, just download it then fire up your nvim/vim!

★ Well polished, should work on Mac, Linux and Windows.

★ Full Language Server Protocol support(node.js required).

★ Easy to maintain and extend, to fulfill your needs.

Get started

Download .vimrc file, put it in your home directory. Run vim as usual, it can handle itself quite well.

Tips for Linux & macOS users(install & update):

curl -Lo ~/.vimrc https://j.mp/re-vim

Need neovim support?

ln ~/.vimrc ~/.config/nvim/init.vim

If on Windows, run this:

mklink "%USERPROFILE%\AppData\Local\nvim\init.vim" "%USERPROFILE%\.vimrc"

Screenshots

neovim_terminal

The screenshot was taken from VimR.

Some old screenshots can be found here.

Plugins

re-vim uses vim-plug (+python required) as plugin manager. Run :PlugInstall in vim to install all built-in plugins. This should be completed in 30 secs.

Plugins list

  • delimitMate - provides insert mode auto-completion for quotes, parens, brackets, etc.
  • vim-easy-align - A Vim alignment plugin
  • goyo.vim - Distraction-free writing in Vim
  • ultisnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!(+python required)
  • emmet-vim - emmet for vim: http://emmet.io/
  • vim-textmanip - easy text manipulation for vim
  • vim-table-mode - VIM Table Mode for instant table creation
  • vim-sandwich - The set of operator and textobject plugins to search/select/edit sandwiched textobjects.
  • targets.vim - Vim plugin that provides additional text objects
  • vim-signature - Plugin to toggle, display and navigate marks
  • vim-fugitive - A Git wrapper so awesome, it should be illegal
  • nerdcommenter - Vim plugin for intensely orgasmic commenting
  • vim-airline - lean & mean status/tabline for vim that's light as air
  • undotree - The ultimate undo history visualizer for VIM
  • ctrlp.vim - Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
  • codi.vim - The interactive scratchpad for hackers.
  • vim-one - Adaptation of one-light and one-dark colorschemes for Vim
  • neocomplete - Next generation completion framework after neocomplcache(+lua required)
  • coc.nvim - Complete engine and Language Server support for neovim & vim, featured as VSCode(node.js required)
  • tagbar - Vim plugin that displays tags in a window, ordered by scope(ctags required)
  • vimtex - A modern vim plugin for editing LaTeX files.
  • asyncrun - Run Async Shell Commands in Vim 8.0 / NeoVim and Output to Quickfix Window

Key bindings

Primary key bindings.

imap jk <Esc>           " Use `jk` to exit Insert Mode
let mapleader = "\<Space>"         " Use `<Space>` as mapleader

Commands

use :W for sudo writing on Mac & Linux.

use :Wcolor for showing highlight group under current cursor

Move around & Edit

Key Mode Action
<BS> Normal unhighlight the search result
[b Normal switch to previous buffer
]b Normal switch to next buffer
<Ctrl> + a Command/Insert move the cursor to the begining of line
<Ctrl> + e Command/Insert move the cursor to the end of line
<Ctrl> + h Command/Insert move the cursor left by word
<Ctrl> + l Command/Insert move the cursor right by word
<Ctrl> + b Insert move the cursor left by char
<Ctrl> + f Insert move the cursor right by char
<Ctrl> + j Insert move the cursor down by line
<Ctrl> + k Insert move the cursor up by line
<Ctrl> + j Visual move the current line downward
<Ctrl> + k Visual move the current line upward
<Ctrl> + h Normal resize the current split window
<Ctrl> + l Normal resize the current split window
<Ctrl> + j Normal resize the current split window
<Ctrl> + k Normal resize the current split window

<Leader> key related

Key Mode Action
<Leader> + r Normal Restore last session
<Leader> + n Normal Toggle showing linenumber
<Leader> + s Normal Strip whitespace & blankline EOF

Plugins key bindings

Plugin Key Mode Action
ctrlp.vim <Leader> + o Normal Open CtrlP window
undotree <Leader> + u Normal Toggle undotree window
nerdcommenter \ Normal/Visual Toggle comment
nerdcommenter Ctrl + \ Normal/Visual CommentSexy
emmet-vim , + , Insert/Visual Expand abbr
vim-easy-align <Leader> + g Normal/Visual Align with
goyo.vim Ctrl + w + <Space> Normal Toggle goyo mode
limelight.vim Ctrl + w + <Enter> Normal Toggle limelight mode
ultisnips <Tab> Insert Expand snips
ultisnips <Tab> Insert Jumpforward
ultisnips <Shift> + <Tab> Insert Jumpbackward
tagbar <Leader> + b Normal Toggle tagbar window
asyncrun & Normal AsyncRun arbitrary command(like wget http://myfile.zip)
asyncrun g& Normal AsyncRun predefined command with -strip option

visual-multi key bindings

Key Mode Action
Ctrl + n Normal/Visual select the word under cursor
<Leader> + A Normal/Visual select all occurrences of the word/selection
Ctrl + <LeftClick> Normal add a single cursor at current position
<Leader> + <Space> Normal/Visual add a cursor or create cursors vertically
Ctrl + <Down/Up> Normal create cursors vertically
n/N/[/] Normal navigate between cursors/regions
q/Q Normal skip/remove the region under cursor

Language Server Protocol related

Key Mode Action
gh Normal show hover document
gd Normal coc-definition
gf Visual coc-format-selected
gy Normal coc-type-definition
gs Normal coc-symbols
go Normal coc-outline
gc Normal coc-diagnostics
gm Normal coc-rename
gr Normal coc-references
gi Normal coc-implementation

You need to run :CocInstall coc-word coc-ultisnips coc-html coc-pyls or something before using LSP related functions. See Using coc extensions · neoclide/coc.nvim Wiki · GitHub .

For more key bindings please refer to the plugin's manual.

Customization

re-vim uses ~/.vim/vimrc.after (and ~/.vim/vimrc.before) for your customization.

For example, to override the default colorscheme:

echo "colorscheme one" >> ~/.vim/vimrc.after

To enable true color support:

echo "set termguicolors" >> ~/.vim/vimrc.after

To add new plugins, you should create ~/.vim/vimrc.plug:

echo "Plug 'altercation/vim-colors-solarized'" >> ~/.vim/vimrc.plug

Related projects

https://github.com/amix/vimrc

https://github.com/spf13/spf13-vim

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