try to replace vim-plug
This commit is contained in:
parent
6f59c25d75
commit
f18063ce2d
14 changed files with 151 additions and 0 deletions
1
pack/colors/PaperColor
Submodule
1
pack/colors/PaperColor
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1d7ec4e7cd7ee6b689baecd9002342cc55de6c20
|
1
pack/colors/gruvbox8
Submodule
1
pack/colors/gruvbox8
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0d6c7adfcefc7eebc6bb711a927740dde6191e78
|
1
pack/colors/jellybeans
Submodule
1
pack/colors/jellybeans
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 36f4f82bd7749928ba4e61a58b2e76effb6ecd66
|
1
pack/colors/lucius
Submodule
1
pack/colors/lucius
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 770dc0da1d1ce0c21e2d54191aae8f0e6012b6a5
|
1
pack/colors/solarized8
Submodule
1
pack/colors/solarized8
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit ff7ec263d934320deb9c49b2ca8af61caf072f01
|
|
@ -0,0 +1,103 @@
|
|||
"By default I have the windows adjustment functions set to <Ctrl+j> for down, <Ctrl+k> for up, <Ctrl+l> for right & <Ctrl +h> for left
|
||||
"Adjust them to whatever suits your needs
|
||||
|
||||
nnoremap <silent> <C-j> :call DownHorizontal()<CR>
|
||||
nnoremap <silent> <C-k> :call UpHorizontal()<CR>
|
||||
nnoremap <silent> <C-l> :call RightVertical()<CR>
|
||||
nnoremap <silent> <C-h> :call LeftVertical()<CR>
|
||||
|
||||
|
||||
"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
|
||||
|
||||
|
||||
|
||||
|
1
pack/general/vim-commentary
Submodule
1
pack/general/vim-commentary
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 7f2127b1dfc57811112785985b46ff2289d72334
|
1
pack/general/vim-easy-align
Submodule
1
pack/general/vim-easy-align
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1cd724dc239c3a0f7a12e0fac85945cc3dbe07b0
|
1
pack/general/vim-fugitive
Submodule
1
pack/general/vim-fugitive
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 8fa5cad8d7502be2f3438d02f353ab62264d358e
|
1
pack/general/vim-polyglot
Submodule
1
pack/general/vim-polyglot
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 33f610feb73ce782cf41a7d9a377541991c692b5
|
1
pack/general/vim-rsi
Submodule
1
pack/general/vim-rsi
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 24dfc44639166f910ef9e3ca3902e02df77a342a
|
1
pack/general/vim-signify
Submodule
1
pack/general/vim-signify
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a1551dbae3b76035360b2ea2b38555194505d925
|
1
pack/general/vim-tru-typewriter
Submodule
1
pack/general/vim-tru-typewriter
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit d42f2836092bf8aa7e43dff5d2be21317fa696b9
|
Loading…
Add table
Add a link
Reference in a new issue