GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gko/vimio: 🎩 easy to install/use vim settings

BranchesTags
Open more actions menu

Latest commit

 

History

632 Commits
632 Commits

Folders and files

NameName
Last commit message
Last commit date
UltiSnips
UltiSnips
 
 
after
after
 
 
autoload
autoload
 
 
colors
colors
 
 
iterm2
iterm2
 
 
snippets
snippets
 
 
syntax
syntax
 
 
templates
templates
 
 
.ctags
.ctags
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.vimrc.local
.vimrc.local
 
 
.vimrc_background
.vimrc_background
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
coc-settings.json
coc-settings.json
 
 
init.vim
init.vim
 
 
install.sh
install.sh
 
 
iterm2.png
iterm2.png
 
 
screenshot.png
screenshot.png
 
 
terminal.png
terminal.png
 
 

Repository files navigation

Vim Settings

screenshot

An article describing key features of this config.

Prerequisites

In order to get all features you might want to install following packages:

  • fzf
  • ripgrep
  • npm

Installation

On unix and windows(with bash which can be installed with git):

curl -L https://raw.github.com/gko/vimio/main/install.sh | bash

macOS

In macOS terminal.app don't forget to check the «Use option as meta key»:

terminal

And «Esc+» option in iterm2:

iterm2

Shortcuts

Some of shortcuts(Leader key is comma):

  • Ctrl + s saves current file
  • Leader + s in both select and normal mode initiates search and replace
  • Alt + Up/Down moves line or selection above or below current line(see upside-down for more info)
  • Alt + Left/Right moves character or selection to left or to the right
  • Leader + n toggles NERDTree
  • Leader + m shows current file in NERDTree
  • when in select mode ', ", ( wraps selection accordingly
  • y + m yanks found matches(see yankmatches.vim for more info)

Plugin shortcuts

  • vim-bookmarks
  • vim-emmet
  • vim-checkbox
  • vim-gh-line
  • vim-jsdoc
  • md-img-paste.vim
  • vim-doge

vim-surround

For general instructions see README

See this issue for visual mode

Coc.nvim

For vim I use Coc.nvim, in their repository you can find their example vim configuration for shortcuts.

nvim-lspconfig

For nvim I use native nvim lsp config. You can find the example config here: example lsp config

Language servers installation
Typescript/Javascript

https://github.com/microsoft/typescript-go?tab=readme-ov-file#preview

Go

https://github.com/golang/tools/blob/master/gopls/doc/index.md#installation

Rust

https://rust-analyzer.github.io/book/installation.html

you may need to install:

  • rustup https://rust-lang.github.io/rustup/installation/index.html
  • rust-src rustup component add rust-src
Python
  • pyrefly https://pyrefly.org/en/docs/installation/
  • ty https://docs.astral.sh/ty/installation/
Zig

https://zigtools.org/zls/install/

Scala

https://scalameta.org/metals/docs/editors/vim/#using-an-alternative-lsp-client

PHP

https://github.com/bmewburn/intelephense-docs/blob/master/installation.md

List of all plugins and commands

You can find the list of plugins as well as commands that they provide in the init.vim file.

Your config

If you create ~/.vimrc.local it will be loaded before the end of vim-plug. So you can add a custom config + vim plugins of your choice there.

Example .vimrc.local.

Color scheme

You can have a ~/.vimrc_background file, where you keep custom colorscheme settings.

Example can be found here. And you can symlink it as following:

ln -sf ~/.vim/.vimrc_background ~/

Taking notes and TODOs

  • Leader + w + w opens ~/Documents/Notes/index.md
  • :Todo opens ~/Documents/Notes/todo.md in a vertical split and fills in current date

see more info in this article: https://dev.to/konstantin/taking-notes-in-vim-revisited-558k you can find the code here: https://github.com/gko/vimio/blob/de73a9272c29acc6f2ce6d5be7f24cbe113a85b4/after/plugin/shortcuts.vim#L225-L229

and here

https://github.com/gko/vimio/blob/de73a9272c29acc6f2ce6d5be7f24cbe113a85b4/after/plugin/filetypes.vim#L28-L32

Checkboxes

For checkboxes vim-checkbox plugin is installed

Pasting images

With help of md-img-paste.vim you can paste images by using Leader + p (it would store in the same folder as the markdown document in img folder)

Benchmark

Not that it matters, but I get the following startup time:

$ hyperfine "nvim --headless +qa" --warmup 5
Benchmark 1: nvim --headless +qa
    Time (mean ± σ):     200.1 ms ±   6.9 ms    [User: 123.9 ms, System: 63.2 ms]
    Range (min … max):   191.9 ms … 210.9 ms    14 runs

License

MIT

Copyright (c) 2012-2024 Konstantin Gorodinskiy

About

🎩 easy to install/use vim settings

dev.to/konstantin/configuring-a-perfect-editor-for-frontend-development-1pe5

Topics

distributiondotfilesneovimnvimvimvim-javascriptvim-rubyvim-settingsvimlvimrc

Resources

Readme
MIT license
Activity

Stars

46 stars

Watchers

5 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.