-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
80 lines (49 loc) · 1.21 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
" Disable compatibility with vi; needed for -u invocation of vim.
set nocompatible
""" File type
" Auto-detect file type in use.
filetype on
" Enable and load plugins for detected file type.
filetype plugin on
" Do indenting for detected file type.
filetype indent on
" Enable syntax highlighting.
syntax on
""" Editor editing
" Set undo history length.
set history=1000
" Map alternate escape key.
inoremap jj <esc>
vnoremap jj <esc>
" Use mouse.
set mouse=a
""" Editor display
" Enable line-numbering.
set number
" Highlight current line.
set cursorline
" Amount of padding to maintain around current line.
set scrolloff=2
" No line-wrapping.
set nowrap
""" Whitespace
" Set number of spaces that vim will auto-indent by.
set shiftwidth=4
" Set number of spaces represented by a tab.
set tabstop=4
""" Searching
" Show highlighting while searching.
set incsearch
" Show matching words.
set showmatch
" Highlight search results.
set hlsearch
""" Spelling check
" Enable spelling checker.
set spell spelllang=en_ca
" Set word list.
set spellfile=~/.vim-wordlist-utf-8.add
""" Key bindings
map <C-O> <esc>:tabnew<Enter>:Explore<Enter>
map <leader>[ <esc>:tabprev<Enter>
map <leader>] <esc>:tabnext<Enter>