dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

commit 2f83feeccd54f94a9add055debb055e4cbdee057
parent 8f608b405f35ed11154a808ac68f1eeaeafbd49b
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat, 23 Nov 2019 15:35:16 -0500

sync of vim and sxiv

Diffstat:
M.config/nvim/init.vim | 7+++++--
M.config/sxiv/exec/key-handler | 4++--
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -24,7 +24,7 @@ set bg=light set go=a set mouse=a set nohlsearch -set clipboard=unnamedplus +set clipboard+=unnamedplus " Some basics: nnoremap c "_c @@ -86,7 +86,7 @@ set clipboard=unnamedplus " Ensure files are read as what I want: let g:vimwiki_ext2syntax = {'.Rmd': 'markdown', '.rmd': 'markdown','.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'} map <leader>v :VimwikiIndex - let g:vimwiki_list = [{'path': '~/repos/writings', 'syntax': 'markdown', 'ext': '.md'}] + let g:vimwiki_list = [{'path': '~/vimwiki', 'syntax': 'markdown', 'ext': '.md'}] autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff autocmd BufRead,BufNewFile *.tex set filetype=tex @@ -95,6 +95,9 @@ set clipboard=unnamedplus vnoremap <C-c> "+y map <C-p> "+P +" Save file as sudo on files that require root permission + cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! + " Enable Goyo by default for mutt writting autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh while read file do case "$1" in @@ -23,7 +23,7 @@ do echo -n "$file" | xclip -selection clipboard && notify-send "$file copied to clipboard" & ;; "Y") - echo -n "$(readlink -f "$file")" | xclip -selection clipboard && + readlink -f "$file" | xclip -selection clipboard && notify-send "$(readlink -f "$file") copied to clipboard" & ;; "d") [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;