-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
61 lines (46 loc) · 1.01 KB
/
dot_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
call plug#begin()
"NOTE: path: '~/.vim/plugged'
Plug 'wadackel/vim-dogrun'
Plug 'lifepillar/vim-solarized8'
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
Plug 'tpope/vim-fugitive'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'itchyny/lightline.vim'
call plug#end()
set bg=dark
set relativenumber
set number
set ruler
set scrolloff=10
set laststatus=2
set noshowmode
syntax on
set termguicolors
colorscheme dogrun
let g:lightline = {
\ 'colorscheme': 'one',
\ }
let &t_SI = "\e[6 q"
let &t_EI = "\e[2 q"
set ignorecase
set incsearch
" use system clipboard by default
set clipboard=unnamed
" Key mappings
let mapleader=" "
" Split navigation
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
" Buffer navigation
nnoremap <S-l> :bnext<CR>
nnoremap <S-h> :bprev<CR>
" Saving and quitting
nnoremap <leader>w :w<CR>
nnoremap <leader><BS> :x<CR>
" File navigation (fzf)
nnoremap <C-p> :Files<CR>
" Fugitive
nnoremap <leader>gg :G<CR>