Discussion of .vimrc

Message
Author
grgc
Posts: 8
Joined: Mon Dec 13, 2021 12:20 am

Discussion of .vimrc

#1 Post by grgc »

I searched the forum and did not find anything specifically about configuring vim. I am starting this thread to stimulate discussion. I am new to vim, and not an expert.

This is my first .vimrc. Some of the features are commented out because the threw an error code, and I don't know how to fix them yet.

I don't know how to set this in a scroll box. If somebody could direct me to a guide, I would be grateful.

"This is my first attempt at a basic .vimrc. The intent is to create a simple
"editing experience that I can enhance as I develop more experience and
"understanding.

"First turn off vi settings. Set nocompatible(with vi) first because this
"setting affects "others.
set nocompatible

"Set syntax allows for color highlighting of programming text
"set syntax on

"This is necessary to install plugins
filetype plugin on

"This is one of a number of settings that will be on by default. I will turn
"each off as necessary using the :set setting!.

"This turns on line numbers
set nu

"This puts a line under the cursor.
set cursorline

"This gives me a location for the cursor and shows where I am in the file
set ruler

"Set wrap and characters per line. I am choosing not to wrap lines and placing a
"marker on each line to show when I am at 80 characters.

set nowrap
set colorcolumn=80

"These three settings should set tabs at 4 and replace the tab encoding with 4
"spaces.
set expandtab
set tabstop=4
set softtabstop=4

"Set spelling and language
"set spelling=en_us
"set spell

"This creates the STATUS bar at the bottom and above the ex cmd line.
set laststatus=2
forum
"This sets the bottom cmd line. This could be higher, but I like 1 line.
set cmdheight=1

"This keeps the background dark, if some plugin tries to change it.
set background=dark

"This sets the encoding to a modern standard
set encoding=UTF-8

"Color scheme
colorscheme slate

"Search parameters
set hlsearch
set ic

Return to “Software / Configuration”