" Vim settings file " Language: LambdaProlog (Teyjus) " Maintainer: Markus Mottl " URL: http://www.oefai.at/~markus/vim/ftplugin/lprolog.vim " Last Change: 2001 Oct 02 - fixed uncommenting bug (MM) " 2001 Sep 16 - fixed 'no_mail_maps'-bug (MM) " 2001 Sep 02 - initial release (MM) " Only do these settings when not done yet for this buffer if exists("b:did_ftplugin") finish endif " Don't do other file type settings for this buffer let b:did_ftplugin = 1 " Error format setlocal efm=%+A./%f:%l.%c:\ %m formatprg=fmt\ -w75\ -p\\% " Formatting of comments setlocal formatprg=fmt\ -w75\ -p\\% " Add mappings, unless the user didn't want this. if !exists("no_plugin_maps") && !exists("no_lprolog_maps") " Uncommenting if !hasmapto('Comment') nmap c LUncomOn vmap c BUncomOn nmap C LUncomOff vmap C BUncomOff endif nnoremap LUncomOn mz0i/* $A */`z nnoremap LUncomOff :s/^\/\* \(.*\) \*\//\1/ vnoremap BUncomOn :'<,'>`0i/*`>o0i*/`< vnoremap BUncomOff :'<,'>`dd`< endif