Skip to content

jimcornmell/lvim

Repository files navigation

GitHub License Open Source? Yes! PRs Welcome Web Site

LunarVim Demo LunarVim

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 Web Site

Contents

Installation

  • Follow the instructions on Christian's site
  • Download this repo to ~/.config/lvim

Visual Appearance

Visual Appearance

  • 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

Status line

The status line configuration can be found here

Status Line Normal Status Line Insert Status Line Visual Status Line Replace

This image shows what is in the different sections.

Status Line

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:
    • File information
      • Line Ending, Linux tux, Mac mac or Windows windows
      • File Name (red padlock when the file is readonly)
      • File Type
      • File Size
      • Character encoding
    • Position information - Percentage - Current Line Number / Number of lines in the file - Current column / length of current line - Tab mode, space or tab and number of characters Note the column information is colour coded, >80 = Yellow >120 = Red.

Extra Plugins

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

Configured LSP's

Key Bindings-Cheatsheet

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

Cheatsheet

Some Useful Links

NeoVim Lunar Vim Vim Sheet
Vim Cheatsheet Quick ref Cheatsheet
100 Essential commands Vim tutorial Vim cookbook
VimAwesome    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published