annotate runtime/ftplugin/passwd.vim @ 3018:45ead8a0bede
v7.3.281
updated for version 7.3.281
Problem: After using "expand('%:8')" the buffer name is changed.
Solution: Make a copy of the file name before shortening it.
author |
Bram Moolenaar <bram@vim.org> |
date |
Wed, 17 Aug 2011 15:23:23 +0200 |
parents |
f4f8014d516e |
children |
1218c5353e2b |
rev |
line source |
389
|
1 " Vim filetype plugin file
|
|
2 " Language: passwd(5) password file
|
839
|
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
|
1698
|
4 " Latest Revision: 2008-07-09
|
389
|
5
|
|
6 if exists("b:did_ftplugin")
|
|
7 finish
|
|
8 endif
|
|
9 let b:did_ftplugin = 1
|
|
10
|
1698
|
11 let s:cpo_save = &cpo
|
|
12 set cpo&vim
|
|
13
|
389
|
14 let b:undo_ftplugin = "setl com< cms< fo<"
|
|
15
|
|
16 setlocal comments= commentstring= formatoptions-=tcroq formatoptions+=l
|
1698
|
17
|
|
18 let &cpo = s:cpo_save
|
|
19 unlet s:cpo_save
|