Browse Source

turn gvim toolbar back on, add some buttons

Brennen Bearnes 9 months ago
parent
commit
efc43f0ee8

+ 2
- 2
.gitignore View File

@@ -1,5 +1,6 @@
1
-.vim/*
2 1
 *.swp
2
+bpb-kit_*.deb
3
+home/.vim/bundle
3 4
 home/.xmonad/xmonad-x86_64-linux
4 5
 home/.xmonad/xmonad.errors
5 6
 home/.xmonad/xmonad.hi
@@ -7,4 +8,3 @@ home/.xmonad/xmonad.o
7 8
 home/.xmonad/xmonad.state
8 9
 home/bin/pup
9 10
 tags
10
-bpb-kit_*.deb

+ 24
- 0
home/.gvimrc View File

@@ -11,3 +11,27 @@ set t_vb=
11 11
 " color scheme - differs for terminal vim; i have yet to find anything that
12 12
 " works equally well for both:
13 13
 " colorscheme mustang
14
+
15
+" get a list of current toolbar definitions:
16
+" :tmenu ToolBar
17
+
18
+" remove some defaults from toolbar:
19
+aunmenu ToolBar.Help
20
+aunmenu ToolBar.FindHelp
21
+
22
+" add a few things to toolbar:
23
+
24
+tmenu ToolBar.nerdtree Toggle display of the NERDTree
25
+400amenu ToolBar.nerdtree :NERDTreeToggle<CR>
26
+
27
+tmenu ToolBar.nerdtreefind Find current file in NERDTree
28
+410amenu ToolBar.nerdtreefind :NERDTreeFind<CR>
29
+
30
+tmenu ToolBar.timeslice Timeslice for current file
31
+420amenu ToolBar.timeslice :call BPB_TimesliceForFile()<CR>
32
+
33
+" a separator - name must be unique:
34
+amenu ToolBar.-Vimwiki- :
35
+
36
+tmenu ToolBar.vimwiki Open primary Vimwiki index
37
+520amenu ToolBar.vimwiki :VimwikiIndex<CR>

+ 29
- 0
home/.vim/bitmaps/README View File

@@ -0,0 +1,29 @@
1
+The files in this directory are used for gvim toolbar button icons.  You can
2
+see the corresponding toolbar item definitions in home/.gvimrc.
3
+
4
+Image sources are as follows:
5
+
6
+timeslice.png:
7
+
8
+  - https://commons.wikimedia.org/wiki/File:Modern_clock_chris_kemps_01.svg
9
+    by Chris Kempson
10
+
11
+  Another good option here would be:
12
+
13
+  - https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_clock.svg
14
+    by Mun May Tee-Galloway ( https://commons.wikimedia.org/wiki/User:MGalloway_(WMF) )
15
+
16
+  ...but I'm not using that one since I wanted public domain icons.
17
+
18
+nerdtree.png:
19
+
20
+  - https://openclipart.org/detail/197127/mono-ftout
21
+    by Danny Allen ( https://dannya.com/ )
22
+
23
+nerdtreefind.png:
24
+
25
+  - https://openclipart.org/detail/24543/folder1
26
+    by Anonymous
27
+
28
+I gratefully acknowledge the work of these artists, even if said work may
29
+not look all that great in this resolution / context. :)

BIN
home/.vim/bitmaps/nerdtree.png View File


BIN
home/.vim/bitmaps/nerdtreefind.png View File


BIN
home/.vim/bitmaps/timeslice.png View File


+ 6
- 2
home/.vimrc View File

@@ -83,6 +83,10 @@ let mapleader = ","
83 83
   Plugin 'desert-warm-256'
84 84
   Plugin 'ColorSchemeMenuMaker'
85 85
 
86
+  " Some useful icons in various plugins, if you were willing to deal
87
+  " with the font hassles (i am not)
88
+  " Plugin 'ryanoasis/vim-devicons'
89
+
86 90
   " beyondgrep.com:
87 91
   Plugin 'mileszs/ack.vim'
88 92
 
@@ -305,8 +309,8 @@ let mapleader = ","
305 309
   set smartcase
306 310
   set wrapscan
307 311
 
308
-  " for gvim. no toolbar, otherwise these are the defaults
309
-  set guioptions=aegimrLt
312
+  " for gvim.  no toolbar, otherwise these are the defaults
313
+  " set guioptions=aegimrLt
310 314
 
311 315
   " use + register (x window clipboard) as unnamed register (copy to system
312 316
   " clipboard on yy, for example):

Loading…
Cancel
Save