Wednesday, October 14, 2015

Assistance requested debugging my .vimrc

Hi,

Could anyone help me debug this .vimrc? It's pared down to just what's causing the bug. I'm getting the following errors. I wonder what's wrong with it?

>Error detected while processing BufWrite AUto commands for "*vim_external_edition_buffer.*":

>E121: Undefined variable: true 

>E15: Invalid expression: true

The .vimrc follows:

autocmd BufWritePre *vim_external_edition_buffer.* :let b:vim_external_edition_buffer=true

autocmd BufWritePost *.tls if !exists("b:vim_external_edition_buffer") | :!sha1sum % > .%.sha1 endif

nmap Vp {jV}k
nmap eep Vp:w! /tmp/vim_external_edition_buffer.%:t<CR>:'<,'>d<CR>k:!vim /tmp/vim_external_edition_buffer.%:t<CR>:r /tmp/vim_external_edition_buffer.%:t<CR>:!rm /tmp/vim_external_edition_buffer.%:t<CR>

autocmd BufReadPost *vim_external_edition_buffer*tls :nmap { ?\n\t\n<CR>k<CR>
autocmd BufReadPost *vim_external_edition_buffer*tls :nmap } /\n\t\n<CR>j<CR>




Thanks


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment