Added ftplugin file for TTCN-3 from vimscript #793

This commit is contained in:
Gustaf Johansson 2012-09-20 00:43:54 +02:00
commit b0c513e628
2 changed files with 34 additions and 0 deletions

4
README
View File

@ -1,3 +1,4 @@
<<<<<<< HEAD
Based on:
ttcn-syntax:
http://www.vim.org/scripts/script.php?script_id=753
@ -6,4 +7,7 @@ ttcn-syntax:
ttcn-indent:
http://www.vim.org/scripts/script.php?script_id=754
ttcn-ftplugin: http://www.vim.org/scripts/script.php?script_id=793
You should put settings that are specific to TTCN in this file.
For information about TTCN-3, see http://www.etsi.org.

30
ftplugin/ttcn.vim Normal file
View File

@ -0,0 +1,30 @@
" Vim filetype plugin file
" Language: TTCN-3
" Maintainer: Stefan Karlsson <stefan.74@comhem.se>
" Last Change: 15 April 2004
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
if exists("g:ttcn_fold")
setlocal foldmethod=syntax
setlocal foldlevel=99
endif
" Path to the dictionary (this path might need adjustment)
setlocal dict=~\vimfiles\dicts\ttcn.dict
" Enables gf, [I, [i, etc commands for ttcn files
setlocal include=^\\s*import\\s\\+from
setlocal suffixesadd=.ttcn
" Disable auto breaking of non-comments
setlocal formatoptions-=t
" Enable auto breaking of comments and enable formatting of comments with
" the gq command
setlocal formatoptions+=croq
setlocal cinoptions=(1s