-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
55 lines (45 loc) · 890 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
51
52
53
54
55
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'joshdick/onedark.vim'
call vundle#end()
filetype plugin indent on
let mapleader=","
set novisualbell
set noerrorbells
set t_vb=
set tm=500
set scrolloff=5
set clipboard+=unnamedplus
set number
set relativenumber
set showmode
set incsearch
set hlsearch
set ignorecase
set smartcase
set wildmenu
set wildmode=longest:full,full
set history=500
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
set showmatch
set mat=2
set gfn=JetBrains\ Mono\ Regular:h13
nmap <leader>w: w!<cr>
nnoremap x "_x
vnoremap x "_x
if (has("nvim"))
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
if (has("termguicolors"))
set termguicolors
endif
syntax on
colorscheme onedark
command Greview :Git diff --staged
nnoremap <leader>gr :Greview<cr>
map q <Nop>