Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 70 lines (55 sloc) 1.645 kb
3add8d6 Alexandre Fiori initial import
authored
1 " fiorix's vimrc
2
3 " Use vim defaults.
4 set nocompatible
5
6 " Show some extra information.
7 set ruler
8 set magic
9 set showcmd
10 set showmode
11 set showmatch
12 set incsearch
13 set laststatus=2
14 set report=0
15
5f54de2 Alexandre Fiori new vimrc
authored
16 " Avoid clear screen at exit
17 set t_ti= t_te=
18
3add8d6 Alexandre Fiori initial import
authored
19 " Explicitly set the default tab to \t, not 8 spaces.
20 " Also set auto indent and allow backspace anywhere.
21 " For more info check this out:
22 " http://www.kernel.org/doc/Documentation/CodingStyle
23 set sw=8 noet
24 set bs=2
25 set ai
26
dd289b7 Alexandre Fiori set ic
authored
27 " set case-insensitive search instead of always search with \c as /\cfoobar
28 set ic
29
3add8d6 Alexandre Fiori initial import
authored
30 " History and .viminfo
31 set history=50
32 set viminfo='20,\"50
33
34 " Colors, syntax and search highlight.
35 syntax on
36 set hlsearch
37 set t_Co=256
38 hi Comment term=bold ctermfg=White
5cce04a Alexandre Fiori tabs, tabs and more tabs
authored
39 hi Search term=bold ctermfg=Black ctermbg=DarkYellow
3add8d6 Alexandre Fiori initial import
authored
40
41 " Highlight cursor line.
42 set cursorline
fc6ddca Alexandre Fiori new settings
authored
43 hi CursorLine cterm=NONE ctermbg=DarkBlue
3add8d6 Alexandre Fiori initial import
authored
44
45 " Highlight overlength lines.
fc6ddca Alexandre Fiori new settings
authored
46 "au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1)
47 au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
d4d1fdb Alexandre Fiori new colorcolumn
authored
48 if exists("+colorcolumn")
49 set colorcolumn=81
50 hi ColorColumn ctermbg=DarkGrey
51 endif
3add8d6 Alexandre Fiori initial import
authored
52
53 " Highlight trailing whitespace.
54 highlight WhitespaceEOL ctermbg=DarkRed
55 match WhitespaceEOL /\s\+$/
56
57 " C and C++ specific settings.
58 autocmd FileType c,cpp set cindent
59
60 " Python specific settings.
61 autocmd FileType python set expandtab tabstop=4 shiftwidth=4 softtabstop=4
5cce04a Alexandre Fiori tabs, tabs and more tabs
authored
62
63 " mini, little and normal tabs
64 map \m <Esc>:set expandtab tabstop=2 shiftwidth=2 softtabstop=2<CR>
65 map \t <Esc>:set expandtab tabstop=4 shiftwidth=4 softtabstop=4<CR>
66 map \T <Esc>:set noexpandtab tabstop=8 shiftwidth=8 softtabstop=0<CR>
67
594d4e5 Alexandre Fiori new cfg
authored
68 " pathogen
fc6ddca Alexandre Fiori new settings
authored
69 "call pathogen#infect()
Something went wrong with that request. Please try again.