-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
50 lines (44 loc) · 988 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
43
44
45
46
47
48
49
50
let &t_SI.="\e[5 q"
let &t_SR.="\e[5 q"
let &t_EI.="\e[1 q"
language en_US
set autoread
set backspace=indent,eol,start
set cursorline
"set foldmethod=indent
set expandtab
set hlsearch
set incsearch
set nocompatible
set noswapfile
set nu
set shiftwidth=4
set smartindent
set tabstop=4
syntax enable
"call plug#begin('~/.vim/plugged')
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
"call plug#end()
nnoremap <C-h> :wincmd h<CR>
nnoremap <C-j> :wincmd j<CR>
nnoremap <C-k> :wincmd k<CR>
nnoremap <C-l> :wincmd l<CR>
nnoremap <C-q> :q!<CR>
nnoremap <C-w> :w<CR>
nnoremap r :wincmd v<bar> :Ex<CR>
inoremap { {}<Left>
inoremap [ []<Left>
inoremap ' ''<Left>
inoremap " ""<Left>
inoremap ` ``<Left>
inoremap ( ()<Left>
inoremap 「 「」<Left>
inoremap ( ()<Left>
inoremap <C-a> <Home>
inoremap <C-b> <Left>
inoremap <C-d> <Del>
inoremap <C-e> <End>
inoremap <C-f> <Right>
inoremap <C-h> <BackSpace>
nmap <Esc> :nohlsearch<Esc>
autocmd TextChanged,TextChangedI <buffer> write