From d8f916b6fe986a2974620d4386ec50de08f9d938 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 17 Mar 2022 23:17:29 -0400 Subject: .vim/vimrc: Set list chars and don't retab Suppress terminal open output. --- .vim/vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 96a8cf7..dd0883a 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -65,8 +65,8 @@ set sidescroll=3 " Set horizontal column scroll. set sidescrolloff=10 " Set horizontal scroll headroom. set foldcolumn=2 " Set fold column width to 2. -" Convert tab to spaces. -set tabstop=2 softtabstop=0 shiftwidth=2 smarttab expandtab +set tabstop=2 softtabstop=0 shiftwidth=2 smarttab expandtab " Set spaces as default. +set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣ " Set hidden character identifiers. "----------------Visuals----------------" @@ -129,8 +129,8 @@ nmap sp :set spell! vnoremap sn !perl -e 'print sort { length($a) <=> length($b) } <>' " Switch between tabs and spaces -nmap ses :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab expandtab \| :%retab! -nmap set :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab noexpandtab \| :%retab! +nmap ses :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab expandtab +nmap set :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab noexpandtab " Close buffer and window nmap qq :bd @@ -179,7 +179,7 @@ nmap :Buffers nmap ov :Lines nmap ob :BLines nmap ol :Locate -nmap ot :exe '!$TERMINAL -cd ' . expand('%:p:h') . ' &' +nmap ot :exe '!$TERMINAL -cd ' . expand('%:p:h') . ' > /dev/null 2>&1 &' nmap of :call fzf#run({'options': [], 'source': "cat $FZF_FILE_MARKS", 'sink': 'e', 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 }}) nmap od :call fzf#run({'options': ['--preview', 'ls {}'], 'source': "cut -d' ' -f3 $FZF_DIRECTORY_MARKS", 'sink': 'cd', 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 }}) nmap oo :call fzf#run({'options': ['--preview', 'highlight -O ansi --force {}'], 'source': 'rg --files --hidden \|\| find . -type f -printf "%P\n"', 'sink': 'e', 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 }}) -- cgit v1.2.3