aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMax Christian Pohle2018-10-29 18:02:40 +0100
committerMax Christian Pohle2018-10-29 18:02:40 +0100
commiteb2e7959987ebc405c7a03060f259655e13f01d0 (patch)
tree773e2b638c135fb9861567585f4ce82db252df98 /utils
parent6284983fedcbdc54874d6e657047994b292be480 (diff)
downloadvim-eb2e7959987ebc405c7a03060f259655e13f01d0.tar.bz2
vim-eb2e7959987ebc405c7a03060f259655e13f01d0.zip
Further cleaning finally done
Diffstat (limited to 'utils')
-rw-r--r--utils/applications/gvim-buffer.desktop10
-rw-r--r--utils/applications/gvim.desktop10
-rw-r--r--utils/applications/nvim.desktop10
-rw-r--r--utils/applications/vim.desktop13
-rw-r--r--utils/bashrc30
-rw-r--r--utils/default-font.conf70
-rw-r--r--utils/gtk-3.0.css119
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]
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/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]
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/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]
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/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]
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/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" -'
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/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
44menu menuitem:backdrop, menu menuitem:backdrop:hover
45{
46 border:0px;
47}
48*/
49
50window#vim-main-window > box
51{
52 background:#fff;
53 border:2px solid #fff;
54}
55
56/* within window > box ... */
57menubar#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
65menubar#vim-menubar menuitem {
66 background:transparent;
67}
68
69menubar#vim-menubar > menuitem {
70 padding:.25em;
71}
72
73menubar#vim-menubar menuitem box {
74 padding:.1em .25em;
75}
76
77menubar#vim-menubar menuitem window
78{
79 margin-top:1em;
80}
81
82/* opened menu (after being clicked) */
83menubar#vim-menubar menuitem window menu {
84 padding:1px;
85 background:linear-gradient(90deg, #ccc, #fff);
86
87}
88
89menubar#vim-menubar menuitem window menu menuitem {
90 padding:0em;
91 margin:0px;
92}
93
94menubar#vim-menubar menuitem window menu menuitem box {
95 background:rgba(255,255,255,.5);
96 padding:.25em;
97 padding-left:1em;
98
99}
100
101menubar#vim-menubar menuitem window menu separator {
102 margin:0;
103 background:#fff;
104 border-top:1px dotted #666;
105}
106
107
108menubar#vim-menubar menuitem:hover {
109 box-shadow:none;
110 background:rgba(0,0,0,.2);
111 color:#000;
112}
113
114
115
116/*
117toolbar button {
118notebook tab {
119*/
..