aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to 'config/nvim/init.vim')
-rw-r--r--config/nvim/init.vim48
1 files changed, 48 insertions, 0 deletions
diff --git a/config/nvim/init.vim b/config/nvim/init.vim
new file mode 100644
index 0000000..3c27767
--- /dev/null
+++ b/config/nvim/init.vim
@@ -0,0 +1,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>