1 |
" Mandrakelinux configuration. |
2 |
" Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> |
3 |
|
4 |
" Don't set vi-compatibility |
5 |
set nocp |
6 |
|
7 |
" Syntax highlighting only for vim-enhanced |
8 |
if has("syntax") |
9 |
syntax on |
10 |
endif |
11 |
|
12 |
" I know it's horrible for a vi master but useful for newbies. |
13 |
imap <C-a> <Esc>I |
14 |
imap <C-e> <ESC>A |
15 |
map <C-Tab> <C-W>w |
16 |
imap <C-Tab> <C-O><C-W>w |
17 |
cmap <C-Tab> <C-C><C-Tab> |
18 |
|
19 |
" Some macros to manage the buffer of vim |
20 |
map <F5> :bp<C-M> |
21 |
map <F6> :bn<C-M> |
22 |
map <F7> :bd<C-M> |
23 |
|
24 |
" Default backspace like normal |
25 |
set bs=2 |
26 |
|
27 |
" Terminal for 80 char ? so vim can play till 79 char. |
28 |
"set textwidth=79 |
29 |
|
30 |
" Some options deactivated by default (remove the "no" to enable them) |
31 |
set nobackup |
32 |
set nohlsearch |
33 |
set noincsearch |
34 |
|
35 |
" Always display a status-bar |
36 |
" set laststatus=2 |
37 |
|
38 |
" Show the position of the cursor |
39 |
set ruler |
40 |
|
41 |
" Uncomment this to disable wrap |
42 |
"set nowrap |
43 |
|
44 |
" Show matching parentheses |
45 |
set showmatch |
46 |
|
47 |
" Make % work with <> |
48 |
set mps+=<:> |