|Did you know ...||Search Documentation:|
|Pack logtalk -- logtalk-3.14.0/coding/vim/NOTES.txt|
This file is part of Logtalk http://logtalk.org/ Copyright 1998-2018 Paulo Moura <email@example.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ________________________________________________________________________
This directory contains files that provides syntax highlighting, code folding, code completion, and auto-indentation for editing Logtalk source files with the text editor Vim 7.0 or later version:
These support files are dual-licensed under the Apache License 2.0 and the Vim charity-ware license.
Recent versions of Vim already contain support for Logtalk. However, this directory may contain updated support files. If that is the case, install the Logtalk support files by performing the following steps:
syntaxsub-directory in your VIM installation directory (replacing any existing older file).
filetype.vimconfiguration file (only if not already present):
" Logtalk source files au BufNewFile,BufRead *.lgt setf logtalk au BufNewFile,BufRead *.logtalk setf logtalk
indentsub-directory in your VIM installation directory (replacing any existing older file).
ftpluginsub-directory in your Vim installation directory (replacing any existing files; current Vim versions are distributed with a
ftplugin/logtalk.vimthat comments out some of the necessary settings despite their local scope!).
syntax on filetype indent on filetype plugin on
You may then perform code completion by typing CTRL-X, CTRL-K and then CTRL-P or CTRL-N to cycle between all the completion choices.
coding/ctagsin the Logtalk installation directory for instructions on how to enable a source code browser for Logtalk source files using the plugin Taglist:
After installing the plugin, add the following line to your `.vimrc` file:
let tlist_logtalk_settings = 'logtalk;o:Objects;p:Protocols;c:Categories;m:Modules;u:Public predicates;r:Protected predicates;v:Private predicates'