Meine schlampig kommentierte ~/.vimrc

Das Ergebnis sieht nachher so aus:

vim mit dieser vimrc

 " ~/.vimrc (configuration file for vim only)

"Comments start with a "

" Enable filetype plugins
filetype plugin on

"load plugin txtfmt 
source ~/.vim/plugin/txtfmt.vim

" filetype indent on

" use utf-8 if there are non-ascii files
set encoding=utf-8
setglobal fileencoding=utf-8
set fileencoding=utf-8
set termencoding=utf-8

" Sets how many lines of history VIM has to remember
set history=700

"Display line numbers
set number

"Line numbers relative to the cursor position
set relativenumber

" Ignore case when searching
set ignorecase

" Makes search act like search in modern browsers
set incsearch

" Highlight search results
set hlsearch

" Another color for the tabline
hi TabLine ctermfg=Black ctermbg=LightYellow

" Fuer txtfmt plugin
set ft=txtfmt
syntax on

" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
let g:maplocalleader=','

" Use spaces instead of tabs
set expandtab

" Be smart when using tabs ;)
set smarttab

" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4

" Always show the status line
set laststatus=2

" Show actual time in status line. It doesn't update time if you issue no keystrokes, but as soon as you do anything at all in the editor, you will get the current time.
set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %H:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)

" ~/.vimrc ends here