diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ca5482b..a158f9a 100644 --- 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 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 "+y map "+P +" Save file as sudo on files that require root permission + cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' 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 index 0dcab06..d9f1825 100755 --- 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." ;;