From c581e72110ad1665efd12d7a2f6ce1093ba558f0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 16 Jul 2019 13:12:01 +0200 Subject: [PATCH 1/2] Add yanking filepath/dir from vifm to clipboard Use yd for directory, yf for file path, yn for file name (without full path), yr for yanking the root of current filename. Makes use of xclip to work. --- .config/vifm/vifmrc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 662442a..9e0d307 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -411,6 +411,7 @@ nmap Q :q " for now they use space for my leader key - so we can't switch panels with " space, use tab for that nnoremap +nnoremap t " Start shell in current directory nnoremap s :shell @@ -428,11 +429,17 @@ nnoremap o :!nvim " Open file in the background using its default program nnoremap gb :file &l -" Yank current directory path into the clipboard -nnoremap yd :!echo %d | xclip %i +" yank current directory path into the clipboard +nnoremap yd :!echo -n %d | xclip -selection "clipboard" %i -" Yank current file path into the clipboard -nnoremap yf :!echo %c:p | xclip %i +" yank current file path into the clipboard +nnoremap yf :!echo -n %c:p | xclip -selection "clipboard" %i + +" yank current filename without path into the clipboard +nnoremap yn :!echo -n %c | xclip -selection "clipboard" %i + +" yank root of current file's name into the clipboard +nnoremap yr :!echo -n %c:r | xclip -selection "clipboard" %i " Mappings for faster renaming nnoremap I cw From 4668849a4f2919272199922a9c45bce3dd32dce6 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 16 Jul 2019 13:13:48 +0200 Subject: [PATCH 2/2] Add italics in vim Italicizes comments and anything which should be italicized in text (e.g. markdown *star-surrounded* words). Might lead to errors in ssh connections, will have to test. --- .config/nvim/init.vim | 2 ++ .config/tmux/tmux.conf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 13d8d54..65431b1 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -283,6 +283,8 @@ let g:ale_linters = { " PLUGIN: TMUXLINE let g:airline_powerline_fonts=1 let g:airline_theme='raven' + +let g:gruvbox_italic=1 colorscheme gruvbox " disable automatically refreshing the mux statusbar since it breaks tmux diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 0284ad6..96463cd 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -25,7 +25,7 @@ set -g terminal-overrides "xterm*:XT:smcup@:rmcup@" set-window-option -g automatic-rename on set-option -g set-titles on set -g mouse on -set -g default-terminal screen-256color +set -g default-terminal xterm-256color set -g status-keys vi set -g history-limit 10000