Skip to content
/ dotvim Public
forked from cookiengineer/dotvim

🍻 My very own VIM config. It's the very bestest in the galaxy. Towel included.

Notifications You must be signed in to change notification settings

eblab/dotvim

 
 

Repository files navigation

Cookie's VIM config

This is my personal VIM config, I like it very much. The configuration is split up in multiple .vim files, so everything looks nice and clean (and maybe even modular).

It is verified to work on these systems:

  • vim on GNU/Linux in GNOME terminal or kitty
  • vim on Termux for Android
  • MacVIM on MacOS

Installation

If you want this VIM config, do this in your Terminal:

mv ~/.vim   ~/.vim__NOTSOAWESOME;
mv ~/.vimrc ~/.vimrc__NOTSOAWESOME;

git clone https://github.com/cookiengineer/dotvim ~/.vim;
ln -s ~/.vim/.vimrc ~/.vimrc;

Afterwards, start vim and execute :ZenInstall and :ZenUpdate. Now go ahead and enjoy responsibly.

Usage

Fixes

  • Copy/Paste from GUI applications into Terminal
  • Copy/Paste leads to auto-indented code

Auto Commands

  • BufWritePre removes trailing whitespaces
  • BufWritePre and FileWritePre creates non-existing folder paths
  • FileChangedRO, FileChangedShell, FileChangedShellPost have been modified to echo the warning instead of an annoying shell

Key Bindings / All Modes

All key bindings are defined in mappings.vim.

  • [F1] opens netrw as sidebar
  • [F2] turns off highlighting (/<search> in normal mode)
  • [F3] formats, auto-indents and auto-lints the current buffer
  • [+] toggles current window zoom (aka fullscreen mode)
  • [Shift] + [T] creates a new tab
  • [Shift] + [Page Up] opens previous tab
  • [Shift] + [Page Down] opens next tab
  • [Ctrl] + [W], [C] closes tab
  • [Ctrl] + [W], [G], [Arrow Key] moves current window
  • [Ctrl] + [W], [G], [H/J/K/L] moves current window
  • [Ctrl] + [Arrow Up] or [Ctrl] + [K] moves to previous linting error.
  • [Ctrl] + [Arrow Down] or [Ctrl] + [J] moves to next linting error.

Key Bindings / Visual Mode

  • [Ctrl] + [J / K] moves blocks in visual mode (under cursor)
  • [g], [f] opens file (under cursor)
  • [g], [x] opens browser or application via xdg-open (under cursor)

Templates

The templates are defined in templates.vim

Plugins

About

🍻 My very own VIM config. It's the very bestest in the galaxy. Towel included.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 99.3%
  • Other 0.7%