diff options
| author | Max Christian Pohle | 2018-10-29 18:02:40 +0100 |
|---|---|---|
| committer | Max Christian Pohle | 2018-10-29 18:02:40 +0100 |
| commit | eb2e7959987ebc405c7a03060f259655e13f01d0 (patch) | |
| tree | 773e2b638c135fb9861567585f4ce82db252df98 /utils | |
| parent | 6284983fedcbdc54874d6e657047994b292be480 (diff) | |
| download | vim-eb2e7959987ebc405c7a03060f259655e13f01d0.tar.bz2 vim-eb2e7959987ebc405c7a03060f259655e13f01d0.zip | |
Further cleaning finally done
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/applications/gvim-buffer.desktop | 10 | ||||
| -rw-r--r-- | utils/applications/gvim.desktop | 10 | ||||
| -rw-r--r-- | utils/applications/nvim.desktop | 10 | ||||
| -rw-r--r-- | utils/applications/vim.desktop | 13 | ||||
| -rw-r--r-- | utils/bashrc | 30 | ||||
| -rw-r--r-- | utils/default-font.conf | 70 | ||||
| -rw-r--r-- | utils/gtk-3.0.css | 119 |
7 files changed, 262 insertions, 0 deletions
diff --git a/utils/applications/gvim-buffer.desktop b/utils/applications/gvim-buffer.desktop new file mode 100644 index 0000000..5cd2cbf --- /dev/null +++ b/utils/applications/gvim-buffer.desktop | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Type=Application | ||
| 3 | Name=Gnome Vi IMproved Buffer | ||
| 4 | Icon=gvim | ||
| 5 | Comment=Open file in an existing instance of vi and in a new tab | ||
| 6 | 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++; | ||
| 7 | Exec=gvim -f -N --remote-silent %F | ||
| 8 | Terminal=false | ||
| 9 | X-XClassHintResName=VIM | ||
| 10 | Categories=Utility;TextEditor; | ||
diff --git a/utils/applications/gvim.desktop b/utils/applications/gvim.desktop new file mode 100644 index 0000000..37c6e58 --- /dev/null +++ b/utils/applications/gvim.desktop | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Name=Vi IMproved Tab | ||
| 3 | Comment=Open file in an existing instance of vi and in a new tab | ||
| 4 | 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++; | ||
| 5 | Exec=gvim f -N --remote-tab %F | ||
| 6 | Icon=gvim | ||
| 7 | Type=Application | ||
| 8 | Terminal=false | ||
| 9 | X-XClassHintResName=VIM | ||
| 10 | Categories=Utility;TextEditor; | ||
diff --git a/utils/applications/nvim.desktop b/utils/applications/nvim.desktop new file mode 100644 index 0000000..21f0090 --- /dev/null +++ b/utils/applications/nvim.desktop | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Version=1.0 | ||
| 3 | Type=Application | ||
| 4 | Name=Vim | ||
| 5 | Comment= | ||
| 6 | 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 | ||
| 7 | Icon=/usr/share/icons/HighContrast/256x256/apps/vim.png | ||
| 8 | Path= | ||
| 9 | Terminal=false | ||
| 10 | StartupNotify=false | ||
diff --git a/utils/applications/vim.desktop b/utils/applications/vim.desktop new file mode 100644 index 0000000..f8efe76 --- /dev/null +++ b/utils/applications/vim.desktop | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | X-Desktop-File-Install-Version=0.23 | ||
| 3 | Type=Application | ||
| 4 | Name=Vi IMproved->buffer2 | ||
| 5 | Icon=gvim | ||
| 6 | Comment=Open file in an existing instance of vi and in a new tab | ||
| 7 | 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++; | ||
| 8 | X-XClassHintResName=VIM | ||
| 9 | Categories=Application;Utility;TextEditor; | ||
| 10 | # Exec=vim --servername VIM --remote-silent %F | ||
| 11 | Exec=xfce4-terminal -e "bash -c '~/.bashrc ; vim --servername VIM --remote-silent %F'" | ||
| 12 | Terminal=true | ||
| 13 | StartupNotify=true | ||
diff --git a/utils/bashrc b/utils/bashrc new file mode 100644 index 0000000..24c51a0 --- /dev/null +++ b/utils/bashrc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | |||
| 2 | # gvim () { /bin/gvim $(if [[ "$#" > 0 && `/bin/gvim --serverlist | wc -l` ]]; then echo --remote; fi) $@; } | ||
| 3 | # vim () { /bin/vim $(if [[ "$#" > 0 && `/bin/vim --serverlist | wc -l` ]]; then echo --remote; fi) $@; } | ||
| 4 | |||
| 5 | # man() | ||
| 6 | # { | ||
| 7 | # /bin/gvim \ | ||
| 8 | # $(if [[ `/bin/gvim --serverlist | wc -l` > 0 ]]; then echo --remote-send; fi) \ | ||
| 9 | # ":enew<CR>:0read !groffer --pager='cat' --tty $1 <bar> col -bx<CR> :set filetype=man buftype=nowrite readonly<CR>gg"; | ||
| 10 | # } | ||
| 11 | |||
| 12 | # export MANPAGER='vim -c":set noswapfile|%!col -b" -c":file man|:setlocal filetype=man buftype=nowrite readonly nonumber nolist signcolumn=no" -' | ||
| 13 | export MANPAGER="vim -M +MANPAGER -" | ||
| 14 | |||
| 15 | # man() { /bin/vim ":enew<CR>:0read !groffer --pager='cat' --tty $1 <bar> col -bx<CR> :set filetype=man buftype=nowrite readonly<CR>gg" -; } | ||
| 16 | # alias git='git -c color.ui=false' | ||
| 17 | # export GIT_DIFF_OPTS="--no-color" | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | git config --global --replace-all color.pager 0 | ||
| 22 | git config --global --replace-all core.pager 'vim -c":set noswapfile filetype=git buftype=nowrite readonly nolist nonumber signcolumn=no|:file git" -' | ||
| 23 | # export GIT_PAGER='' | ||
| 24 | |||
| 25 | # alias git="TERM=dumb git" | ||
| 26 | |||
| 27 | # export EDITOR="gvim()" | ||
| 28 | # export PAGER="tee /tmp/output.txt /dev/stdout | /bin/vim -" | ||
| 29 | |||
| 30 | # --remote-expr ":%!col -b" -c":set buftype=nowrite filetype=man readonly" -'A | ||
diff --git a/utils/default-font.conf b/utils/default-font.conf new file mode 100644 index 0000000..8c487c9 --- /dev/null +++ b/utils/default-font.conf | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | <?xml version="1.0"?> | ||
| 2 | <!-- this is a configuration file for fontconfig and should be copied or linked to ~/.config/fontconfig/conf.d/ --> | ||
| 3 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
| 4 | <fontconfig> | ||
| 5 | <match> | ||
| 6 | <edit mode="prepend" name="family"><string>NotoSans-Regular</string></edit> | ||
| 7 | </match> | ||
| 8 | <match target="pattern"> | ||
| 9 | <test qual="any" name="family"><string>serif</string></test> | ||
| 10 | <edit name="family" mode="assign" binding="same"><string>Noto Serif</string></edit> | ||
| 11 | </match> | ||
| 12 | <match target="pattern"> | ||
| 13 | <test qual="any" name="family"><string>sans-serif</string></test> | ||
| 14 | <edit name="family" mode="assign" binding="same"><string>Noto Sans Mono Bold</string></edit> | ||
| 15 | </match> | ||
| 16 | <match target="pattern"> | ||
| 17 | <test name="family" qual="any"> | ||
| 18 | <string>monospace</string> | ||
| 19 | </test> | ||
| 20 | <edit binding="strong" mode="assign" name="family"> | ||
| 21 | <string>FuraCode Nerd Font</string> | ||
| 22 | </edit> | ||
| 23 | <edit binding="strong" mode="assign" name="style"> | ||
| 24 | <string>Retina</string> | ||
| 25 | </edit> | ||
| 26 | <edit binding="strong" name="weight" mode="assign"> | ||
| 27 | <int>120</int> | ||
| 28 | </edit> | ||
| 29 | <edit binding="strong" name="embolden" mode="assign"> | ||
| 30 | <bool>true</bool> | ||
| 31 | </edit> | ||
| 32 | <edit mode="assign" name="hinting"> | ||
| 33 | <bool>false</bool> | ||
| 34 | </edit> | ||
| 35 | <edit name="autohint" mode="assign"> | ||
| 36 | <bool>true</bool> | ||
| 37 | </edit> | ||
| 38 | <edit mode="assign" name="hintstyle"> | ||
| 39 | <const>hintmedium</const> | ||
| 40 | </edit> | ||
| 41 | </match> | ||
| 42 | </fontconfig> | ||
| 43 | |||
| 44 | <!-- | ||
| 45 | family: "Anonymous Pro for Powerline"(s) | ||
| 46 | family: "Consolas for Powerline"(s) "Consolas for Powerline FixedD"(s) | ||
| 47 | family: "DejaVu Sans Mono for Powerline"(s) | ||
| 48 | family: "Droid Sans Mono for Powerline"(s) | ||
| 49 | family: "Inconsolata for Powerline"(s) | ||
| 50 | family: "Inconsolata-dz for Powerline"(s) | ||
| 51 | family: "Liberation Mono for Powerline"(s) | ||
| 52 | family: "Menlo for Powerline"(s) | ||
| 53 | family: "Meslo LG L DZ for Powerline"(s) | ||
| 54 | family: "Meslo LG L for Powerline"(s) | ||
| 55 | family: "Meslo LG M DZ for Powerline"(s) | ||
| 56 | family: "Meslo LG M for Powerline"(s) | ||
| 57 | family: "Meslo LG S DZ for Powerline"(s) | ||
| 58 | family: "Meslo LG S for Powerline"(s) | ||
| 59 | family: "PowerlineSymbols"(s) | ||
| 60 | family: "Source Code Pro for Powerline"(s) | ||
| 61 | family: "Source Code Pro for Powerline"(s) "Source Code Pro Black"(s) | ||
| 62 | family: "Source Code Pro for Powerline"(s) "Source Code Pro ExtraLight"(s) | ||
| 63 | family: "Source Code Pro for Powerline"(s) "Source Code Pro Light"(s) | ||
| 64 | family: "Source Code Pro for Powerline"(s) "Source Code Pro Medium"(s) | ||
| 65 | family: "Source Code Pro for Powerline"(s) "Source Code Pro Semibold"(s) | ||
| 66 | family: "Terminus for Powerline"(s) | ||
| 67 | family: "Ubuntu Mono derivative Powerline"(s) | ||
| 68 | family: "xos4 Terminess Powerline"(s) | ||
| 69 | family: "xos4 Terminus for Powerline"(s) | ||
| 70 | --> | ||
diff --git a/utils/gtk-3.0.css b/utils/gtk-3.0.css new file mode 100644 index 0000000..b2adaf6 --- /dev/null +++ b/utils/gtk-3.0.css | |||
| @@ -0,0 +1,119 @@ | |||
| 1 | /* name or link this file ~/.config/gtk-3.0/gtk.css */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | #vim-menubar, | ||
| 5 | #vim-menubar #menu, | ||
| 6 | #vim-toolbar, | ||
| 7 | #vim-gui-drawarea, | ||
| 8 | #vim-main-window { | ||
| 9 | color:#6060af; | ||
| 10 | color: #4e4e4e; | ||
| 11 | font-family: "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto"; | ||
| 12 | font-weight:bold; | ||
| 13 | font-size:8pt; | ||
| 14 | border:0; | ||
| 15 | outline:0; | ||
| 16 | } | ||
| 17 | |||
| 18 | * { | ||
| 19 | border-width:0px; | ||
| 20 | outline-width:0px; | ||
| 21 | padding:0; | ||
| 22 | margin:0; | ||
| 23 | } | ||
| 24 | |||
| 25 | #vim-menubar | ||
| 26 | { | ||
| 27 | padding-left:1em; | ||
| 28 | border-bottom:2px solid #ffffff; | ||
| 29 | } | ||
| 30 | |||
| 31 | #vim-menubar>* | ||
| 32 | { | ||
| 33 | padding-right:1em; | ||
| 34 | padding-top:.25em; | ||
| 35 | padding-bottom:.25em; | ||
| 36 | } | ||
| 37 | |||
| 38 | #vim-menubar>*, | ||
| 39 | #vim-main-window { | ||
| 40 | background-color:#ffffff; | ||
| 41 | color: #4e4e4e; | ||
| 42 | } | ||
| 43 | |||
| 44 | menu menuitem:backdrop, menu menuitem:backdrop:hover | ||
| 45 | { | ||
| 46 | border:0px; | ||
| 47 | } | ||
| 48 | */ | ||
| 49 | |||
| 50 | window#vim-main-window > box | ||
| 51 | { | ||
| 52 | background:#fff; | ||
| 53 | border:2px solid #fff; | ||
| 54 | } | ||
| 55 | |||
| 56 | /* within window > box ... */ | ||
| 57 | menubar#vim-menubar { | ||
| 58 | font-family: "monospace", "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto"; | ||
| 59 | font-weight:bold; | ||
| 60 | font-size:8pt; | ||
| 61 | background: #fff; | ||
| 62 | /* background: linear-gradient(180deg, white 85%, black); */ | ||
| 63 | } | ||
| 64 | |||
| 65 | menubar#vim-menubar menuitem { | ||
| 66 | background:transparent; | ||
| 67 | } | ||
| 68 | |||
| 69 | menubar#vim-menubar > menuitem { | ||
| 70 | padding:.25em; | ||
| 71 | } | ||
| 72 | |||
| 73 | menubar#vim-menubar menuitem box { | ||
| 74 | padding:.1em .25em; | ||
| 75 | } | ||
| 76 | |||
| 77 | menubar#vim-menubar menuitem window | ||
| 78 | { | ||
| 79 | margin-top:1em; | ||
| 80 | } | ||
| 81 | |||
| 82 | /* opened menu (after being clicked) */ | ||
| 83 | menubar#vim-menubar menuitem window menu { | ||
| 84 | padding:1px; | ||
| 85 | background:linear-gradient(90deg, #ccc, #fff); | ||
| 86 | |||
| 87 | } | ||
| 88 | |||
| 89 | menubar#vim-menubar menuitem window menu menuitem { | ||
| 90 | padding:0em; | ||
| 91 | margin:0px; | ||
| 92 | } | ||
| 93 | |||
| 94 | menubar#vim-menubar menuitem window menu menuitem box { | ||
| 95 | background:rgba(255,255,255,.5); | ||
| 96 | padding:.25em; | ||
| 97 | padding-left:1em; | ||
| 98 | |||
| 99 | } | ||
| 100 | |||
| 101 | menubar#vim-menubar menuitem window menu separator { | ||
| 102 | margin:0; | ||
| 103 | background:#fff; | ||
| 104 | border-top:1px dotted #666; | ||
| 105 | } | ||
| 106 | |||
| 107 | |||
| 108 | menubar#vim-menubar menuitem:hover { | ||
| 109 | box-shadow:none; | ||
| 110 | background:rgba(0,0,0,.2); | ||
| 111 | color:#000; | ||
| 112 | } | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | /* | ||
| 117 | toolbar button { | ||
| 118 | notebook tab { | ||
| 119 | */ | ||
