-
Notifications
You must be signed in to change notification settings - Fork 8
/
.vimrc
43 lines (40 loc) · 2.12 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
" General
filetype on
filetype plugin indent on
set backspace=indent,eol,start " make backspace a bit more flexible, http://vim.wikia.com/wiki/Backspace_and_delete_problems
set iskeyword+=_,@,%,# " none of these are word dividers ???
set nobackup
set nowritebackup " like set nobackup.
set nocompatible " Explicitly get out of vi-compatible mode
set noerrorbells " Do not make any noise!
set vb " I said, NO noise
set wildignore=.svn,CVS,.git,.hg,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.png,*.xpm,*.gif,*.pyc,*.pyo,*/cache/**,*/logs/** " Ignore certain files
syntax on
" UI
set background=dark
set cursorline " Highlight the current line
set hlsearch " Highlight matches.
set incsearch " Highlight matches as you type.
set langmenu=en_US.UTF-8
set list " Show special chars
set number " Show line numbers in gutter
set ruler " Always show current position along the bottom
set scrolloff=8 " Keep x line for scope while scrolling
set showcmd " Show (partial) command in status line.
set showmatch " Show matching bracket
set sidescrolloff=8 " same same
" Editing
set encoding=UTF-8 " Display UTF-8
set expandtab " We do not want tabs, do we?
set ff=unix " Unix EOL
set fileencoding=UTF-8 " Speak UTF-8
set ignorecase " case sensitivity is dumb
set listchars=trail:¤,tab:>- " only show ther chars
set nowrap " No, I don't want wordwrap
set shiftround " when at 3 spaces, and I hit > ... go to 4, not 5
set shiftwidth=4
set smartcase " but not where there are different cases
set tabstop=4
" Extra
" return at last position
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif