dotfiles/config/nvim/init.vim

28 lines
651 B
VimL
Executable file

" (Neo)vim Configuration
" By Flying_Stitchman 4 Jan 2022
" Move this to the keymap file at some point later
inoremap jk <ESC>
xnoremap gy "+y
let mapleader = " "
" fast move
noremap J 6j
noremap K 6k
noremap H <Cmd>BufferLineCyclePrev<CR>
noremap L <Cmd>BufferLineCycleNext<CR>
" Moving between windows
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
" fix it
noremap gh K
noremap M J
tnoremap <Esc> <C-\><C-n>
" nvim builtin option config
luafile /etc/nixos/config/nvim/lua/options.lua
" nvim keymapping
luafile /etc/nixos/config/nvim/lua/keymap.lua
" Main Config stuffs
luafile /etc/nixos/config/nvim/nvim.lua