diff options
author | DrNuget <drnuget@outlook.com> | 2025-01-18 10:34:10 +0200 |
---|---|---|
committer | DrNuget <drnuget@outlook.com> | 2025-01-18 10:34:10 +0200 |
commit | caf7615936db1456eb4ca2c8a81f8679026d617e (patch) | |
tree | b5387a54d856b4e08fdc0655ea976e1ddabb2100 | |
parent | 85acf40be916d0ffcc085cde6e3893ea9bdfff2d (diff) |
vimrc remove capital letters from keybinds
-rw-r--r-- | .config/nvim/init.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 139e733..bb2eb0b 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -13,24 +13,24 @@ vim.cmd([[ set splitbelow splitright " Insert mode hjkl - inoremap <C-h> <Left> - inoremap <C-j> <Down> - inoremap <C-k> <Up> - inoremap <C-l> <Right> + inoremap <C-h> <left> + inoremap <C-j> <down> + inoremap <C-k> <up> + inoremap <C-l> <right> - nnoremap <Space> : + nnoremap <space> : - nnoremap <Leader>o o<Esc> - nnoremap <Leader>O O<Esc> + nnoremap <leader>o o<esc> + nnoremap <leader>O O<esc> " Some C Macros - autocmd Filetype c inoremap im<tab> int<Space>main()<Space>{<Enter><Enter>return<Space>0;<Enter>}<Up><Up><Tab> - autocmd Filetype c inoremap I<tab> #include<Space><><Left> - autocmd Filetype c inoremap w<tab> while()<Space>{<Enter>}<Esc><Up>e2li - autocmd Filetype c inoremap f<tab> for(;;)<Space>{<Enter>}<Esc><Up>e2li + autocmd Filetype c inoremap im<tab> int<space>main()<space>{<enter><enter>return<space>0;<enter>}<up><up><tab> + autocmd Filetype c inoremap I<tab> #include<space><><left> + autocmd Filetype c inoremap w<tab> while()<space>{<enter>}<esc><up>e2li + autocmd Filetype c inoremap f<tab> for(;;)<space>{<enter>}<esc><up>e2li " LaTex Macros - autocmd Filetype tex inoremap equ<tab> \begin{equation}<Enter><Enter>\end{equation}<Up><Tab> + autocmd Filetype tex inoremap equ<tab> \begin{equation}<enter><enter>\end{equation}<up><tab> ]]) vim.g.loaded_netrw = 1 |