-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
71 lines (66 loc) · 1.45 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
64
65
66
67
68
69
70
71
" ~/.vimrc
set autoindent
set autoread
set background=dark
set backspace=indent,eol,start
set backupdir=$HOME/.local/state/vim/backup//
set complete-=i
set confirm
set directory=$HOME/.local/state/vim/swap//
set display+=lastline
set expandtab
set hidden
set history=1000
set hlsearch
set ignorecase
set incsearch
set nocompatible
set nowrap
set number
set relativenumber
set ruler
set scrolloff=5
set shiftwidth=2
set showcmd
set signcolumn=yes
set smartcase
set softtabstop=2
set tabpagemax=50
set tabstop=2
set ttimeout
set ttimeoutlen=100
set undodir=$HOME/.local/state/vim/undo//
set undofile
set updatetime=100
set viminfo^=!
set wildmenu
if has("termguicolors")
set termguicolors
endif
call plug#begin()
Plug 'airblade/vim-gitgutter'
Plug 'gruvbox-community/gruvbox'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'mbbill/undotree'
Plug 'pearofducks/ansible-vim'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
call plug#end()
autocmd VimEnter * hi Normal guibg=NONE
colorscheme gruvbox
highlight clear SignColumn
let mapleader = " "
nnoremap <C-d> <C-d>zz
nnoremap <C-u> <C-u>zz
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap <leader>bd :bdelete<CR>
nnoremap <leader>bn :bnext<CR>
nnoremap <leader>bp :bprevious<CR>
nnoremap <leader>fb :Buffers<CR>
nnoremap <leader>ff :Files<CR>
nnoremap <leader>fg :Rg<CR>
nnoremap <leader>u :UndotreeToggle <bar> UndotreeFocus<CR>