Merge branch 'master' of gitlab.com:marty-oehme/dotfiles
This commit is contained in:
commit
ffee75f514
5 changed files with 50 additions and 5 deletions
|
@ -11,7 +11,6 @@
|
|||
" this config does not set nocompatible - neovim does this automatically
|
||||
" this config does not set filetype plugin - vim-sensible does this
|
||||
" }}}
|
||||
" ================================================================================
|
||||
" PLUGIN INSTALLATION - handled by VIM-PLUG {{{
|
||||
" ================================================================================
|
||||
"
|
||||
|
@ -108,7 +107,6 @@ call plug#end()
|
|||
endif
|
||||
|
||||
" }}}
|
||||
" ================================================================================
|
||||
" PLUGIN CONFIGURATION {{{
|
||||
" ================================================================================
|
||||
|
||||
|
@ -226,7 +224,6 @@ let g:tmuxline_preset = {
|
|||
let g:tmux_navigator_save_on_switch = 1
|
||||
|
||||
" }}}
|
||||
" ================================================================================
|
||||
" VIM SETTINGS {{{
|
||||
" ================================================================================
|
||||
"
|
||||
|
@ -270,7 +267,6 @@ highlight ColorColumn ctermbg=magenta
|
|||
call matchadd('ColorColumn', '\%81v', 100)
|
||||
|
||||
" }}}
|
||||
" ================================================================================
|
||||
" KEYBINDINGS {{{
|
||||
" ================================================================================
|
||||
"
|
||||
|
@ -348,7 +344,29 @@ nnoremap <silent> <leader>Q vapJgqap
|
|||
" Enter distraction free prose mode with F11
|
||||
noremap <F11> :Goyo<CR>
|
||||
|
||||
" surround stuff with quotes, from normal or visual mode
|
||||
nnoremap <leader>" viw<esc>a"<esc>bi"<esc>lel
|
||||
vnoremap <leader>" <esc>`<i"<esc>`>la"<esc>l
|
||||
|
||||
" stronger versions of left,right - move all the way
|
||||
nnoremap H ^
|
||||
nnoremap L $
|
||||
|
||||
" }}}
|
||||
" ABBREVIATIONS {{{
|
||||
|
||||
" Typos
|
||||
iabbrev adn and
|
||||
iabbrev waht what
|
||||
iabbrev tehn then
|
||||
iabbrev whit with
|
||||
iabbrev whith with
|
||||
|
||||
" Text expansion
|
||||
iabbrev @@ marty.oehme@gmail.com
|
||||
iabbrev ccopy Copyright 2019 Marty Oehme, all rights reserved.
|
||||
|
||||
"
|
||||
" }}}
|
||||
" ================================================================================
|
||||
" END
|
||||
" ================================================================================
|
||||
|
|
|
@ -75,6 +75,15 @@ c.aliases["q"] = "tab-close"
|
|||
# if we save sessions with w, load sessions with e (again, mimicks vim)
|
||||
c.aliases["e"] = "session-load"
|
||||
|
||||
# bookmarklet aliases:
|
||||
# currently the idea is to prefix bookmarklets with b (as in open "bookmarklet")
|
||||
# wallabag add current page, either with walla command, or <leader>bw
|
||||
c.aliases["wallabag-add"] = "spawn --userscript wallabag_add.sh"
|
||||
config.bind(leader + 'bw', 'wallabag-add', mode='normal')
|
||||
# re-opens the current page on the web archive overview page
|
||||
c.aliases["archive-open"] = "open https://web.archive.org/web/{url}"
|
||||
config.bind(leader + 'ba', 'archive-open', mode='normal')
|
||||
|
||||
# set stylesheets for the browser to use
|
||||
# leader - ss to remove all applied stylesheets
|
||||
config.bind(leader + 'ss', 'set content.user_stylesheets ""')
|
||||
|
|
3
.config/shell/rc.d/autostartx.sh
Normal file
3
.config/shell/rc.d/autostartx.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
# if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||
# exec startx ~/.xinitrc
|
||||
# fi
|
3
.config/shell/rc.d/enable-fasd-hook.sh
Normal file
3
.config/shell/rc.d/enable-fasd-hook.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# more usage instructions at https://github.com/clvv/fasd
|
||||
eval "$(fasd --init auto)"
|
12
.local/share/qutebrowser/userscripts/wallabag_add.sh
Executable file
12
.local/share/qutebrowser/userscripts/wallabag_add.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#! /usr/bin/bash
|
||||
|
||||
# from swalladge:
|
||||
# https://github.com/swalladge/dotfiles/blob/master/local/share/qutebrowser/userscripts/wallabag_add.sh
|
||||
|
||||
# for wallabag v1.*
|
||||
# `-w 0` disables auto line wrapping in base64
|
||||
# echo "open -t https://www.framabag.org/u/swalladge/?action=add&url='`echo -n "$QUTE_URL" | base64 -w 0`'" >> "$QUTE_FIFO"
|
||||
|
||||
|
||||
# v2.*
|
||||
echo "open https://read.martyoeh.me/bookmarklet?url=$QUTE_URL" >> "$QUTE_FIFO"
|
Loading…
Reference in a new issue