-
Notifications
You must be signed in to change notification settings - Fork 20
/
.vimperatorrc
109 lines (88 loc) · 3.06 KB
/
.vimperatorrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
" My vimperatorrc uses folds
"
" zR open all folds
" zM close all folds
" za toggle fold at cursor position
" zj move down to start of next fold
" zk move up to end of previous fold
"
" My pentadactylrc command and mapping quick reference {{{1
" -----------------------------------------------------------------
"
" Keyboard mappings
"
" Change Option:
" coh -- Toggles the highlight search
" cog -- Toggle the gui on and off
" cob -- Shows the bookmark toolbar
" cop -- Show the preferences
" cot -- Show listing of tabs
" Bookmark:
" bb -- Bookmarking service (Pinboard)
" bd -- Start the dev meeting
" bp -- Add video to Plex
" br -- Read later in Pocket
" bx -- Kick ass!
" bpr -- Review PRs
"
" Keyboard mappings that have been disabled
"
" d -- Turned off delete current tab
"
" General settings {{{1
" -----------------------------------------------------------------
" tell the bell to go beep itself!
set visualbell
" turn off the freakin' bell
hi Bell display: none;
" remove the right and bottom scrollbars
set gui=none
" show up to 35 items in the completion list
set maxitems=35
" Don't go into insert mode when loading a page
set focuscontent
" use a different color scheme
colorscheme solarized_light
" set a stupid title
set titlestring="oh hai!"
" Searching {{{1
" -----------------------------------------------------------------
" find as you type
set incsearch
" highlight the terms
set hlsearch
" make searches case-insensitive
set ignorecase
" unless they contain upper-case letters
set smartcase
" a toggle for search highlight
map <silent> coh :set hlsearch!<CR>
" Mappings {{{1
" -----------------------------------------------------------------
" bring back/hide portions of the GUI
noremap <silent> cog :set gui=invaddons,invmenu,invnavigation,invtabs<CR>
noremap <silent> cob :set gui=invbookmarks<CR>
" Shortcuts to menus / options
noremap <silent> cop :emenu Edit.Preferences<CR>
" show the available tabs
noremap cot :buffers<CR>
" I tend to tap the 'd' key on my keyboard on accident
noremap d <silent> <Nop>
" Bookmarklets {{{2
" -----------------------------------------------------------------
" use the readability bookmarklet on the current page
noremap <silent> br :open bkm-pocket<CR>
" destroy a website asteroids style
noremap <silent> bx :open bkm-asteroids<CR> <Insert>
" Save to bookmarking service (Pinboard currently)
noremap <silent> bb :open bkm-bookmark<CR>
" Start up the dev meeting
noremap <silent> bd :tabopen bkm-dev-meeting<CR>
" Shortcuts for GitHub Pull Requests
noremap <silent> bpr :tabopen bkm-prs-review<CR>
" Add video on the page to Plex
noremap <silent> bp :open bkm-plex<CR>
" Lastpass vault
noremap <silent> bl :tabopen resource://support-at-lastpass-dot-com/data/vault.html?lplanguage=<CR>
" turn on folds
" vim: fdm=marker