-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
43 lines (37 loc) · 1010 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
set showmatch
set ignorecase
set hlsearch
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
set autoindent
set number
set relativenumber
set encoding=utf8
syntax on
filetype plugin indent on
filetype plugin on
call plug#begin('~/.config/nvim/plugged')
Plug 'scrooloose/nerdcommenter' " commend Keybinding
Plug 'jiangmiao/auto-pairs' " automatic brackets
Plug 'sbdchd/neoformat' " auto formatter
Plug 'jacoborus/tender.vim' " colorscheme
" ---
call plug#end()
" ----------------------
" change <leader> to space
let mapleader=" "
" -----------------------
" remap keys
inoremap ii <Esc> " map ii in insertmode to Escape
tnoremap <Esc> <C-\><C-n> " allow ESC in terminal mode
vmap <Leader>y "+y " map copy to system clipboard
nnoremap <Leader>k :wincmd k<CR>
nnoremap <Leader>j :wincmd j<CR>
nnoremap <Leader>h :wincmd h<CR>
nnoremap <Leader>l :wincmd l<CR>
nnoremap <Leader>f :Neoformat<CR>
" colorscheme
colorscheme tender
hi Normal guibg=NONE ctermbg=NONE