blob: 3c27767fe8ed8d40009bcb6af9d742db2b4f0389 (
plain)
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
|
" Ryo neovim config
" https://ryo.nopwd.lol
" version: alpha
syntax on
colorscheme iceberg
set spelllang=en_us
set spellfile=~/.config/nvim/spell/en.utf-8.add
set termguicolors
set background=dark
set tabstop=4 shiftwidth=4
set autoindent
set relativenumber
set hlsearch incsearch
set scrolloff=10
set ignorecase smartcase
set autochdir
abbreviate W w
abbreviate E e
let g:netrw_banner = 0
let g:netrw_winsize = 16
nnoremap <silent> <ESC> <cmd>nohls<cr>
nnoremap U <C-r>
nmap <space>w <C-w>w
nmap <space>h <C-w>h
nmap <space>j <C-w>j
nmap <space>k <C-w>k
nmap <space>l <C-w>l
nmap <space>o <C-w>o
nmap <space>q <C-w>q
nmap <space>s <C-w>s
nmap <space>v <C-w>v
nmap zj :bp<cr>
nmap zk :bn<cr>
nmap z0 :bd<cr>
nmap z1 :bd#<cr>
nmap zb :ls<cr>:b<space>
nmap <Leader>e :Lexplore!<cr>
nmap <Leader>c :e $MYVIMRC<cr>
nmap <Leader>r :w<bar>so %<cr>
nmap <Leader>m :w<bar>:!make<cr><cr>
nmap <Leader>f <cmd>e ~/.config/nvim/after/ftplugin<cr>
nmap <Leader>o <cmd>browse oldfiles<cr>
nmap <Leader>t <cmd>belowright ter<cr>
nmap <Leader>s <cmd>setlocal spell!<cr>
|