-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbasic
29 lines (26 loc) · 987 Bytes
/
basic
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
"BASIC OPTIONS
set nocompatible
set wildmenu
" Miscellaneous Options. Values:
" a: ":read" sets window filename
" A: ":write" sets window filename
" B: backslash has no special meaning in ":map"
" c: search continues from the end of the match
" e: automatically add <CR> to the end of executed registers
" F: ":write" sets buffer filename
" s: set buffer options on entering the buffer
" W: refuse to overwrite a readonly file, even with :w!
" Z: don't reset 'readonly' when using :w!
set cpoptions=aABceFsWZ
set wildignore+=*.png,*.jpg,*.gif,*.ai,*.jpeg,*.psd,*.swp,*.jar,*.zip,*.gem,.DS_Store,log/**,tmp/**,coverage/**,rdoc/**
set list
" Spelling
hi SpellErrors guibg=red guifg=black ctermbg=red ctermfg=black
set spell spelllang=en_us " When you need it, you need it.
" toggle spelling
nnoremap <Leader>ss :setlocal spell!<CR>
" n: next, p: previous, a: add, ?: suggest
nnoremap <Leader>sn ]s
nnoremap <Leader>sp ]p
nnoremap <Leader>sa zg
nnoremap <Leader>s? z=