aboutsummaryrefslogtreecommitdiff
path: root/xdg-additions
diff options
context:
space:
mode:
authorMax Christian Pohle2018-10-22 00:02:58 +0200
committerMax Christian Pohle2018-10-22 20:42:25 +0200
commitf2e01d7e513067ddb57c75f6e38cdcf434946cf8 (patch)
tree4e8448506756d2144db173d01385798840507133 /xdg-additions
parent31f80d9c334e38e486545407ea5eb5f5cbb2f07d (diff)
downloadvim-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.tar.bz2
vim-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.zip
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.
Diffstat (limited to 'xdg-additions')
-rw-r--r--xdg-additions/applications/gvim-buffer.desktop10
-rw-r--r--xdg-additions/applications/gvim.desktop10
-rw-r--r--xdg-additions/applications/nvim.desktop10
-rw-r--r--xdg-additions/applications/vim.desktop13
-rw-r--r--xdg-additions/bashrc30
-rw-r--r--xdg-additions/default-font.conf61
-rw-r--r--xdg-additions/gtk-3.0.css117
7 files changed, 251 insertions, 0 deletions
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 @@
1[Desktop Entry]
2Type=Application
3Name=Gnome Vi IMproved Buffer
4Icon=gvim
5Comment=Open file in an existing instance of vi and in a new tab
6MimeType=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++;
7Exec=gvim -f -N --remote-silent %F
8Terminal=false
9X-XClassHintResName=VIM
10Categories=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 @@
1[Desktop Entry]
2Name=Vi IMproved Tab
3Comment=Open file in an existing instance of vi and in a new tab
4MimeType=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++;
5Exec=gvim f -N --remote-tab %F
6Icon=gvim
7Type=Application
8Terminal=false
9X-XClassHintResName=VIM
10Categories=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 @@
1[Desktop Entry]
2Version=1.0
3Type=Application
4Name=Vim
5Comment=
6Exec=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
7Icon=/usr/share/icons/HighContrast/256x256/apps/vim.png
8Path=
9Terminal=false
10StartupNotify=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 @@
1[Desktop Entry]
2X-Desktop-File-Install-Version=0.23
3Type=Application
4Name=Vi IMproved->buffer2
5Icon=gvim
6Comment=Open file in an existing instance of vi and in a new tab
7MimeType=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++;
8X-XClassHintResName=VIM
9Categories=Application;Utility;TextEditor;
10# Exec=vim --servername VIM --remote-silent %F
11Exec=xfce4-terminal -e "bash -c '~/.bashrc ; vim --servername VIM --remote-silent %F'"
12Terminal=true
13StartupNotify=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 @@
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" -'
13export 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
21git config --global --replace-all color.pager 0
22git 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/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 @@
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>SauceCodePro Nerd Font Mono</string>
22 </edit>
23 <edit binding="strong" mode="assign" name="weight">
24 <int>100</int>
25 </edit>
26 <edit binding="strong" mode="assign" name="style">
27 <string>dz</string>
28 </edit>
29 <edit binding="strong" mode="assign" name="pixelsize">
30 <double>14</double>
31 </edit>
32 </match>
33</fontconfig>
34
35<!--
36 family: "Anonymous Pro for Powerline"(s)
37 family: "Consolas for Powerline"(s) "Consolas for Powerline FixedD"(s)
38 family: "DejaVu Sans Mono for Powerline"(s)
39 family: "Droid Sans Mono for Powerline"(s)
40 family: "Inconsolata for Powerline"(s)
41 family: "Inconsolata-dz for Powerline"(s)
42 family: "Liberation Mono for Powerline"(s)
43 family: "Menlo for Powerline"(s)
44 family: "Meslo LG L DZ for Powerline"(s)
45 family: "Meslo LG L for Powerline"(s)
46 family: "Meslo LG M DZ for Powerline"(s)
47 family: "Meslo LG M for Powerline"(s)
48 family: "Meslo LG S DZ for Powerline"(s)
49 family: "Meslo LG S for Powerline"(s)
50 family: "PowerlineSymbols"(s)
51 family: "Source Code Pro for Powerline"(s)
52 family: "Source Code Pro for Powerline"(s) "Source Code Pro Black"(s)
53 family: "Source Code Pro for Powerline"(s) "Source Code Pro ExtraLight"(s)
54 family: "Source Code Pro for Powerline"(s) "Source Code Pro Light"(s)
55 family: "Source Code Pro for Powerline"(s) "Source Code Pro Medium"(s)
56 family: "Source Code Pro for Powerline"(s) "Source Code Pro Semibold"(s)
57 family: "Terminus for Powerline"(s)
58 family: "Ubuntu Mono derivative Powerline"(s)
59 family: "xos4 Terminess Powerline"(s)
60 family: "xos4 Terminus for Powerline"(s)
61-->
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 @@
1/*
2#vim-menubar,
3#vim-menubar #menu,
4#vim-toolbar,
5#vim-gui-drawarea,
6#vim-main-window {
7 color:#6060af;
8 color: #4e4e4e;
9 font-family: "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto";
10 font-weight:bold;
11 font-size:8pt;
12 border:0;
13 outline:0;
14}
15
16* {
17 border-width:0px;
18 outline-width:0px;
19 padding:0;
20 margin:0;
21}
22
23#vim-menubar
24{
25 padding-left:1em;
26 border-bottom:2px solid #ffffff;
27}
28
29#vim-menubar>*
30{
31 padding-right:1em;
32 padding-top:.25em;
33 padding-bottom:.25em;
34}
35
36#vim-menubar>*,
37#vim-main-window {
38 background-color:#ffffff;
39 color: #4e4e4e;
40}
41
42menu menuitem:backdrop, menu menuitem:backdrop:hover
43{
44 border:0px;
45}
46*/
47
48window#vim-main-window > box
49{
50 background:#fff;
51 border:2px solid #fff;
52}
53
54/* within window > box ... */
55menubar#vim-menubar {
56 font-family: "monospace", "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto";
57 font-weight:bold;
58 font-size:8pt;
59 background: #fff;
60 /* background: linear-gradient(180deg, white 85%, black); */
61}
62
63menubar#vim-menubar menuitem {
64 background:transparent;
65}
66
67menubar#vim-menubar > menuitem {
68 padding:.25em;
69}
70
71menubar#vim-menubar menuitem box {
72 padding:.1em .25em;
73}
74
75menubar#vim-menubar menuitem window
76{
77 margin-top:1em;
78}
79
80/* opened menu (after being clicked) */
81menubar#vim-menubar menuitem window menu {
82 padding:1px;
83 background:linear-gradient(90deg, #ccc, #fff);
84
85}
86
87menubar#vim-menubar menuitem window menu menuitem {
88 padding:0em;
89 margin:0px;
90}
91
92menubar#vim-menubar menuitem window menu menuitem box {
93 background:rgba(255,255,255,.5);
94 padding:.25em;
95 padding-left:1em;
96
97}
98
99menubar#vim-menubar menuitem window menu separator {
100 margin:0;
101 background:#fff;
102 border-top:1px dotted #666;
103}
104
105
106menubar#vim-menubar menuitem:hover {
107 box-shadow:none;
108 background:rgba(0,0,0,.2);
109 color:#000;
110}
111
112
113
114/*
115toolbar button {
116notebook tab {
117*/
..