nagelfar-vim


Ⅰ. 插件描述

Vim integration of Nagelfar for checking .tcl files.

Ⅱ. 基本信息

创建日期:  2011-09-17
使用用户:  1
Github星:  5
插件作者:  Jessica Kathleen McIntosh

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jessicakmcintosh/nagelfar-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jessicakmcintosh/nagelfar-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jessicakmcintosh/nagelfar-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jessicakmcintosh/nagelfar-vim

Ⅳ. 文档说明

nagelfar.txt Vim integration of Nagelfar

                         For Vim version 7.x.
              Last Changed: Fri Nov 22 05:35 AM 2013 EST
           https://github.com/JessicaKMcIntosh/Nagelfar-Vim
         http://www.vim.org/scripts/script.php?script_id=3749
                By Jessica K McIntosh AT gmail DOT com

Contents: nagelfar Nagelfar-Vim

Description                |nagelfar-description|
Installation                |nagelfar-installation|
Commands                |nagelfar-commands|
Mappings                |nagelfar-mappings|
Settings                |nagelfar-settings|
Signs                    |nagelfar-signs|

==============================================================================
DESCRIPTION nagelfar-description

Integrates Nagelfar with Vim using the |quickfix|/|compiler| features for
syntax checking of .tcl files. Settings are provided to control how Nagelfar
is called and behaves.

Nagelfar can be downloaded from http://nagelfar.berlios.de/
This script is intended to be used with the latest version.

==============================================================================
INSTALLATION nagelfar-installation

Copy the files to your ~/.vim or ~/vimfiles dorectory.
If using a package manager like pathgen place the whole directory in the
bundle directory.

At some point ':compiler nagelfar' needs to be called to use this plugin.
I recommend putting ':autocmd FileType tcl compiler nagelfar' in your ~/.vimrc
or ~/_vimrc file.

==============================================================================
COMMANDS nagelfar-commands

Commands created for user use.

:NagelfarClear :NagelfarClear

Clear the signs created after running |:make|.

:NagelfarSigns :NagelfarSigns

Display the signs for the current buffer.

==============================================================================
MAPPINGS nagelfar-mappings

Convenience key mappings for working with Nagelfar and errors.
See |nagelfar-settings| for changing the prefix.

Note: These mappings are only created in buffers that have the Nagelfar

  compiler loaded. No other buffers, even the error window, have these
  mappings. The mappings are also only for normal mode.

<Leader>n[ |:cprevious|

Move to the previous error.

<Leader>n] |:cnext|

Move to the next error.

<Leader>nc |:NagelfarClear|

Clears the signs created after a make.

<Leader>nC |:cclose|

Closes the error window.

<Leader>nM |:make|!

Checks the syntax but does not jump to the first error.

<Leader>nm |:make|

Checks the syntax then jumps to the first error.

<Leader>ns |:NagelfarSigns|

Displays the sign markers for the current buffer.
This works regardless of the g:nagelfar_signs setting.

<Leader>nw |:copen|

Displays and/or switches to the error window.

Note: The |Leader| key is normally set to "".

==============================================================================
SETTINGS nagelfar-settings

g:nagelfar_tclsh

The name and/or path to the tclsh program.
Defaults to simply "tclsh". >
     let g:nagelfar_tclsh='/usr/local/bin/tclsh'

<

g:nagelfar_file

The path to the "nagelfar.tcl" file.
If not specified assumes "nagelfar.tcl" is in the path.
Does not use "tclsh" or g:nagelfar_tclsh. >
     let g:nagelfar_file='~/tcl/nagelfar/nagelfar.tcl'

<

g:nagelfar_options

Options to pass to Nagelfar. Separate multiple options by spaces.
Defaults to only "-H". >
     let g:nagelfar_options='-H -strictappend'

<

g:nagelfar_disable_mappings

When set to "1" disables the convenience key mappings.
See |nagelfar-mappings| for details
     let g:nagelfar_disable_mappings=1

<

g:nagelfar_map_prefix

The prefix to use for convenience key mappings.
Defaults to "<Leader>n". ("<Leader>" is normally set to "\".
     let g:nagelfar_map_prefix="<Leader>n"

<

g:nagelfar_signs

When set to "1" enables the Vim |signs| feature.
Defaults to off, "0". See |nagelfar-signs| for details.
     let g:nagelfar_signs=1

<

g:loaded_nagelfar_ext

When set to "1" the extensions are no loaded.
Defaults to "0".
     let g:loaded_nagelfar_ext=1

<

==============================================================================
SIGNS nagelfar-signs

The Vim |signs| feature can be used to highlight errors. Markers are placed
next to each line that has an error or warning.

Markers:

I>    Information
W>    Warning
E>    Error

vim:ts=8:sw=8:tw=78:ft=help:

添加新评论