diff options
author | tdro <tdro@users.noreply.github.com> | 2020-08-25 20:04:14 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-08-25 20:04:14 -0400 |
commit | d94b406e09fabcb349ef9011ff022a8a015d5e4b (patch) | |
tree | 28dce4da319c49e02610bd5ffccfa2507e77ab70 /.vimrc | |
parent | 05b5a6d0640c708b23cdc8cab24b9bffbe1ef1c6 (diff) | |
download | dotfiles-d94b406e09fabcb349ef9011ff022a8a015d5e4b.tar.gz dotfiles-d94b406e09fabcb349ef9011ff022a8a015d5e4b.tar.bz2 dotfiles-d94b406e09fabcb349ef9011ff022a8a015d5e4b.zip |
.vimrc: Auto hide status bar on remaining commands
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -205,13 +205,23 @@ nmap <Leader>op :set laststatus=2<cr> \| :redraw \| :History<cr> \| :set lastst nmap <Leader>oc :set laststatus=2<cr> \| :redraw \| :History:<cr> \| :set laststatus=0<cr> nmap <Leader>ol :Locate<space> nmap <Leader>ot :execute '! urxvt -cd ' . expand('%:p:h') . ' &'<cr><cr> -nmap <Leader>od :call fzf#run({'options': ['--preview', 'ls {}'], 'source': "cut -d' ' -f3 $FZF_DIRECTORY_MARKS", 'sink': 'cd', 'down': '20%'})<cr>:pwd<cr> -nmap <Leader>oo :call fzf#run({'options': ['--preview', 'head -20 {}'], 'source': 'rg --files --hidden \|\| find . -type f -printf "%P\n"', 'sink': 'e', 'down': '20%'})<cr> -nmap <Leader>of :call fzf#run({'options': [], 'source': "cat $FZF_FILE_MARKS", 'sink': 'e', 'down': '20%'})<cr>:pwd<cr> + +nmap <Leader>od :set laststatus=2<cr> \| :redraw + \\| :call fzf#run({'options': ['--preview', 'ls {}'], 'source': "cut -d' ' -f3 $FZF_DIRECTORY_MARKS", 'sink': 'cd', 'down': '20%'})<cr>:pwd<cr> + \\| :set laststatus=0<cr> + +nmap <Leader>oo :set laststatus=2<cr> \| :redraw + \\| :call fzf#run({'options': ['--preview', 'head -20 {}'], 'source': 'rg --files --hidden \|\| find . -type f -printf "%P\n"', 'sink': 'e', 'down': '20%'})<cr> + \\| :set laststatus=0<cr> + +nmap <Leader>of :set laststatus=2<cr> \| :redraw + \\| :call fzf#run({'options': [], 'source': "cat $FZF_FILE_MARKS", 'sink': 'e', 'down': '20%'})<cr>:pwd<cr> + \\| :set laststatus=0<cr> " View function documentation -nmap <Leader>vdp - \ :call fzf#run({'options': ['--preview', 'echo doc {} \| psysh \| fold -s -w 80'], 'source': "psysh-doc", 'sink': ':term psysh-doc', 'down': '50%'})<cr> +nmap <Leader>vdp :set laststatus=2<cr> \| :redraw + \\| :call fzf#run({'options': ['--preview', 'echo doc {} \| psysh \| fold -s -w 80'], 'source': "psysh-doc", 'sink': ':term psysh-doc', 'down': '50%'})<cr> + \\| :set laststatus=0<cr> " Mappings for nnn nmap <Leader>nm :NnnPicker<cr> |