-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
63 lines (59 loc) · 1.1 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
let mapleader = " "
syntax on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set smartindent
set updatetime=250
set wrap
set norelativenumber
set number
set numberwidth=1
set splitright
set splitbelow
set undofile
set noswapfile
set nobackup
set nowritebackup
set ignorecase
set smartcase
set mouse=a
set ruler
set colorcolumn=80
set termguicolors
set encoding=UTF-8
set breakindent
set showmode
set laststatus=1
set incsearch
set hlsearch
set diffopt+=vertical
set backspace=indent,eol,start
set completeopt=menuone,noselect
set scrolloff=999
set conceallevel=1
let &t_SI = "\e[6 q"
let &t_EI = "\e[2 q"
nnoremap j gj
nnoremap k gk
inoremap jk <Esc>
inoremap <C-j> <Esc>
nnoremap <C-j> <Esc>
vnoremap <C-j> <Esc>
onoremap <C-j> <Esc>
nnoremap <leader>v "+p
vnoremap <leader>c "+y
nnoremap <left> :bp<CR>
nnoremap <right> :bn<CR>
nnoremap <C-p> :Files<CR>
nnoremap <leader>w :w<CR>
nnoremap <Up> <Nop>
nnoremap <Down> <Nop>
inoremap <Up> <Nop>
inoremap <Down> <Nop>
nnoremap <Left> :bp<CR>
nnoremap <Right> :bn<CR>
highlight NonText ctermfg=104
hi Comment ctermfg=green
hi EndOfBuffer ctermfg=darkmagenta