summaryrefslogtreecommitdiff
path: root/vim/.vim/ftplugin/pentadactyl.vim
blob: f0ace170d45980fc85ed90bd1e9a869b33a45253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
" Vim filetype plugin file
" Language:    Pentadactyl configuration file
" Maintainer:  Doug Kearns <dougkearns@gmail.com>
" Version:     1.1

if exists("b:did_ftplugin")
  finish
endif
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

let b:undo_ftplugin = "setl com< cms< fo< ofu< | unlet! b:browsefilter"

setlocal comments=:\"
setlocal commentstring=\"%s
setlocal formatoptions-=t formatoptions+=croql
setlocal omnifunc=syntaxcomplete#Complete

if has("gui_win32") && !exists("b:browsefilter")
    let b:browsefilter = "Pentadactyl Config Files (*.penta)\t*.penta\n" .
        \ "All Files (*.*)\t*.*\n"
endif

let &cpo = s:cpo_save
unlet s:cpo_save