From f18063ce2d2225e0805d008e511f8c4cbf42e648 Mon Sep 17 00:00:00 2001 From: Von Random Date: Fri, 22 Jun 2018 19:40:42 +0300 Subject: [PATCH] try to replace vim-plug --- .gitmodules | 36 ++++++ pack/colors/PaperColor | 1 + pack/colors/gruvbox8 | 1 + pack/colors/jellybeans | 1 + pack/colors/lucius | 1 + pack/colors/solarized8 | 1 + .../plugin/directionalWindowResizer.vim | 103 ++++++++++++++++++ pack/general/vim-commentary | 1 + pack/general/vim-easy-align | 1 + pack/general/vim-fugitive | 1 + pack/general/vim-polyglot | 1 + pack/general/vim-rsi | 1 + pack/general/vim-signify | 1 + pack/general/vim-tru-typewriter | 1 + 14 files changed, 151 insertions(+) create mode 100644 .gitmodules create mode 160000 pack/colors/PaperColor create mode 160000 pack/colors/gruvbox8 create mode 160000 pack/colors/jellybeans create mode 160000 pack/colors/lucius create mode 160000 pack/colors/solarized8 create mode 100644 pack/general/directionalWindowResizer/plugin/directionalWindowResizer.vim create mode 160000 pack/general/vim-commentary create mode 160000 pack/general/vim-easy-align create mode 160000 pack/general/vim-fugitive create mode 160000 pack/general/vim-polyglot create mode 160000 pack/general/vim-rsi create mode 160000 pack/general/vim-signify create mode 160000 pack/general/vim-tru-typewriter diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b530230 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,36 @@ +[submodule "pack/general/vim-easy-align"] + path = pack/general/vim-easy-align + url = https://github.com/junegunn/vim-easy-align.git +[submodule "pack/general/vim-signify"] + path = pack/general/vim-signify + url = https://github.com/mhinz/vim-signify.git +[submodule "pack/general/vim-commentary"] + path = pack/general/vim-commentary + url = https://github.com/tpope/vim-commentary.git +[submodule "pack/general/vim-fugitive"] + path = pack/general/vim-fugitive + url = https://github.com/tpope/vim-fugitive.git +[submodule "pack/general/vim-rsi"] + path = pack/general/vim-rsi + url = https://github.com/tpope/vim-rsi.git +[submodule "pack/general/vim-polyglot"] + path = pack/general/vim-polyglot + url = https://github.com/sheerun/vim-polyglot +[submodule "pack/general/vim-tru-typewriter"] + path = pack/general/vim-tru-typewriter + url = https://git.vdrandom.org/vim-tru-typewriter +[submodule "pack/colors/lucius"] + path = pack/colors/lucius + url = https://github.com/jonathanfilip/vim-lucius.git +[submodule "pack/colors/gruvbox8"] + path = pack/colors/gruvbox8 + url = https://github.com/lifepillar/vim-gruvbox8 +[submodule "pack/colors/solarized8"] + path = pack/colors/solarized8 + url = https://github.com/lifepillar/vim-solarized8.git +[submodule "pack/colors/jellybeans"] + path = pack/colors/jellybeans + url = https://github.com/nanotech/jellybeans.vim.git +[submodule "pack/colors/PaperColor"] + path = pack/colors/PaperColor + url = https://github.com/NLKNguyen/papercolor-theme.git diff --git a/pack/colors/PaperColor b/pack/colors/PaperColor new file mode 160000 index 0000000..1d7ec4e --- /dev/null +++ b/pack/colors/PaperColor @@ -0,0 +1 @@ +Subproject commit 1d7ec4e7cd7ee6b689baecd9002342cc55de6c20 diff --git a/pack/colors/gruvbox8 b/pack/colors/gruvbox8 new file mode 160000 index 0000000..0d6c7ad --- /dev/null +++ b/pack/colors/gruvbox8 @@ -0,0 +1 @@ +Subproject commit 0d6c7adfcefc7eebc6bb711a927740dde6191e78 diff --git a/pack/colors/jellybeans b/pack/colors/jellybeans new file mode 160000 index 0000000..36f4f82 --- /dev/null +++ b/pack/colors/jellybeans @@ -0,0 +1 @@ +Subproject commit 36f4f82bd7749928ba4e61a58b2e76effb6ecd66 diff --git a/pack/colors/lucius b/pack/colors/lucius new file mode 160000 index 0000000..770dc0d --- /dev/null +++ b/pack/colors/lucius @@ -0,0 +1 @@ +Subproject commit 770dc0da1d1ce0c21e2d54191aae8f0e6012b6a5 diff --git a/pack/colors/solarized8 b/pack/colors/solarized8 new file mode 160000 index 0000000..ff7ec26 --- /dev/null +++ b/pack/colors/solarized8 @@ -0,0 +1 @@ +Subproject commit ff7ec263d934320deb9c49b2ca8af61caf072f01 diff --git a/pack/general/directionalWindowResizer/plugin/directionalWindowResizer.vim b/pack/general/directionalWindowResizer/plugin/directionalWindowResizer.vim new file mode 100644 index 0000000..28a5490 --- /dev/null +++ b/pack/general/directionalWindowResizer/plugin/directionalWindowResizer.vim @@ -0,0 +1,103 @@ +"By default I have the windows adjustment functions set to for down, for up, for right & for left +"Adjust them to whatever suits your needs + +nnoremap :call DownHorizontal() +nnoremap :call UpHorizontal() +nnoremap :call RightVertical() +nnoremap :call LeftVertical() + + +"WINDOW RESIZING Down +func! DownHorizontal() +let currentWin = winnr() +"If no window below or above leave as is, otherwise call function + wincmd j +if winnr() == currentWin + wincmd k + if winnr() == currentWin + wincmd k + else + exe currentWin . "wincmd w" + call DownHorizontalAdjust() + endif +else + exe currentWin . "wincmd w" + call DownHorizontalAdjust() +endif +endfun + +func! DownHorizontalAdjust() +let currentWin = winnr() +"If very bottom window, decrease window size, otherwise just increase current window size +wincmd j +if winnr() == currentWin + resize -1 +else + exe currentWin . "wincmd w" + resize +1 +endif +endfun + + +"WINDOW RESIZING Up +func! UpHorizontal () +let currentWin = winnr() +"If no window below or above leave as is + wincmd j +if winnr() == currentWin + wincmd k + if winnr() == currentWin + wincmd k + else + exe currentWin . "wincmd w" + call UpHorizontalAdjust() + endif +else + exe currentWin . "wincmd w" + call UpHorizontalAdjust() +endif +endfun + +func! UpHorizontalAdjust() +let currentWin = winnr() +"If very top window, decrease window size, otherwise just increase current window size + wincmd k + if winnr() == currentWin + resize -1 + else + resize -1 + exe currentWin . "wincmd w" +endif +endfun + + +"WINDOW RESIZING Right (only requires 1 function) +func! RightVertical() +let currentWin = winnr() +" If very right window, decrease window size, otherwise just increase current window size +wincmd l +if winnr() == currentWin + vertical resize -1 +else + exe currentWin . "wincmd w" + vertical resize +1 +endif +endfun + + +"WINDOW RESIZING Left (only requires 1 function) +func! LeftVertical() +let currentWin = winnr() +" If very left window, decrease window size, otherwise just increase current window size +wincmd h +if winnr() == currentWin + vertical resize -1 +else + vertical resize -1 + exe currentWin . "wincmd w" +endif +endfun + + + + diff --git a/pack/general/vim-commentary b/pack/general/vim-commentary new file mode 160000 index 0000000..7f2127b --- /dev/null +++ b/pack/general/vim-commentary @@ -0,0 +1 @@ +Subproject commit 7f2127b1dfc57811112785985b46ff2289d72334 diff --git a/pack/general/vim-easy-align b/pack/general/vim-easy-align new file mode 160000 index 0000000..1cd724d --- /dev/null +++ b/pack/general/vim-easy-align @@ -0,0 +1 @@ +Subproject commit 1cd724dc239c3a0f7a12e0fac85945cc3dbe07b0 diff --git a/pack/general/vim-fugitive b/pack/general/vim-fugitive new file mode 160000 index 0000000..8fa5cad --- /dev/null +++ b/pack/general/vim-fugitive @@ -0,0 +1 @@ +Subproject commit 8fa5cad8d7502be2f3438d02f353ab62264d358e diff --git a/pack/general/vim-polyglot b/pack/general/vim-polyglot new file mode 160000 index 0000000..33f610f --- /dev/null +++ b/pack/general/vim-polyglot @@ -0,0 +1 @@ +Subproject commit 33f610feb73ce782cf41a7d9a377541991c692b5 diff --git a/pack/general/vim-rsi b/pack/general/vim-rsi new file mode 160000 index 0000000..24dfc44 --- /dev/null +++ b/pack/general/vim-rsi @@ -0,0 +1 @@ +Subproject commit 24dfc44639166f910ef9e3ca3902e02df77a342a diff --git a/pack/general/vim-signify b/pack/general/vim-signify new file mode 160000 index 0000000..a1551db --- /dev/null +++ b/pack/general/vim-signify @@ -0,0 +1 @@ +Subproject commit a1551dbae3b76035360b2ea2b38555194505d925 diff --git a/pack/general/vim-tru-typewriter b/pack/general/vim-tru-typewriter new file mode 160000 index 0000000..d42f283 --- /dev/null +++ b/pack/general/vim-tru-typewriter @@ -0,0 +1 @@ +Subproject commit d42f2836092bf8aa7e43dff5d2be21317fa696b9