Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 1.17 KB

vim.org

File metadata and controls

50 lines (45 loc) · 1.17 KB

Vim

Editor of the Beast

General

Extend default configuration:

unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
set mouse-=a

Open files ending with .pl as prolog files:

let g:filetype_pl="prolog"

Appearance

With the relativenumber option, each line in your file is numbered relative to the cursor’s current position to show the distance to that line.

set number relativenumber

Show the cursor position all the time

set ruler

Don’t wake up system with blinking cursor.

let &guicursor = &guicursor . ",a:blinkon0"

Use terminal colors

set notermguicolors
set t_Co=8

Set color of line numbers:

highlight LineNr ctermfg=white
highlight CursorLineNr ctermfg=red
set cursorline
set cursorlineopt=number