-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
65 lines (45 loc) · 1.41 KB
/
vimrc
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
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
set ignorecase " do case insensitive search
set noswapfile " disable swap file
" disable vi compatibility (emulation of old bugs)
set nocompatible
" use indentation of previous line
set autoindent
" use intelligent indentation for C
set smartindent
" autowrap text (t), and coments (c), don't break long
" lines in insert mode (l), no cindent
:autocmd FileType txt set formatoptions=tcl
\ nocindent comments&
" configure tabwidth and insert spaces instead of tabs
set tabstop=4 " tab width is 4 spaces
set shiftwidth=4 " indent also with 4 spaces
set expandtab " expand tabs to spaces
" turn syntax highlighting on
set t_Co=256
syntax on
" Don't guess the terminal background color
set background=dark
" highlight matching braces
set showmatch
" intelligent comments
set comments=sl:/*,mb:\ *,elx:\ */
" turn line numbers on
set number
" wrap lines at 80 chars.
set textwidth=75
"The next two options turn on fancy searching:
:set hlsearch " highlight all search results
:set incsearch " show incremental search results as you type
"Proper word-wrapping in vim (like in Emacs) (2009-07-27 K.mandla blog),
"break at hyphen, space, URL: slash, hyphens
set formatoptions=l
set lbr
"remap k and j to gk, gj, for moving across wrapped lines.
nnoremap k gk
nnoremap j gj
"choose theme from ~/.vim/colors/
colorscheme zenburn