From f2e01d7e513067ddb57c75f6e38cdcf434946cf8 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 22 Oct 2018 00:02:58 +0200 Subject: Major refactoring for version 2.0 vim-plug has been removed and replaced with Vims internal bundle mechanism. But I already noticed, that there is also GLVM now and started trying that as well. --- xdg-additions/applications/gvim-buffer.desktop | 10 +++ xdg-additions/applications/gvim.desktop | 10 +++ xdg-additions/applications/nvim.desktop | 10 +++ xdg-additions/applications/vim.desktop | 13 +++ xdg-additions/bashrc | 30 +++++++ xdg-additions/default-font.conf | 61 +++++++++++++ xdg-additions/gtk-3.0.css | 117 +++++++++++++++++++++++++ 7 files changed, 251 insertions(+) create mode 100644 xdg-additions/applications/gvim-buffer.desktop create mode 100644 xdg-additions/applications/gvim.desktop create mode 100644 xdg-additions/applications/nvim.desktop create mode 100644 xdg-additions/applications/vim.desktop create mode 100644 xdg-additions/bashrc create mode 100644 xdg-additions/default-font.conf create mode 100644 xdg-additions/gtk-3.0.css (limited to 'xdg-additions') diff --git a/xdg-additions/applications/gvim-buffer.desktop b/xdg-additions/applications/gvim-buffer.desktop new file mode 100644 index 0000000..5cd2cbf --- /dev/null +++ b/xdg-additions/applications/gvim-buffer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Gnome Vi IMproved Buffer +Icon=gvim +Comment=Open file in an existing instance of vi and in a new tab +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +Exec=gvim -f -N --remote-silent %F +Terminal=false +X-XClassHintResName=VIM +Categories=Utility;TextEditor; diff --git a/xdg-additions/applications/gvim.desktop b/xdg-additions/applications/gvim.desktop new file mode 100644 index 0000000..37c6e58 --- /dev/null +++ b/xdg-additions/applications/gvim.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Vi IMproved Tab +Comment=Open file in an existing instance of vi and in a new tab +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +Exec=gvim f -N --remote-tab %F +Icon=gvim +Type=Application +Terminal=false +X-XClassHintResName=VIM +Categories=Utility;TextEditor; diff --git a/xdg-additions/applications/nvim.desktop b/xdg-additions/applications/nvim.desktop new file mode 100644 index 0000000..21f0090 --- /dev/null +++ b/xdg-additions/applications/nvim.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Vim +Comment= +Exec=xfce4-terminal --icon /usr/share/icons/HighContrast/256x256/apps/vim.png -T 'nvim' -e '/bin/bash -i -c "env TERM=gnome-256color screen nvr ."' --fullscreen +Icon=/usr/share/icons/HighContrast/256x256/apps/vim.png +Path= +Terminal=false +StartupNotify=false diff --git a/xdg-additions/applications/vim.desktop b/xdg-additions/applications/vim.desktop new file mode 100644 index 0000000..f8efe76 --- /dev/null +++ b/xdg-additions/applications/vim.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +X-Desktop-File-Install-Version=0.23 +Type=Application +Name=Vi IMproved->buffer2 +Icon=gvim +Comment=Open file in an existing instance of vi and in a new tab +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +X-XClassHintResName=VIM +Categories=Application;Utility;TextEditor; +# Exec=vim --servername VIM --remote-silent %F +Exec=xfce4-terminal -e "bash -c '~/.bashrc ; vim --servername VIM --remote-silent %F'" +Terminal=true +StartupNotify=true diff --git a/xdg-additions/bashrc b/xdg-additions/bashrc new file mode 100644 index 0000000..24c51a0 --- /dev/null +++ b/xdg-additions/bashrc @@ -0,0 +1,30 @@ + +# gvim () { /bin/gvim $(if [[ "$#" > 0 && `/bin/gvim --serverlist | wc -l` ]]; then echo --remote; fi) $@; } +# vim () { /bin/vim $(if [[ "$#" > 0 && `/bin/vim --serverlist | wc -l` ]]; then echo --remote; fi) $@; } + +# man() +# { +# /bin/gvim \ +# $(if [[ `/bin/gvim --serverlist | wc -l` > 0 ]]; then echo --remote-send; fi) \ +# ":enew:0read !groffer --pager='cat' --tty $1 col -bx :set filetype=man buftype=nowrite readonlygg"; +# } + +# export MANPAGER='vim -c":set noswapfile|%!col -b" -c":file man|:setlocal filetype=man buftype=nowrite readonly nonumber nolist signcolumn=no" -' +export MANPAGER="vim -M +MANPAGER -" + +# man() { /bin/vim ":enew:0read !groffer --pager='cat' --tty $1 col -bx :set filetype=man buftype=nowrite readonlygg" -; } +# alias git='git -c color.ui=false' +# export GIT_DIFF_OPTS="--no-color" + + + +git config --global --replace-all color.pager 0 +git config --global --replace-all core.pager 'vim -c":set noswapfile filetype=git buftype=nowrite readonly nolist nonumber signcolumn=no|:file git" -' +# export GIT_PAGER='' + +# alias git="TERM=dumb git" + +# export EDITOR="gvim()" +# export PAGER="tee /tmp/output.txt /dev/stdout | /bin/vim -" + +# --remote-expr ":%!col -b" -c":set buftype=nowrite filetype=man readonly" -'A diff --git a/xdg-additions/default-font.conf b/xdg-additions/default-font.conf new file mode 100644 index 0000000..b1de279 --- /dev/null +++ b/xdg-additions/default-font.conf @@ -0,0 +1,61 @@ + + + + + + NotoSans-Regular + + + serif + Noto Serif + + + sans-serif + Noto Sans Mono Bold + + + + monospace + + + SauceCodePro Nerd Font Mono + + + 100 + + + dz + + + 14 + + + + + diff --git a/xdg-additions/gtk-3.0.css b/xdg-additions/gtk-3.0.css new file mode 100644 index 0000000..f347a83 --- /dev/null +++ b/xdg-additions/gtk-3.0.css @@ -0,0 +1,117 @@ +/* +#vim-menubar, +#vim-menubar #menu, +#vim-toolbar, +#vim-gui-drawarea, +#vim-main-window { + color:#6060af; + color: #4e4e4e; + font-family: "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto"; + font-weight:bold; + font-size:8pt; + border:0; + outline:0; +} + +* { + border-width:0px; + outline-width:0px; + padding:0; + margin:0; +} + +#vim-menubar +{ + padding-left:1em; + border-bottom:2px solid #ffffff; +} + +#vim-menubar>* +{ + padding-right:1em; + padding-top:.25em; + padding-bottom:.25em; +} + +#vim-menubar>*, +#vim-main-window { + background-color:#ffffff; + color: #4e4e4e; +} + +menu menuitem:backdrop, menu menuitem:backdrop:hover +{ + border:0px; +} +*/ + +window#vim-main-window > box +{ + background:#fff; + border:2px solid #fff; +} + +/* within window > box ... */ +menubar#vim-menubar { + font-family: "monospace", "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto"; + font-weight:bold; + font-size:8pt; + background: #fff; + /* background: linear-gradient(180deg, white 85%, black); */ +} + +menubar#vim-menubar menuitem { + background:transparent; +} + +menubar#vim-menubar > menuitem { + padding:.25em; +} + +menubar#vim-menubar menuitem box { + padding:.1em .25em; +} + +menubar#vim-menubar menuitem window +{ + margin-top:1em; +} + +/* opened menu (after being clicked) */ +menubar#vim-menubar menuitem window menu { + padding:1px; + background:linear-gradient(90deg, #ccc, #fff); + +} + +menubar#vim-menubar menuitem window menu menuitem { + padding:0em; + margin:0px; +} + +menubar#vim-menubar menuitem window menu menuitem box { + background:rgba(255,255,255,.5); + padding:.25em; + padding-left:1em; + +} + +menubar#vim-menubar menuitem window menu separator { + margin:0; + background:#fff; + border-top:1px dotted #666; +} + + +menubar#vim-menubar menuitem:hover { + box-shadow:none; + background:rgba(0,0,0,.2); + color:#000; +} + + + +/* +toolbar button { +notebook tab { +*/ -- cgit v1.2.3