aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-03-17 23:17:29 -0400
committertdro <tdro@users.noreply.github.com>2022-03-17 23:17:29 -0400
commitd8f916b6fe986a2974620d4386ec50de08f9d938 (patch)
tree0f78cb8ed0230c78cef563bc6884736aa52134bf
parent07224674954a8740322206a8d30981dd017ae3e3 (diff)
downloaddotfiles-d8f916b6fe986a2974620d4386ec50de08f9d938.tar.gz
dotfiles-d8f916b6fe986a2974620d4386ec50de08f9d938.tar.bz2
dotfiles-d8f916b6fe986a2974620d4386ec50de08f9d938.zip
.vim/vimrc: Set list chars and don't retab
Suppress terminal open output.
-rw-r--r--.vim/vimrc10
1 files 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 <leader>sp :set spell!<cr>
vnoremap <leader>sn !perl -e 'print sort { length($a) <=> length($b) } <>'<cr>
" Switch between tabs and spaces
-nmap <leader>ses :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab expandtab \| :%retab!<cr>
-nmap <leader>set :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab noexpandtab \| :%retab!<cr>
+nmap <leader>ses :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab expandtab<cr>
+nmap <leader>set :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab noexpandtab<cr>
" Close buffer and window
nmap <leader>qq :bd<cr>
@@ -179,7 +179,7 @@ nmap <Tab> :Buffers<cr>
nmap <leader>ov :Lines<cr>
nmap <leader>ob :BLines<cr>
nmap <leader>ol :Locate<space>
-nmap <leader>ot :exe '!$TERMINAL -cd ' . expand('%:p:h') . ' &'<cr><cr>
+nmap <leader>ot :exe '!$TERMINAL -cd ' . expand('%:p:h') . ' > /dev/null 2>&1 &'<cr><cr>
nmap <leader>of :call fzf#run({'options': [], 'source': "cat $FZF_FILE_MARKS", 'sink': 'e', 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 }})<cr><down>
nmap <leader>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 }})<cr><down>
nmap <leader>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 }})<cr><down>