From 605048dda6dc0ab6596bf9b76a6212cedf80a497 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 18 Dec 2022 18:44:30 +0100 Subject: feat several improvements --- plugin/alpha.vim | 13 ----------- plugin/keymaps.vim | 66 ------------------------------------------------------ 2 files changed, 79 deletions(-) delete mode 100644 plugin/alpha.vim delete mode 100644 plugin/keymaps.vim (limited to 'plugin') diff --git a/plugin/alpha.vim b/plugin/alpha.vim deleted file mode 100644 index 9a8969c..0000000 --- a/plugin/alpha.vim +++ /dev/null @@ -1,13 +0,0 @@ -if !exists('*alpha#save_and_exec') - function! alpha#save_and_exec() abort - if &filetype == 'vim' - :silent! write - :source % - elseif &filetype == 'lua' - :silent! write - :luafi % - endif - - return - endfunction -endif diff --git a/plugin/keymaps.vim b/plugin/keymaps.vim deleted file mode 100644 index 10c5b92..0000000 --- a/plugin/keymaps.vim +++ /dev/null @@ -1,66 +0,0 @@ -scriptencoding utf-8 - -vnoremap p "_dP - -nnoremap Y y$ - -nnoremap n nzzzv -nnoremap N Nzzzv -nnoremap J mzJ`z - -inoremap , ,u -inoremap . .u -inoremap ! !u -inoremap ? ?u -inoremap $ $u -inoremap > >u - -vnoremap < >gv - -vnoremap s :!sort - -nnoremap wsv :vsp -nnoremap wsh :sp - -nnoremap j :cnextzz -nnoremap k :cprevzz - -nnoremap i :lnext -nnoremap o :lprev - -nnoremap bd :bd! - -nnoremap dp ":saveas " . expand('%') - -" For moving quickly up and down, -" Goes to the first line above/below that isn't whitespace -" Thanks to: http://vi.stackexchange.com/a/213 -nnoremap gj :let _=&lazyredraw:set lazyredraw/\%=virtcol(".")v\S:nohl:let &lazyredraw=_ -nnoremap gk :let _=&lazyredraw:set lazyredraw?\%=virtcol(".")v\S:nohl:let &lazyredraw=_ - -" Run the last command -nnoremap c : - - -if has('nvim') - " Make esc leave terminal mode - " tnoremap - tnoremap - - " Easy moving between the buffers - tnoremap h - tnoremap j - tnoremap k - tnoremap l - - " Try and make sure to not mangle space items - " tnoremap - " tnoremap -endif - -nnoremap x :call alpha#save_and_exec() - -nnoremap cc :cclose - -nnoremap ee :vsp .env -- cgit v1.2.3