From 58cc9e20badc7d4c2ad17954268d54501db9fcf8 Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 26 Aug 2020 02:40:04 -0400 Subject: .vimrc: Setting status bar on the fly is buggy --- .vimrc | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 985e092..0fa7a4c 100644 --- a/.vimrc +++ b/.vimrc @@ -198,30 +198,19 @@ nmap cx :set cursorcolumn! vnoremap ct !column -t -o' ' " File open mappings -nmap :set laststatus=2 \| :redraw \| :Buffers \| :set laststatus=0 -nmap ov :set laststatus=2 \| :redraw \| :Lines \| :set laststatus=0 -nmap ob :set laststatus=2 \| :redraw \| :BLines \| :set laststatus=0 -nmap op :set laststatus=2 \| :redraw \| :History \| :set laststatus=0 -nmap oc :set laststatus=2 \| :redraw \| :History: \| :set laststatus=0 +nmap :Buffers +nmap ov :Lines +nmap ob :BLines +nmap op :History +nmap oc :History: nmap ol :Locate nmap ot :execute '! urxvt -cd ' . expand('%:p:h') . ' &' - -nmap od :set laststatus=2 \| :redraw - \\| :call fzf#run({'options': ['--preview', 'ls {}'], 'source': "cut -d' ' -f3 $FZF_DIRECTORY_MARKS", 'sink': 'cd', 'down': '20%'}):pwd - \\| :set laststatus=0 - -nmap oo :set laststatus=2 \| :redraw - \\| :call fzf#run({'options': ['--preview', 'highlight -O ansi --force {}'], 'source': 'rg --files --hidden \|\| find . -type f -printf "%P\n"', 'sink': 'e', 'down': '20%'}) - \\| :set laststatus=0 - -nmap of :set laststatus=2 \| :redraw - \\| :call fzf#run({'options': [], 'source': "cat $FZF_FILE_MARKS", 'sink': 'e', 'down': '20%'}):pwd - \\| :set laststatus=0 +nmap of :call fzf#run({'options': [], 'source': "cat $FZF_FILE_MARKS", 'sink': 'e', 'down': '20%'}):pwd +nmap od :call fzf#run({'options': ['--preview', 'ls {}'], 'source': "cut -d' ' -f3 $FZF_DIRECTORY_MARKS", 'sink': 'cd', 'down': '20%'}):pwd +nmap oo :call fzf#run({'options': ['--preview', 'highlight -O ansi --force {}'], 'source': 'rg --files --hidden \|\| find . -type f -printf "%P\n"', 'sink': 'e', 'down': '20%'}) " View function documentation -nmap vdp :set laststatus=2 \| :redraw - \\| :call fzf#run({'options': ['--preview', 'echo doc {} \| psysh \| fold -s -w 80'], 'source': "psysh-doc", 'sink': ':term psysh-doc', 'down': '50%'}) - \\| :set laststatus=0 +nmap vdp :call fzf#run({'options': ['--preview', 'echo doc {} \| psysh \| fold -s -w 80'], 'source': "psysh-doc", 'sink': ':term psysh-doc', 'down': '50%'}) " Mappings for nnn nmap nm :NnnPicker -- cgit v1.2.3