diff options
-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 |