-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 23ec7b0
Showing
13 changed files
with
5,394 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Simple vim | ||
Simple vim config for server. | ||
|
||
## Install | ||
|
||
Run command | ||
|
||
```bash | ||
curl -s -k https://cdn.jsdelivr.net/gh/olonglongo/simple-vim/install.sh | bash | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
# Create Date: 2017-05-17 11:24:39 | ||
# Last Modified: 2018-10-18 18:20:11 | ||
DownloadURL='https://github.com/olonglongo/simple-vim/archive/main.tar.gz' | ||
|
||
cd /tmp | ||
if command -v wget > /dev/null 2>&1; then | ||
wget --no-check-certificate -O simple-vim.tar.gz -c $DownloadURL | ||
elif command -v curl > /dev/null 2>&1; then | ||
curl -k -L -e '; auto' -o simple-vim.tar.gz $DownloadURL | ||
else | ||
echo "[-] Download file failed, please install wget or curl command." >&2 | ||
fi | ||
|
||
if [ -f simple-vim.tar.gz ]; then | ||
test -d simple-vim-main && rm -rf simple-vim-main | ||
echo "[+] Extracting files..." >&2 | ||
if gzip -dc simple-vim.tar.gz | tar -xf -; then | ||
mv simple-vim-main simple-vim | ||
rm -f simple-vim.tar.gz | ||
else | ||
echo "[-] Extract file failed." >&2 | ||
exit 2 | ||
fi | ||
else | ||
echo "[-] Download failed." >&2 | ||
exit 2 | ||
fi | ||
|
||
if [ -d $HOME/.vim ]; then | ||
echo "[+] Backup $HOME/.vim to $HOME/.vim_bak" >&2 | ||
mv $HOME/.vim{,_bak} | ||
fi | ||
if [ -f $HOME/.vimrc ]; then | ||
echo "[+] Backup $HOME/.vimrc to $HOME/.vimrc_bak" >&2 | ||
mv $HOME/.vimrc{,_bak} | ||
fi | ||
|
||
cp -r simple-vim/vim $HOME/.vim | ||
cp simple-vim/vimrc $HOME/.vimrc | ||
rm -rf simple-vim | ||
echo "[+] Install simple vim successfully." >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let g:netrw_dirhistmax =10 | ||
let g:netrw_dirhist_cnt =3 | ||
let g:netrw_dirhist_1='/Users/anton/git/privatisation/Setup/files' | ||
let g:netrw_dirhist_2='/Users/anton/git/privatisation/Setup/InitTSB' | ||
let g:netrw_dirhist_3='/Users/anton/git/privatisation/Setup/bin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
" [onedark.vim](https://github.com/joshdick/onedark.vim/) | ||
|
||
let s:overrides = get(g:, "onedark_color_overrides", {}) | ||
|
||
let s:colors = { | ||
\ "red": get(s:overrides, "red", { "gui": "#E06C75", "cterm": "204", "cterm16": "1" }), | ||
\ "dark_red": get(s:overrides, "dark_red", { "gui": "#BE5046", "cterm": "196", "cterm16": "9" }), | ||
\ "green": get(s:overrides, "green", { "gui": "#98C379", "cterm": "114", "cterm16": "2" }), | ||
\ "yellow": get(s:overrides, "yellow", { "gui": "#E5C07B", "cterm": "180", "cterm16": "3" }), | ||
\ "dark_yellow": get(s:overrides, "dark_yellow", { "gui": "#D19A66", "cterm": "173", "cterm16": "11" }), | ||
\ "blue": get(s:overrides, "blue", { "gui": "#61AFEF", "cterm": "39", "cterm16": "4" }), | ||
\ "purple": get(s:overrides, "purple", { "gui": "#C678DD", "cterm": "170", "cterm16": "5" }), | ||
\ "cyan": get(s:overrides, "cyan", { "gui": "#56B6C2", "cterm": "38", "cterm16": "6" }), | ||
\ "white": get(s:overrides, "white", { "gui": "#ABB2BF", "cterm": "145", "cterm16": "7" }), | ||
\ "black": get(s:overrides, "black", { "gui": "#282C34", "cterm": "235", "cterm16": "0" }), | ||
\ "visual_black": get(s:overrides, "visual_black", { "gui": "NONE", "cterm": "NONE", "cterm16": "0" }), | ||
\ "comment_grey": get(s:overrides, "comment_grey", { "gui": "#5C6370", "cterm": "59", "cterm16": "15" }), | ||
\ "gutter_fg_grey": get(s:overrides, "gutter_fg_grey", { "gui": "#4B5263", "cterm": "238", "cterm16": "15" }), | ||
\ "cursor_grey": get(s:overrides, "cursor_grey", { "gui": "#2C323C", "cterm": "236", "cterm16": "8" }), | ||
\ "visual_grey": get(s:overrides, "visual_grey", { "gui": "#3E4452", "cterm": "237", "cterm16": "15" }), | ||
\ "menu_grey": get(s:overrides, "menu_grey", { "gui": "#3E4452", "cterm": "237", "cterm16": "8" }), | ||
\ "special_grey": get(s:overrides, "special_grey", { "gui": "#3B4048", "cterm": "238", "cterm16": "15" }), | ||
\ "vertsplit": get(s:overrides, "vertsplit", { "gui": "#181A1F", "cterm": "59", "cterm16": "15" }), | ||
\} | ||
|
||
function! onedark#GetColors() | ||
return s:colors | ||
endfunction |
Oops, something went wrong.