-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc_minimal
67 lines (53 loc) · 1.07 KB
/
vimrc_minimal
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
" Minimal Vim config
filetype plugin indent on
syntax enable
" Options
" -------
set autoindent
set autoread
set backspace=indent,eol,start
set complete-=i
set cscopeverbose
set display=lastline
set encoding=utf-8
set fillchars=vert:\|,fold:·
set formatoptions=tcqj
set history=10000
set hlsearch
set incsearch
set laststatus=2
set listchars=tab:>\ ,trail:-,nbsp:+
set nocompatible
set ruler
set sessionoptions-=options
set showcmd
set sidescroll=1
set smarttab
set tabpagemax=50
set tags=./tags;,tags
set ttyfast
set viminfo+=!
set wildmenu
" Turn on persistent undo
set undofile
" Show whitespace
set list
" Soft indent for soft wrap lines
let &showbreak = '+ '
" Show position in file
set ruler
" Smart case-insensitive search
set ignorecase
set smartcase
" Allow buffers with unsaved changes to be hidden
set hidden
" Autocomplete with dictionary words when spell check is on
set complete+=kspell
" Mappings
" --------
" Map <Leader> to space-bar
let mapleader = "\<Space>"
" Toggle spell check
nnoremap <Leader>s :set spell!<CR>
" Delete buffer
nnoremap <C-x> :bdelete<CR>