This is a set of config files for the brilliant configuration project LunarVim by Christian Chiarulli. I've been using VI on and off as my daily editor since the early 1990's and Christian's setup is the best I've seen so I've just plagiarized it and added a few of my own twists.
The main changes are documented below:
- My config for status line.
- My dashboard.
- Custom Keybindings.
- Custom Colours.
- and much more.
I intend to merge Christian's changes into my config regularly to keep up with his brilliant work.
If your interested my website is
- Installation
- Visual Appearance
- Status Line
- Extra Plugins
- Configured LSP's
- Key Bindings
- Some Useful Links
- Follow the instructions on Christian's site
- Download this repo to
~/.config/lvim
-
I use zenburn theme. One of the reasons for this is that its available in virtually any plug-in/app/program that allows theming, so I can near consistent code theming everywhere.
-
I've added vertical markers at 80 and 120 characters.
- The status line displays the current column and line length, these change colour at 80 and 120 characters.
-
The current cursor line is highlighted in light red
-
The current cursor column is highlighted in light blue
-
Whitespace at the end of a line in highlighted in bright red.
-
Margin:
- Current line number is highlighted in Yellow
- Relative line numbers are shown in RoyalBlue
- Markers are shown
- Git changes are shown
- Folding marks are also shown in the margin
The status line configuration can be found here
This image shows what is in the different sections.
The line is split into 5 main sections, 3 on the left and 2 on the right:
- On the left:
- VIM Mode is colour coded, see the lualine.lua for details
- Git information
- LSP information
- On the right:
I've added a few extra plugins I use to the configuration:
- Codi I alias "bc" on the command line to get a powerful calculator scratchpad using python.
- Codeium "Free, ultrafast Copilot alternative for Vim and Neovim"
- Colorizer
- Dial I've enabled a bunch of the predefined "increment's", also added a few of my own, e.g: True<->False and full month names, logging levels and more. See the config for detailsI
- Fugitive Git plugin from Tim Pope
- Highlighturl Highlight urls, jump to them with gj
- Hop Better motions with S
- Lazygit F8 to open.
- Markdown_preview Open a markdown file and ":MarkdownPreview"
- Ranger Display with Leaderr
- Symbols outline Display with F12
- Todo comments With a few tweaks....
- Vim Eunuch Vim sugar for the UNIX shell commands that need it the most. Also makes files starting with
#!
executable. - Vim Signature A plugin to place, toggle and display marks.
- Vim Surround Surround.vim is all about "surroundings": parentheses, brackets, quotes, XML tags, and more. The plugin provides mappings to easily delete, change and add such surroundings in pairs.
- Zen Mode Toggle with Leaderz
Note this cheatsheet is available as a HTML file, which is accessed by hitting F1 in vim. See my dotfiles for a simple bash script to convert this GitHut markdown file into HTML (and thus PNG).