-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
42 lines (41 loc) · 861 Bytes
/
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
set nocompatible
set encoding=utf-8
set spelllang=en_us
set whichwrap+=<,>,h,l
set so=7
set number
set undolevels=1000
set nobackup
set nowritebackup
set noswapfile
set hlsearch
set ignorecase
set smartcase
set magic
set list
set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮
set nocursorline
set mouse=a
set showmatch
set mat=2
set expandtab
set linebreak
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround
set wrap
set colorcolumn=80,120
highlight ColorColumn ctermbg=237
augroup markdownSpell
autocmd!
autocmd FileType markdown setlocal spell
autocmd BufRead,BufNewFile *.md setlocal spell
autocmd FileType text setlocal spell
autocmd BufRead,BufNewFile *.txt setlocal spell
autocmd FileType gitcommit setlocal spell
augroup END
nnoremap <SPACE> <Nop>
let mapleader=" "
noremap <leader>y "+y
noremap <leader>p "+p