diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-07 21:07:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-07 21:07:18 +0200 |
commit | acc224064033e5cea21ef7f1eefb356ca06ff11d (patch) | |
tree | bb447a8591e335b0bec96a43a7c8fa5774d741df /runtime/ftplugin | |
parent | df44a27b53586fccfc6a3aedc89061fdd9a515ff (diff) |
Update runtime files
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/asm.vim | 11 | ||||
-rw-r--r-- | runtime/ftplugin/elm.vim | 18 | ||||
-rw-r--r-- | runtime/ftplugin/man.vim | 14 |
3 files changed, 36 insertions, 7 deletions
diff --git a/runtime/ftplugin/asm.vim b/runtime/ftplugin/asm.vim new file mode 100644 index 0000000000..0914bf634a --- /dev/null +++ b/runtime/ftplugin/asm.vim @@ -0,0 +1,11 @@ +" Vim filetype plugin file +" Language: asm +" Maintainer: Colin Caine <cmcaine at the common googlemail domain> +" Last Changed: 23 May 2020 + +if exists("b:did_ftplugin") | finish | endif + +setl comments=:;,s1:/*,mb:*,ex:*/,:// +setl commentstring=;%s + +let b:did_ftplugin = 1 diff --git a/runtime/ftplugin/elm.vim b/runtime/ftplugin/elm.vim new file mode 100644 index 0000000000..1e10346186 --- /dev/null +++ b/runtime/ftplugin/elm.vim @@ -0,0 +1,18 @@ +" Elm filetype plugin file +" Language: Elm +" Maintainer: Andreas Scharf <as@99n.de> +" Latest Revision: 2020-05-29 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +setlocal comments=s1fl:{-,mb:\ ,ex:-},:-- +setlocal commentstring=--\ %s + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index ab7f33f286..5f8a639f0d 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -2,7 +2,7 @@ " Language: man " Maintainer: Jason Franklin <vim@justemail.net> " Maintainer: SungHyun Nam <goweol@gmail.com> -" Last Change: 2020 May 07 +" Last Change: 2020 Jun 01 " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -34,8 +34,8 @@ if &filetype == "man" endif nnoremap <buffer> <Plug>ManBS :%s/.\b//g<CR>:setl nomod<CR>'' - nnoremap <buffer> <c-]> :call <SID>PreGetPage(v:count)<CR> - nnoremap <buffer> <c-t> :call <SID>PopPage()<CR> + nnoremap <buffer> <silent> <c-]> :call <SID>PreGetPage(v:count)<CR> + nnoremap <buffer> <silent> <c-t> :call <SID>PopPage()<CR> nnoremap <buffer> <silent> q :q<CR> " Add undo commands for the maps @@ -138,11 +138,11 @@ func <SID>GetPage(cmdmods, ...) endif endif if s:FindPage(sect, page) == 0 - let msg = "\nNo manual entry for ".page - if sect != "" - let msg .= " in section ".sect + let msg = 'man.vim: no manual entry for "' . page . '"' + if !empty(sect) + let msg .= ' in section ' . sect endif - echo msg + echomsg msg return endif exec "let s:man_tag_buf_".s:man_tag_depth." = ".bufnr("%") |