-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (42 loc) · 1.57 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
set nocompatible
if has("syntax")
syntax on
endif
set mouse=a " enables mouse outside gvim
set cmdheight=2 " size of command bar
set number " add line numbering at left
highlight LineNr ctermfg=darkgrey " make line numbers dark
set ruler
set scrolloff=5 " keep 5 lines at top and bottom
set textwidth=80 " 80 width terminal
set background=dark " makes text more readable
set lazyredraw " don't redraw mid-macro
set autowrite " autosave on make, etc
set ignorecase smartcase " search ignores case unless given
" a capitalized query
set autoindent
set shiftwidth=4
set softtabstop=4
set tabstop=8
set shiftround " round to next tab stop
set expandtab " spaces instead of tabs
set showcmd
set showmatch
set incsearch " finds matches as query is typed
set hlsearch " highlights all matches
set noerrorbells
set visualbell t_vb=
nnoremap <space> za " spacebar toggles folds
" swap : and ; in normal mode and visual mode
nnoremap : ;
nnoremap ; :
vnoremap : ;
vnoremap ; :
" C-space toggles in and out of input mode
nnoremap <C-@> a
imap <C-@> <Esc>
" :C clears current search pattern
command C let @/=""
filetype plugin indent on
" OCaml settings
autocmd FileType ocaml setlocal shiftwidth=2 tabstop=2 softtabstop=2