-
Notifications
You must be signed in to change notification settings - Fork 15
/
.vimrc
48 lines (37 loc) · 1.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
44
45
46
47
set nocompatible
set encoding=utf-8
set directory=/tmp " put .swp files here
syntax enable
let mapleader = ","
set guifont=Bitstream\ Vera\ Sans\ Mono\ 8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
set mouse=a
"" Appearance
set number " show line numbers
set ruler " ruler display in status line
set showmatch " show matching brackets
set title
set visualbell
"" color default
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase
set smartcase
set wrapscan " search around end of file
set history=1000
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace through everything in insert mode
"" disable arrow keys
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>