serwerowe .vimrc

szybkie .vimrc bez zbędnych pluginów

Vi to dla nas za mało, z pomocą przychodzi Vim.
Lubimy jak pliki tekstowe są czytelne i na wszystkich serwerach wyglądają tak samo.

set nocompatible 
" Use VIM settings rather than Vi settings
" this *must* be first in .vimrc

set background=dark 
" A dark background

set tabstop=4 
" A tab character indents to the 4th column

set softtabstop=4 
" Control how many columns vim uses when you hit Tab in insert mode

set shiftwidth=4 
" Control how many columns text is indented with
" the reindent operations >>, << or ==

set shiftround 
" Use multiple of shiftwidth when indenting with < and >

set expandtab 
" Expand Tab with spaces

set nobackup 
" Do not keep backup files

set nowritebackup 
" Do not produces a backup during a write procedure

set noswapfile 
" Do not produces a swap files

set history=700 
" Keep 700 lines of command line history

set undolevels=700 
" Set undo amount to 700

set number 
" Show line numbers 

filetype off 
" Disable file type detection

filetype plugin indent on 
" If filetype detection was not switched on yet, it will be as well
" This actually loads the file indent.vim in runtimepath

syntax on 
" Turn on color syntax highlighting 

set pastetoggle=<F12> 
" F12: temporarily switch to paste mode

set backspace=indent,eol,start 
" Allow backspacing over everything in insert mode

nnoremap <F4> :set list!<CR> 
" F4: toggle list (display unprintable characters)

nnoremap <F3> :set nonumber!<CR> 
" F3: turn off line numbers

map QQ :qa!<CR> 
" QQ: quit all buffers, without saving, and without a warning

map XX :xa!<CR> 
" XX: exit all (save all changes and close Vim), and without a warning

set hlsearch 
" Highlight search terms

set incsearch 
" Show search matches as you type

set ignorecase 
"Ignore case when searching
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77