jahrik.vim
Vim
This guide explains how to install Vim, set up Vundle, add plugins, and configure the Vim settings (vimrc).
Requirements
- You need to have Git installed.
Role Variables
Here are the plugins that will be installed using Vundle:
- "The-NERD-tree"
- "vim-flake8"
- "surround.vim"
- "vadv/vim-chef"
- "vim-syntastic/syntastic"
- "plasticboy/vim-markdown"
- "mzlogin/vim-markdown-toc"
- "ekalinin/Dockerfile.vim"
- "https://github.com/hashivim/vim-terraform.git"
- "https://github.com/wtfbbqhax/Snort-vim.git"
- "https://github.com/pearofducks/ansible-vim.git"
- "https://github.com/powerline/powerline.git"
- "https://github.com/ngmy/vim-rubocop.git"
Configuration settings for Vim:
- Last status line should always be visible.
- Display tab line at the top.
- Do not show mode.
- Use indentation for folds.
- Allow for many levels of folds.
- Use a dark theme.
- Set completion options.
- Highlight column 101.
- Show cursor in the current column and line.
- Use spaces instead of tabs.
- Set tab width and shift width to 2 spaces.
- Enable spell check for English.
- Show line numbers.
Key mappings for easier navigation and commands:
- Use <Ctrl+j> to move down, <Ctrl+k> to move up, <Ctrl+l> to move right, and <Ctrl+h> to move left.
- Use
td to list tasks. - Use
g to toggle the undo history. - Use
to toggle the NERD Tree file explorer. - Use
to toggle spell checking.
Additional settings include:
- Enable syntax highlighting.
- Set the color scheme to slate.
- Enable file type detection and plugin support.
- Adjust specific checkers for different programming languages.
Dependencies
There are no additional dependencies.
Example Playbook
Here’s a simple playbook example to use with this configuration:
- hosts: local
roles:
- { role: jahrik.vim, colorscheme: desert }
License
This project is licensed under GPLv2.
Author Information
For questions or feedback, contact: jahrik@gmail.com
Visit the website: https://homelab.business/