From 547fa233a55a63a45fdb516253222fa7bccd5f01 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Dec 2018 07:30:39 +1300 Subject: Remove line squeezing function for mail.vim The mapping was removed in commit 44a75be, but not the autoloaded function that the plugin was replacing. --- vim/autoload/mail.vim | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/vim/autoload/mail.vim b/vim/autoload/mail.vim index 967aac17..baff4bbf 100644 --- a/vim/autoload/mail.vim +++ b/vim/autoload/mail.vim @@ -65,23 +65,3 @@ function! mail#NewBlank(count, up, visual) abort endif endfunction - -" Quick map to strip multiple blank lines in the entire buffer; this comes up -" a lot when replying to stripped HTML mail. This should really be a command, -" but I'll do that Later(TM). -function! mail#ContractMultipleBlankLines() abort - let l:deletions = [] - let l:blank = 0 - for l:num in range(1, line('$')) - if getline(l:num) !~# '^[> ]*$' - let l:blank = 0 - elseif l:blank - let l:deletions += [l:num - 1] - else - let l:blank = 1 - endif - endfor - for l:num in reverse(l:deletions) - execute l:num . 'delete' - endfor -endfunction -- cgit v1.2.3 From cebbf704f7e3048624bddb2e96eaa1db5fe9ef16 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Dec 2018 08:45:38 +1300 Subject: Unseat tidy(1) as HTML 'equalprg' Instead, remap \= specifically to use tidy(1) to reformat the whole buffer. --- vim/after/ftplugin/html.vim | 11 ++++++++--- vim/after/ftplugin/html.vim~ | 35 +++++++++++++++++++++++++++++++++++ vim/autoload/html.vim | 7 +++++++ 3 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 vim/after/ftplugin/html.vim~ diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim index b5c387fb..5f7155bc 100644 --- a/vim/after/ftplugin/html.vim +++ b/vim/after/ftplugin/html.vim @@ -3,11 +3,16 @@ if &filetype !=# 'html' finish endif -" Use tidy(1) for checking and program formatting +" Use tidy(1) for checking compiler tidy -setlocal equalprg=tidy\ -quiet let b:undo_ftplugin .= '|unlet b:current_compiler' - \ . '|setlocal equalprg< errorformat< makeprg<' + \ . '|setlocal errorformat< makeprg<' + +" tidy(1) copes fine with formatting an entire document, but not just part of +" it; we map \= to do the former, but don't actually set 'equalprg', falling +" back on the good-enough built-in Vim indentation behavior. +nnoremap = :call html#TidyBuffer() +let b:undo_ftplugin .= '|nunmap =' " Set up hooks for timestamp updating augroup html_timestamp diff --git a/vim/after/ftplugin/html.vim~ b/vim/after/ftplugin/html.vim~ new file mode 100644 index 00000000..5f7155bc --- /dev/null +++ b/vim/after/ftplugin/html.vim~ @@ -0,0 +1,35 @@ +" Don't load if the buffer is not actually HTML (e.g. Markdown) +if &filetype !=# 'html' + finish +endif + +" Use tidy(1) for checking +compiler tidy +let b:undo_ftplugin .= '|unlet b:current_compiler' + \ . '|setlocal errorformat< makeprg<' + +" tidy(1) copes fine with formatting an entire document, but not just part of +" it; we map \= to do the former, but don't actually set 'equalprg', falling +" back on the good-enough built-in Vim indentation behavior. +nnoremap = :call html#TidyBuffer() +let b:undo_ftplugin .= '|nunmap =' + +" Set up hooks for timestamp updating +augroup html_timestamp + autocmd BufWritePre + \ if exists('b:html_timestamp_check') + \| call html#TimestampUpdate() + \|endif +augroup END +let b:undo_ftplugin .= '|execute ''autocmd! html_timestamp''' + \ . '|augroup! html_timestamp' + +" Stop here if the user doesn't want ftplugin mappings +if exists('g:no_plugin_maps') || exists('g:no_html_maps') + finish +endif + +" Transform URLs to HTML anchors +nnoremap r + \ :call html#UrlLink() +let b:undo_ftplugin .= '|nunmap r' diff --git a/vim/autoload/html.vim b/vim/autoload/html.vim index c3d99706..e0d47e47 100644 --- a/vim/autoload/html.vim +++ b/vim/autoload/html.vim @@ -14,6 +14,13 @@ function! html#UrlLink() abort endfunction +" Tidy the whole buffer +function! html#TidyBuffer() abort + let l:view = winsaveview() + %!tidy -quiet + call winrestview(l:view) +endfunction + " Update a timestamp function! html#TimestampUpdate() abort if !&modified -- cgit v1.2.3 From 57b1a87e9817f6109a8ffde9e3506c33489c3dcc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Dec 2018 10:30:14 +1300 Subject: Use :help for 'keywordprg', junk tag binding This is a much nicer approach. --- vim/after/ftplugin/help.vim | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vim/after/ftplugin/help.vim b/vim/after/ftplugin/help.vim index ae032344..a0b637aa 100644 --- a/vim/after/ftplugin/help.vim +++ b/vim/after/ftplugin/help.vim @@ -11,13 +11,16 @@ if has('conceal') && &modifiable && !&readonly let b:undo_ftplugin .= '|setlocal conceallevel<' endif +" Use :help for 'keywordprg'; odd that this isn't the default +setlocal keywordprg=:help +let b:undo_ftplugin .= '|setlocal keywordprg<' + " Stop here if the user doesn't want ftplugin mappings if exists('g:no_plugin_maps') || exists('g:no_help_maps') finish endif -" Make K jump to the help topic; NeoVim does this, and it's a damned good idea -if !has('nvim') - nnoremap K - let b:undo_ftplugin .= '|nunmap K' -endif +" ,K runs :helpgrep on the word under the cursor +nnoremap K + \ :helpgrep +let b:undo_ftplugin .= '|nunmap K' -- cgit v1.2.3 From d2894162a1e6d1315a91d0e48677a6eb47ccaf7d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Dec 2018 15:04:10 +1300 Subject: Use "stub .vimrc" method to dodge vim-tiny --- Makefile | 3 +- vim/vimrc | 224 +++++++++++++++++++++++++---------------------------- vim/vimrc.stub.vim | 4 + 3 files changed, 113 insertions(+), 118 deletions(-) create mode 100644 vim/vimrc.stub.vim diff --git a/Makefile b/Makefile index 882982c6..2629ec55 100644 --- a/Makefile +++ b/Makefile @@ -517,7 +517,7 @@ install-urxvt: urxvt/ext/select VIM = vim VIMDIR = $(HOME)/.vim -VIMRC = $(HOME)/.vimrc +VIMRC = $(HOME)/.vim/vimrc install-vim: install-vim-after \ install-vim-autoload \ @@ -582,6 +582,7 @@ install-vim-compiler: cp -p -- vim/compiler/*.vim $(VIMDIR)/compiler install-vim-config: install-vim-cache + cp -p -- vim/vimrc.stub.vim $(HOME)/.vimrc cp -p -- vim/vimrc $(VIMRC) if [ -e /etc/debian_version ] ; then \ cp -p -- vim/system/debian.vim $(VIMDIR)/system.vim ; \ diff --git a/vim/vimrc b/vim/vimrc index 0e489226..f5ffec73 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,20 +1,5 @@ " Tom Ryder (tejr)'s vimrc: -" -" This file is designed to load on any build of Vim version 7.0 or newer, -" including tiny builds without +eval. - -" Require at least Vim 7.0 (released 2006-05-08); otherwise, self-suppress as -" much of this config as possible -if v:version < 700 - if has('win32') || has('win64') - set runtimepath-=~/vimfiles - set runtimepath-=~/vimfiles/after - else - set runtimepath-=~/.vim - set runtimepath-=~/.vim/after - endif - finish -endif +" Requires Vim 7.0 or newer with +eval. " Undo anything the operating system's vimrc may have broken runtime system.vim @@ -38,8 +23,14 @@ if has('syntax') silent! colorscheme sahara endif - " If not sahara, then default with dark background - if !exists('g:colors_name') + " If my colorscheme loaded, turn on subtle 'cursorline' coloring + if exists('g:colors_name') && g:colors_name ==# 'sahara' + if exists('+cursorline') + set cursorline + endif + + " If it didn't load, default to default scheme with dark background + else set background=dark endif @@ -58,22 +49,22 @@ set backspace+=start " The start of current insertion " Try to keep backups in one system-appropriate dir set backup -set backupdir^=~/.vim/cache/backup if has('win32') || has('win64') - set backupdir-=~/.vim/cache/backup set backupdir^=~/vimfiles/cache/backup +else + set backupdir^=~/.vim/cache/backup endif " Add some paths not to back up -set backupskip^=/dev/shm/* " Shared memory RAM disk -set backupskip^=/var/tmp/* " Debian's $TMPDIR for sudoedit(8) -if !has('unix') - set backupskip-=/dev/shm/* - set backupskip-=/var/tmp/* +if has('unix') + set backupskip^=/dev/shm/* " Shared memory RAM disk + set backupskip^=/var/tmp/* " Debian's $TMPDIR for sudoedit(8) endif -" Indent wrapped lines -silent! set breakindent +" Indent wrapped lines if supported +if exists('+breakindent') + set breakindent +endif " Clear default 'comments' value, let the filetype handle it set comments= @@ -87,18 +78,11 @@ endif " Give me a prompt instead of just rejecting risky :write, :saveas set confirm -" Only turn on 'cursorline' if my colorscheme loaded -if exists('+cursorline') - if exists('g:colors_name') && g:colors_name ==# 'sahara' - set cursorline - endif -endif - " Try to keep swapfiles in one system-appropriate dir -set directory^=~/.vim/cache/swap// if has('win32') || has('win64') - set directory-=~/.vim/cache/swap// set directory^=~/vimfiles/cache/swap// +else + set directory^=~/.vim/cache/swap// endif " Use UTF-8 if we can and env LANG didn't tell us not to @@ -107,8 +91,10 @@ if has('multi_byte') && !exists('$LANG') && &encoding ==# 'latin1' endif " Don't wait for a key after Escape in insert mode -" In vim-tiny but not NeoVim, so just suppress errors -silent! set noesckeys +" Not in NeoVim +if exists('+esckeys') + set noesckeys +endif " Fold based on indent, but only when I ask if has('folding') @@ -117,7 +103,9 @@ if has('folding') endif " Delete comment leaders when joining lines, if supported -silent! set formatoptions+=j +if v:version > 703 || v:version == 703 && has('patch541') + set formatoptions+=j +endif " If available, use GNU grep niceties for searching if system('grep --version') =~# '^grep (GNU grep)' @@ -137,9 +125,7 @@ set history=2000 " Highlight completed searches; clear on reload set hlsearch -if 1 - nohlsearch -endif +nohlsearch " Don't assume I'm editing C; let the filetype set this set include= @@ -163,11 +149,11 @@ set lazyredraw set linebreak " Define extra 'list' display characters -set listchars+=extends:> " Unwrapped text to screen right -set listchars+=precedes:< " Unwrapped text to screen left -set listchars+=tab:>- " Tab characters, preserve width -set listchars+=trail:_ " Trailing spaces -silent! set listchars+=nbsp:+ " Non-breaking spaces +set listchars+=extends:> " Unwrapped text to screen right +set listchars+=precedes:< " Unwrapped text to screen left +set listchars+=tab:>- " Tab characters, preserve width +set listchars+=trail:_ " Trailing spaces +set listchars+=nbsp:+ " Non-breaking spaces " Don't allow setting options via buffer content set nomodeline @@ -205,7 +191,9 @@ set splitright " Right of the current window, not left set timeoutlen=3000 " No terminal mouse, even if we could -silent! set ttymouse= +if exists('+ttymouse') + set ttymouse= +endif " Keep undo files, hopefully in a dedicated directory if has('persistent_undo') @@ -218,9 +206,11 @@ if has('persistent_undo') endif " Wildmenu settings; see also plugin/wildignore.vim -set wildmenu " Use wildmenu -set wildmode=list:longest " Tab press completes and lists -silent! set wildignorecase " Case insensitive, if supported +set wildmenu " Use wildmenu +set wildmode=list:longest " Tab press completes and lists +if exists('+wildignorecase') + set wildignorecase " Case insensitive, if supported +endif " Let me move beyond buffer text in visual block mode if exists('+virtualedit') @@ -273,164 +263,164 @@ nnoremap ]l :lnext nmap [ (PutBlankLinesAbove) nmap ] (PutBlankLinesBelow) -" Normal leader maps; use not for vim-tiny +" Normal leader maps; use not for vim-tiny " \a toggles 'formatoptions' 'a' flag using a plugin -nnoremap a :ToggleFlagLocal formatoptions a +nnoremap a :ToggleFlagLocal formatoptions a " \b toggles copy-pasteable linebreak settings -nmap b (CopyLinebreakToggle) +nmap b (CopyLinebreakToggle) " \c toggles 'cursorline'; no visual mode map as it doesn't work -nnoremap c :setlocal cursorline! cursorline? +nnoremap c :setlocal cursorline! cursorline? " \C toggles 'cursorcolumn'; works in visual mode -nnoremap C :setlocal cursorcolumn! cursorcolumn? -xnoremap C :setlocal cursorcolumn! cursorcolumn?gv +nnoremap C :setlocal cursorcolumn! cursorcolumn? +xnoremap C :setlocal cursorcolumn! cursorcolumn?gv " \d inserts the local date (POSIX date) -nnoremap d :read !date +nnoremap d :read !date " \D inserts the UTC date (POSIX date) -nnoremap D :read !date -u +nnoremap D :read !date -u " \e forces a buffer to be editable -nnoremap e :setlocal modifiable noreadonly +nnoremap e :setlocal modifiable noreadonly " \f shows the current 'formatoptions' at a glance -nnoremap f :setlocal formatoptions? +nnoremap f :setlocal formatoptions? " \F reloads filetype plugins -nnoremap F :doautocmd filetypedetect BufRead +nnoremap F :doautocmd filetypedetect BufRead " \g changes directory to the current file's location -nnoremap g :cd %:h:pwd +nnoremap g :cd %:h:pwd " \h toggles highlighting search results -nnoremap h :set hlsearch! hlsearch? +nnoremap h :set hlsearch! hlsearch? " \H shows command history -nnoremap H :history : +nnoremap H :history : " \i toggles showing matches as I enter my pattern -nnoremap i :set incsearch! incsearch? +nnoremap i :set incsearch! incsearch? " \j jumps to buffers (jetpack) -nnoremap j :buffers:buffer +nnoremap j :buffers:buffer " \k shows my marks -nnoremap k :marks +nnoremap k :marks " \l toggles showing tab, end-of-line, and trailing whitespace -nnoremap l :setlocal list! list? -xnoremap l :setlocal list! list?gv +nnoremap l :setlocal list! list? +xnoremap l :setlocal list! list?gv " \m shows normal maps -nnoremap m :map +nnoremap m :map " \M shows buffer-local normal maps -nnoremap M :map +nnoremap M :map " \n toggles line number display -nnoremap n :setlocal number! number? -xnoremap n :setlocal number! number?gv +nnoremap n :setlocal number! number? +xnoremap n :setlocal number! number?gv " \N toggles position display in bottom right -nnoremap N :set ruler! ruler? -xnoremap N :set ruler! ruler?gv +nnoremap N :set ruler! ruler? +xnoremap N :set ruler! ruler?gv " \o opens a line below in paste mode -nmap o (PasteOpenBelow) +nmap o (PasteOpenBelow) " \O opens a line above in paste mode -nmap O (PasteOpenAbove) +nmap O (PasteOpenAbove) " \p toggles paste mode -nnoremap p :set paste! paste? +nnoremap p :set paste! paste? " \q formats the current paragraph -nnoremap q gqap +nnoremap q gqap " \r acts as a replacement operator -nmap r (ReplaceOperator) -xmap r (ReplaceOperator) +nmap r (ReplaceOperator) +xmap r (ReplaceOperator) " \R reloads ~/.vimrc -nnoremap R :source $MYVIMRC +nnoremap R :source $MYVIMRC " \s toggles spell checking -nnoremap s :setlocal spell! spell? +nnoremap s :setlocal spell! spell? " \t shows current filetype -nnoremap t :setlocal filetype? +nnoremap t :setlocal filetype? " \T clears filetype -nnoremap T :setlocal filetype= +nnoremap T :setlocal filetype= " \u sets US English spelling (compare \z) -nnoremap u :setlocal spelllang=en_us +nnoremap u :setlocal spelllang=en_us " \v shows all global variables -nnoremap v :let g: v: +nnoremap v :let g: v: " \V shows all local variables -nnoremap V :let b: t: w: +nnoremap V :let b: t: w: " \w toggles wrapping -nnoremap w :setlocal wrap! wrap? -xnoremap w :setlocal wrap! wrap?gv +nnoremap w :setlocal wrap! wrap? +xnoremap w :setlocal wrap! wrap?gv " \x strips trailing whitespace via a custom plugin -nmap x :StripTrailingWhitespace -xmap x :StripTrailingWhitespace +nmap x :StripTrailingWhitespace +xmap x :StripTrailingWhitespace " \X squeezes repeated blank lines via a custom plugin -nmap X :SqueezeRepeatBlanks -xmap X :SqueezeRepeatBlanks +nmap X :SqueezeRepeatBlanks +xmap X :SqueezeRepeatBlanks " \y shows all registers -nnoremap y :registers +nnoremap y :registers " \z sets NZ English spelling (compare \u) -nnoremap z :setlocal spelllang=en_nz +nnoremap z :setlocal spelllang=en_nz " \= runs the whole buffer through =, preserving position -nnoremap = :call vimrc#Anchor('1G=G') +nnoremap = :call vimrc#Anchor('1G=G') " \+ runs the whole buffer through gq, preserving position -nnoremap + :call vimrc#Anchor('1GgqG') +nnoremap + :call vimrc#Anchor('1GgqG') " \. runs the configured make program into the location list -nnoremap . :lmake! +nnoremap . :lmake! " \< and \> adjust indent of last edit; good for pasting -nnoremap :'[,'] -nnoremap > :'[,']> +nnoremap :'[,'] +nnoremap > :'[,']> " \_ uses last changed or yanked text as a characterwise object -onoremap _ :normal! `[v`] +onoremap _ :normal! `[v`] " \% uses entire buffer as a linewise object -onoremap % :normal! 1GVG +onoremap % :normal! 1GVG " \{ and \} move to lines with non-space chars before current column -nmap { (VerticalRegionUpNormal) -nmap } (VerticalRegionDownNormal) -omap { (VerticalRegionUpOperator) -omap } (VerticalRegionDownOperator) -xmap { (VerticalRegionUpVisual) -xmap } (VerticalRegionDownVisual) +nmap { (VerticalRegionUpNormal) +nmap } (VerticalRegionDownNormal) +omap { (VerticalRegionUpOperator) +omap } (VerticalRegionDownOperator) +xmap { (VerticalRegionUpVisual) +xmap } (VerticalRegionDownVisual) " \/ types :vimgrep for me ready to enter a search pattern -nnoremap / :vimgrep /\c/ ** +nnoremap / :vimgrep /\c/ ** " \? types :helpgrep for me ready to enter a search pattern -nnoremap ? :helpgrep \c +nnoremap ? :helpgrep \c " \DEL deletes the current buffer -nnoremap :bdelete +nnoremap :bdelete " \INS edits a new buffer -nnoremap :enew +nnoremap :enew " Execution mappings; each of these clobbers register z " \@ executes line in normal mode -nnoremap @ ^"zyg_@z +nnoremap @ ^"zyg_@z " \: executes line in command mode -nnoremap : ^"zyg_:z +nnoremap : ^"zyg_:z " \! executes line with 'shell' -nnoremap ! ^"zyg_:!z +nnoremap ! ^"zyg_:!z " Source any .vim files from ~/.vim/config runtime! config/*.vim diff --git a/vim/vimrc.stub.vim b/vim/vimrc.stub.vim new file mode 100644 index 00000000..51ca436a --- /dev/null +++ b/vim/vimrc.stub.vim @@ -0,0 +1,4 @@ +" If we have Vim version >=7, and (implicitly) +eval, source real vimrc +if v:version >= 700 + runtime vimrc +endif -- cgit v1.2.3 From 04f2d9f319e363b1b6291fa3fefc1650aad2b228 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Dec 2018 15:04:47 +1300 Subject: Remove accidentally created html.vim~ file --- vim/after/ftplugin/html.vim~ | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 vim/after/ftplugin/html.vim~ diff --git a/vim/after/ftplugin/html.vim~ b/vim/after/ftplugin/html.vim~ deleted file mode 100644 index 5f7155bc..00000000 --- a/vim/after/ftplugin/html.vim~ +++ /dev/null @@ -1,35 +0,0 @@ -" Don't load if the buffer is not actually HTML (e.g. Markdown) -if &filetype !=# 'html' - finish -endif - -" Use tidy(1) for checking -compiler tidy -let b:undo_ftplugin .= '|unlet b:current_compiler' - \ . '|setlocal errorformat< makeprg<' - -" tidy(1) copes fine with formatting an entire document, but not just part of -" it; we map \= to do the former, but don't actually set 'equalprg', falling -" back on the good-enough built-in Vim indentation behavior. -nnoremap = :call html#TidyBuffer() -let b:undo_ftplugin .= '|nunmap =' - -" Set up hooks for timestamp updating -augroup html_timestamp - autocmd BufWritePre - \ if exists('b:html_timestamp_check') - \| call html#TimestampUpdate() - \|endif -augroup END -let b:undo_ftplugin .= '|execute ''autocmd! html_timestamp''' - \ . '|augroup! html_timestamp' - -" Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_html_maps') - finish -endif - -" Transform URLs to HTML anchors -nnoremap r - \ :call html#UrlLink() -let b:undo_ftplugin .= '|nunmap r' -- cgit v1.2.3 From bfc727f28f7305850aa724ecc685be8c942a219f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Dec 2018 15:06:24 +1300 Subject: Remove b:undo_ftplugin cmds for double-key maps The relevant maps were removed in commit 5f1f5b9, but these unmap instructions were left behind. --- vim/after/ftplugin/diff.vim | 1 - vim/after/ftplugin/gitcommit.vim | 2 -- vim/after/ftplugin/mail.vim | 2 -- vim/after/ftplugin/markdown.vim | 2 -- 4 files changed, 7 deletions(-) diff --git a/vim/after/ftplugin/diff.vim b/vim/after/ftplugin/diff.vim index 123f0d0a..5d4ff9ae 100644 --- a/vim/after/ftplugin/diff.vim +++ b/vim/after/ftplugin/diff.vim @@ -30,4 +30,3 @@ xmap p \ (DiffPrune) let b:undo_ftplugin .= '|nunmap p' \ . '|xunmap p' - \ . '|nunmap pp' diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim index 1a4c1b1b..618b9324 100644 --- a/vim/after/ftplugin/gitcommit.vim +++ b/vim/after/ftplugin/gitcommit.vim @@ -25,7 +25,6 @@ nnoremap q xnoremap q \ quote#Quote() let b:undo_ftplugin .= '|nunmap q' - \ . '|nunmap qq' \ . '|xunmap q' " Quote operator with reformatting @@ -34,5 +33,4 @@ nnoremap Q xnoremap Q \ quote#QuoteReformat() let b:undo_ftplugin .= '|nunmap Q' - \ . '|nunmap QQ' \ . '|xunmap Q' diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 74ec1699..ffaa6709 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -57,7 +57,6 @@ nnoremap q xnoremap q \ quote#Quote() let b:undo_ftplugin .= '|nunmap q' - \ . '|nunmap qq' \ . '|xunmap q' " Quote operator with reformatting @@ -66,7 +65,6 @@ nnoremap Q xnoremap Q \ quote#QuoteReformat() let b:undo_ftplugin .= '|nunmap Q' - \ . '|nunmap QQ' \ . '|xunmap Q' " Maps using autoloaded function for quoted paragraph movement diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim index f129deba..82fbe9da 100644 --- a/vim/after/ftplugin/markdown.vim +++ b/vim/after/ftplugin/markdown.vim @@ -27,7 +27,6 @@ nnoremap q xnoremap q \ quote#Quote() let b:undo_ftplugin .= '|nunmap q' - \ . '|nunmap qq' \ . '|xunmap q' " Quote operator with reformatting @@ -36,5 +35,4 @@ nnoremap Q xnoremap Q \ quote#QuoteReformat() let b:undo_ftplugin .= '|nunmap Q' - \ . '|nunmap QQ' \ . '|xunmap Q' -- cgit v1.2.3 From 72be934918d84470c06739918c296e44b05928d7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Dec 2018 15:08:43 +1300 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a5c7149a..ddca6083 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v2.8.0 -Sun Dec 2 10:12:15 UTC 2018 +tejr dotfiles v3.0.0 +Tue Dec 4 02:08:39 UTC 2018 -- cgit v1.2.3