From dac65080e0ac56e6211af93072d6835b22457cf1 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 30 Oct 2020 23:45:40 -0400 Subject: .vimrc: Use lowercase leader throughout --- .vimrc | 76 +++++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 6ef1526..92b70bb 100644 --- a/.vimrc +++ b/.vimrc @@ -147,60 +147,60 @@ endfunction "---------------Shortcuts---------------" " Edit shortcuts -nmap ev :tabedit ~/.vimrc -nmap ep :tabedit ~/.vim/plugins.vim -nmap eh :tabedit ~/.vim/post-save-hook +nmap ev :tabedit ~/.vimrc +nmap ep :tabedit ~/.vim/plugins.vim +nmap eh :tabedit ~/.vim/post-save-hook " Git, tags, and help commands -nmap fgf :GFiles -nmap fgs :GFiles? -nmap fgc :Commits -nmap ftb :BTags -nmap flh :Helptags -nmap flc :Commands +nmap fgf :GFiles +nmap fgs :GFiles? +nmap fgc :Commits +nmap ftb :BTags +nmap flh :Helptags +nmap flc :Commands " Show key mappings -nmap mm :Maps -nmap ma :Marks +nmap mm :Maps +nmap ma :Marks " Search documentation under cursor -nmap dm :exe ':term ++close fzf-man ' . expand('') -nmap di :exe ':term ++close fzf-doc ' . expand('') -nmap dt :exe ':term dict -h localhost -d dict-moby-thesaurus-latest ' . expand('') +nmap dm :exe ':term ++close fzf-man ' . expand('') +nmap di :exe ':term ++close fzf-doc ' . expand('') +nmap dt :exe ':term dict -h localhost -d dict-moby-thesaurus-latest ' . expand('') " View function documentation -nmap dp :call fzf#run({'options': ['--preview', 'echo doc {} \| psysh \| fold -s -w 80'], 'source': "psysh-doc", 'sink': ':term psysh-doc', 'down': '50%'}) +nmap dp :call fzf#run({'options': ['--preview', 'echo doc {} \| psysh \| fold -s -w 80'], 'source': "psysh-doc", 'sink': ':term psysh-doc', 'down': '50%'}) " Jump to line -nmap jl :norm yaW \| :Jump +nmap jl :norm yaW \| :Jump " Load and save sessions -nmap sl :source ~/.vim/sessions/session.vim \| :source ~/.vimrc -nmap ss :silent! exe "!~/.vim/hooks/pre-session-save && notify-send 'Vim session saved.'" \| :mksession! ~/.vim/sessions/session.vim \| :redraw! +nmap sl :source ~/.vim/sessions/session.vim \| :source ~/.vimrc +nmap ss :silent! exe "!~/.vim/hooks/pre-session-save && notify-send 'Vim session saved.'" \| :mksession! ~/.vim/sessions/session.vim \| :redraw! " Toggle Spell Check -nmap sp :set spell! +nmap sp :set spell! " Sort lines by length 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 \| :%retab! +nmap set :set tabstop=2 softtabstop=0 shiftwidth=2 smarttab noexpandtab \| :%retab! " Close buffer and window -nmap q :bd -nmap w c +nmap q :bd +nmap w c " Linting shortcuts -nmap lph :call HTMLBeautify() -nmap lpc :call CSSBeautify() +nmap lph :call HTMLBeautify() +nmap lpc :call CSSBeautify() " Re-indent entire file -nmap re gg=G +nmap re gg=G " Reset all settings and source configuration. -nmap ra :set all& \| :source ~/.vimrc \| :e +nmap ra :set all& \| :source ~/.vimrc \| :e " Remove duplicate lines vnoremap rd !awk '\!visited[$0]++' @@ -216,19 +216,19 @@ vnoremap ct !column -t -o' ' " File open mappings nmap :Buffers -nmap ov :Lines -nmap ob :BLines -nmap op :History -nmap oc :History: -nmap ol :Locate -nmap ot :exe '! urxvt -cd ' . expand('%:p:h') . ' &' -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%'}) +nmap ov :Lines +nmap ob :BLines +nmap op :History +nmap oc :History: +nmap ol :Locate +nmap ot :exe '! urxvt -cd ' . expand('%:p:h') . ' &' +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%'}) " Mappings for nnn -nmap nm :NnnPicker -nmap nn :NnnPicker '%:p:h' +nmap nm :NnnPicker +nmap nn :NnnPicker '%:p:h' " Exit incremental search nmap :nohl -- cgit v1.2.3