Browse Source

turn gvim toolbar back on, add some buttons

master
Brennen Bearnes 2 years ago
parent
commit
efc43f0ee8
7 changed files with 61 additions and 4 deletions
  1. +2
    -2
      .gitignore
  2. +24
    -0
      home/.gvimrc
  3. +29
    -0
      home/.vim/bitmaps/README
  4. BIN
      home/.vim/bitmaps/nerdtree.png
  5. BIN
      home/.vim/bitmaps/nerdtreefind.png
  6. BIN
      home/.vim/bitmaps/timeslice.png
  7. +6
    -2
      home/.vimrc

+ 2
- 2
.gitignore View File

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

+ 24
- 0
home/.gvimrc View File

@ -11,3 +11,27 @@ set t_vb=
" color scheme - differs for terminal vim; i have yet to find anything that
" works equally well for both:
" colorscheme mustang
" get a list of current toolbar definitions:
" :tmenu ToolBar
" remove some defaults from toolbar:
aunmenu ToolBar.Help
aunmenu ToolBar.FindHelp
" add a few things to toolbar:
tmenu ToolBar.nerdtree Toggle display of the NERDTree
400amenu ToolBar.nerdtree :NERDTreeToggle<CR>
tmenu ToolBar.nerdtreefind Find current file in NERDTree
410amenu ToolBar.nerdtreefind :NERDTreeFind<CR>
tmenu ToolBar.timeslice Timeslice for current file
420amenu ToolBar.timeslice :call BPB_TimesliceForFile()<CR>
" a separator - name must be unique:
amenu ToolBar.-Vimwiki- :
tmenu ToolBar.vimwiki Open primary Vimwiki index
520amenu ToolBar.vimwiki :VimwikiIndex<CR>

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

@ -0,0 +1,29 @@
The files in this directory are used for gvim toolbar button icons. You can
see the corresponding toolbar item definitions in home/.gvimrc.
Image sources are as follows:
timeslice.png:
- https://commons.wikimedia.org/wiki/File:Modern_clock_chris_kemps_01.svg
by Chris Kempson
Another good option here would be:
- https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_clock.svg
by Mun May Tee-Galloway ( https://commons.wikimedia.org/wiki/User:MGalloway_(WMF) )
...but I'm not using that one since I wanted public domain icons.
nerdtree.png:
- https://openclipart.org/detail/197127/mono-ftout
by Danny Allen ( https://dannya.com/ )
nerdtreefind.png:
- https://openclipart.org/detail/24543/folder1
by Anonymous
I gratefully acknowledge the work of these artists, even if said work may
not look all that great in this resolution / context. :)

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

Before After
Width: 300  |  Height: 300  |  Size: 5.4 KiB

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

Before After
Width: 300  |  Height: 300  |  Size: 2.9 KiB

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

Before After
Width: 20  |  Height: 20  |  Size: 1.1 KiB

+ 6
- 2
home/.vimrc View File

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


Loading…
Cancel
Save