mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Compare commits
115 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ac94c2b7a | |||
| e23c64e08f | |||
| e1c8c7a674 | |||
| cbeab96f87 | |||
| 7e1479b86c | |||
| 4930a76a03 | |||
| 2b4671c6fc | |||
| ee39ef0b93 | |||
| 80c3fd7c55 | |||
| 26fe0d5691 | |||
| 8287abd245 | |||
| d47d83745f | |||
| 46643713dc | |||
| ea683da58c | |||
| 16b3578f35 | |||
| d563883a1f | |||
| 2931f2a5df | |||
| 922a443cfd | |||
| ff330ff2c4 | |||
| cf703fe9d6 | |||
| 2321ca2a78 | |||
| 9a27c7fde6 | |||
| c15c0d6983 | |||
| c4a908e836 | |||
| abd468ed0f | |||
| f18c4dbbe5 | |||
| 0eaadec6b2 | |||
| e30d19e69d | |||
| 169ebb0804 | |||
| 53f1673cd9 | |||
| 1954f8f191 | |||
| 1b0c1d050e | |||
| aeac9006d5 | |||
| 64d8e25bf6 | |||
| 6384c5db8d | |||
| 100f5c90f4 | |||
| 7947312871 | |||
| 6df94112d9 | |||
| 77b642501a | |||
| df0db16cf7 | |||
| 72b4b870fc | |||
| e226fb8015 | |||
| 33f0aed0ac | |||
| 1b0c2fcf6e | |||
| 31845093b7 | |||
| 75537a93e9 | |||
| 33a80eeb85 | |||
| b044cf0849 | |||
| 030cddc7ec | |||
| 26b84339fd | |||
| f9e687e068 | |||
| c8fe338d64 | |||
| d5824ce1b5 | |||
| 30180b8dad | |||
| e0ab94e712 | |||
| d77f9d595e | |||
| bc54f3f3fe | |||
| 3cc4453075 | |||
| dac1947bb3 | |||
| dda933d06c | |||
| b07a82b6d5 | |||
| 349e7d94e6 | |||
| 0913a1089a | |||
| f7f3e32fcc | |||
| 87bc3f7459 | |||
| de653f0880 | |||
| b62cc36a60 | |||
| 5a49789a9b | |||
| 4338f80a4b | |||
| dd905a2ae1 | |||
| a5d4121eed | |||
| 11fbc2866c | |||
| 44f660c421 | |||
| cd055da370 | |||
| da9ce2cde1 | |||
| 89f8880325 | |||
| a8c2fa5b29 | |||
| bb5c4a4fee | |||
| 19a1669ffc | |||
| 417ccd7138 | |||
| 779f2fc3a7 | |||
| f1b512a0b6 | |||
| 641ad6c7ac | |||
| 5c80908ced | |||
| 04c4ce650f | |||
| 0874a83e9b | |||
| d8b554904d | |||
| 8a54cfdb32 | |||
| f37506f60f | |||
| c628fdcd46 | |||
| a2a8de37fa | |||
| 89bcfda683 | |||
| 4792255eff | |||
| 42e65225c6 | |||
| 64cefedfc8 | |||
| edf3f97ae2 | |||
| 965ed14973 | |||
| 0418609534 | |||
| 1645f95201 | |||
| 7f7bd297d6 | |||
| 7683aaa506 | |||
| cb03397aba | |||
| 6fc8227ebf | |||
| fec246d2c5 | |||
| 36f44c21da | |||
| d90b6c02e2 | |||
| f4145d8e99 | |||
| 885c00eabe | |||
| 0abe0522d0 | |||
| 0426bae2ab | |||
| e999782e36 | |||
| 46328f9a1c | |||
| 4427db9bb2 | |||
| 6a402edbeb | |||
| 1773ddfdcd |
@@ -93,6 +93,7 @@ SRC_ALL = \
|
||||
src/vim.h \
|
||||
src/winclip.c \
|
||||
src/window.c \
|
||||
src/tee/tee.c \
|
||||
src/xxd/xxd.c \
|
||||
src/main.aap \
|
||||
src/testdir/main.aap \
|
||||
@@ -263,6 +264,7 @@ SRC_UNIX = \
|
||||
src/workshop.h \
|
||||
src/wsdebug.c \
|
||||
src/wsdebug.h \
|
||||
src/tee/Makefile \
|
||||
src/xxd/Makefile \
|
||||
|
||||
# source files for both DOS and Unix
|
||||
@@ -314,6 +316,7 @@ SRC_DOS = \
|
||||
src/Make_dvc.mak \
|
||||
src/Make_ming.mak \
|
||||
src/Make_mvc.mak \
|
||||
tools/rename.bat \
|
||||
src/bigvim.bat \
|
||||
src/bigvim64.bat \
|
||||
src/msvcsetup.bat \
|
||||
@@ -357,6 +360,7 @@ SRC_DOS = \
|
||||
src/vimrun.c \
|
||||
src/xpm_w32.c \
|
||||
src/xpm_w32.h \
|
||||
src/tee/Make_mvc.mak \
|
||||
src/xxd/Make_bc5.mak \
|
||||
src/xxd/Make_ming.mak \
|
||||
src/xxd/Make_mvc.mak \
|
||||
|
||||
@@ -51,12 +51,9 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
||||
#
|
||||
# dossrc vim##src.zip sources for MS-DOS
|
||||
# dosrt vim##rt.zip runtime for MS-DOS
|
||||
# dosbin vim##d16.zip binary for MS-DOS 16 bits
|
||||
# vim##d32.zip binary for MS-DOS 32 bits
|
||||
# vim##w32.zip binary for Win32
|
||||
# dosbin vim##w32.zip binary for Win32
|
||||
# gvim##.zip binary for GUI Win32
|
||||
# gvim##ole.zip OLE exe for Win32 GUI
|
||||
# gvim##_s.zip exe for Win32s GUI
|
||||
#
|
||||
# OBSOLETE
|
||||
# amisrc vim##src.tgz sources for Amiga
|
||||
@@ -73,15 +70,6 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
||||
MAJOR = 7
|
||||
MINOR = 4
|
||||
|
||||
# Uncomment this line if the Win32s version is to be included.
|
||||
# DOSBIN_S = dosbin_s
|
||||
|
||||
# Uncomment this line if the 16 bit DOS version is to be included.
|
||||
# DOSBIN_D16 = dosbin_d16
|
||||
|
||||
# Uncomment this line if the 32 bit DOS version is to be included.
|
||||
# DOSBIN_D32 = dosbin_d32
|
||||
|
||||
# CHECKLIST for creating a new version:
|
||||
#
|
||||
# - Update Vim version number. For a test version in: src/version.h, Contents,
|
||||
@@ -149,31 +137,35 @@ MINOR = 4
|
||||
# - > cd src
|
||||
# > nmake -f Make_mvc.mak
|
||||
# - Run the tests:
|
||||
# > rm testdir/*.out testdir/*.res
|
||||
# > nmake -f Make_mvc.mak testclean
|
||||
# > nmake -f Make_mvc.mak test
|
||||
# - check the output.
|
||||
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
|
||||
# - Rename vim.pdb to vimw32.pdb.
|
||||
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
|
||||
# - Rename (using tools/rename.bat):
|
||||
# vim.exe to vimw32.exe
|
||||
# tee/tee.exe to teew32.exe
|
||||
# xxd/xxd.exe to xxdw32.exe
|
||||
# vim.pdb to vimw32.pdb
|
||||
# install.exe to installw32.exe
|
||||
# uninstal.exe to uninstalw32.exe
|
||||
# Win32 GUI version build:
|
||||
# - > cd src
|
||||
# > nmake -f Make_mvc.mak GUI=yes
|
||||
# - Run the tests:
|
||||
# > rm testdir/*.out testdir/*.res
|
||||
# > nmake -f Make_mvc.mak testclean
|
||||
# > nmake -f Make_mvc.mak testgvim
|
||||
# - check the output.
|
||||
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
|
||||
# - Move gvim.pdb to here.
|
||||
# - Copy "GvimExt/gvimext.dll" to here.
|
||||
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
||||
# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME:
|
||||
# Win32 GUI version with OLE, PERL, Ruby, TCL, PYTHON and dynamic IME:
|
||||
# - Install the interfaces you want, see src/INSTALLpc.txt
|
||||
# - Build:
|
||||
# > cd src
|
||||
# Adjust bigvim.bat to match the version of each interface you want.
|
||||
# > bigvim.bat
|
||||
# - Run the tests:
|
||||
# > rm testdir/*.out testdir/*.res
|
||||
# > nmake -f Make_mvc.mak testclean
|
||||
# > nmake -f Make_mvc.mak testgvim
|
||||
# - check the output.
|
||||
# - Rename "gvim.exe" to "gvim_ole.exe".
|
||||
@@ -187,7 +179,8 @@ MINOR = 4
|
||||
# NSIS self installing exe:
|
||||
# - To get NSIS see http://nsis.sourceforge.net
|
||||
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
|
||||
# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
|
||||
# uninstalw32.exe, teew32.exe and xxdw32.exe have been build as mentioned
|
||||
# above.
|
||||
# - copy these files (get them from a binary archive or build them):
|
||||
# gvimext.dll in src/GvimExt
|
||||
# gvimext64.dll in src/GvimExt
|
||||
@@ -221,15 +214,7 @@ MINOR = 4
|
||||
# 32 bit DOS version: Support was removed in 7.4.1399. When syncing to before
|
||||
# that it probably won't build.
|
||||
#
|
||||
# Win32s GUI version: (requires a very old compiler)
|
||||
# - Set environment for Visual C++ 4.1 (requires a new console window):
|
||||
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
|
||||
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
|
||||
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
|
||||
# - Rename "gvim.exe" to "gvim_w32s.exe".
|
||||
# - Rename "install.exe" to "installw32.exe"
|
||||
# - Rename "uninstal.exe" to "uninstalw32.exe"
|
||||
# - The produced uninstalw32.exe and vimrun.exe are used.
|
||||
# Win32s GUI version: Support was removed in patch 7.4.1364.
|
||||
#
|
||||
# OS/2 support was removed in patch 7.4.1008. If you want to give it a try
|
||||
# sync to before that and check the old version of this Makefile for
|
||||
@@ -268,12 +253,9 @@ dist/comment:
|
||||
mkdir dist/comment
|
||||
|
||||
COMMENT_RT = comment/$(VERSION)-rt
|
||||
COMMENT_D16 = comment/$(VERSION)-bin-d16
|
||||
COMMENT_D32 = comment/$(VERSION)-bin-d32
|
||||
COMMENT_W32 = comment/$(VERSION)-bin-w32
|
||||
COMMENT_GVIM = comment/$(VERSION)-bin-gvim
|
||||
COMMENT_OLE = comment/$(VERSION)-bin-ole
|
||||
COMMENT_W32S = comment/$(VERSION)-bin-w32s
|
||||
COMMENT_SRC = comment/$(VERSION)-src
|
||||
COMMENT_HTML = comment/$(VERSION)-html
|
||||
COMMENT_FARSI = comment/$(VERSION)-farsi
|
||||
@@ -281,12 +263,6 @@ COMMENT_FARSI = comment/$(VERSION)-farsi
|
||||
dist/$(COMMENT_RT): dist/comment
|
||||
echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT)
|
||||
|
||||
dist/$(COMMENT_D16): dist/comment
|
||||
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 16 bit real mode" > dist/$(COMMENT_D16)
|
||||
|
||||
dist/$(COMMENT_D32): dist/comment
|
||||
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 32 bit protected mode" > dist/$(COMMENT_D32)
|
||||
|
||||
dist/$(COMMENT_W32): dist/comment
|
||||
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows NT/95" > dist/$(COMMENT_W32)
|
||||
|
||||
@@ -296,9 +272,6 @@ dist/$(COMMENT_GVIM): dist/comment
|
||||
dist/$(COMMENT_OLE): dist/comment
|
||||
echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE)
|
||||
|
||||
dist/$(COMMENT_W32S): dist/comment
|
||||
echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows 3.1/3.11" > dist/$(COMMENT_W32S)
|
||||
|
||||
dist/$(COMMENT_SRC): dist/comment
|
||||
echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
|
||||
|
||||
@@ -501,7 +474,8 @@ runtime_unix2dos: dosrt_files
|
||||
cd dist/vim/$(VIMRTDIR); tar cf - * \
|
||||
| (cd ../../../runtime/dos; tar xf -)
|
||||
|
||||
dosbin: prepare dosbin_gvim dosbin_w32 $(DOSBIN_D32) dosbin_ole $(DOSBIN_S) $(DOSBIN_D16)
|
||||
dosbin: prepare dosbin_gvim dosbin_w32 dosbin_ole $(DOSBIN_S)
|
||||
-rm $(IN_README_DIR)
|
||||
|
||||
# make Win32 gvim
|
||||
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
||||
@@ -512,8 +486,8 @@ dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
||||
tar cf - \
|
||||
$(BIN_DOS) \
|
||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||
-rm $(IN_README_DIR)
|
||||
cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
||||
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
|
||||
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||
@@ -532,43 +506,13 @@ dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
|
||||
$(BIN_DOS) \
|
||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||
cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
|
||||
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
|
||||
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
||||
cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32)
|
||||
cp vimw32.pdb dist/vim$(VERSION)w32.pdb
|
||||
|
||||
# make 32bit DOS
|
||||
dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
|
||||
-rm -rf dist/vim$(VERSION)d32.zip
|
||||
-rm -rf dist/vim
|
||||
mkdir dist/vim
|
||||
mkdir dist/vim/$(VIMRTDIR)
|
||||
tar cf - \
|
||||
$(BIN_DOS) \
|
||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||
cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe
|
||||
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||
cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||
cp uninstald32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
||||
cp csdpmi4b.zip dist/vim/$(VIMRTDIR)
|
||||
cd dist && zip -9 -rD -z vim$(VERSION)d32.zip vim <$(COMMENT_D32)
|
||||
|
||||
# make 16bit DOS
|
||||
dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
|
||||
-rm -rf dist/vim$(VERSION)d16.zip
|
||||
-rm -rf dist/vim
|
||||
mkdir dist/vim
|
||||
mkdir dist/vim/$(VIMRTDIR)
|
||||
tar cf - \
|
||||
$(BIN_DOS) \
|
||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||
cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe
|
||||
cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||
cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||
cp uninstald16.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
||||
cd dist && zip -9 -rD -z vim$(VERSION)d16.zip vim <$(COMMENT_D16)
|
||||
|
||||
# make Win32 gvim with OLE
|
||||
dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
|
||||
-rm -rf dist/gvim$(VERSION)ole.zip
|
||||
@@ -579,6 +523,7 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
|
||||
$(BIN_DOS) \
|
||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||
cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
||||
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
|
||||
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||
@@ -590,22 +535,6 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
|
||||
cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE)
|
||||
cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb
|
||||
|
||||
# make Win32s gvim
|
||||
dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
|
||||
-rm -rf dist/gvim$(VERSION)_s.zip
|
||||
-rm -rf dist/vim
|
||||
mkdir dist/vim
|
||||
mkdir dist/vim/$(VIMRTDIR)
|
||||
tar cf - \
|
||||
$(BIN_DOS) \
|
||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||
cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
||||
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||
cp README_w32s.txt dist/vim/$(VIMRTDIR)
|
||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
||||
cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S)
|
||||
|
||||
html: dist dist/$(COMMENT_HTML)
|
||||
-rm -rf dist/vim$(VERSION)html.zip
|
||||
cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)
|
||||
|
||||
+2
-1
@@ -26,9 +26,10 @@ build_script:
|
||||
test_script:
|
||||
- cd src/testdir
|
||||
# Testing with MSVC gvim
|
||||
- path C:\Python35-x64;%PATH%
|
||||
- nmake -f Make_dos.mak VIMPROG=..\gvim
|
||||
- nmake -f Make_dos.mak clean
|
||||
# Testing with MingW console version
|
||||
- nmake -f Make_dos.mak VIMPROG=..\vim
|
||||
|
||||
# vim: sw=2 sts=2 et ts=2 sr
|
||||
# vim: sw=2 sts=2 et ts=8 sr
|
||||
|
||||
@@ -188,6 +188,7 @@ Section "Vim executables and runtime files"
|
||||
File /oname=install.exe ${VIMSRC}\installw32.exe
|
||||
File /oname=uninstal.exe ${VIMSRC}\uninstalw32.exe
|
||||
File ${VIMSRC}\vimrun.exe
|
||||
File /oname=tee.exe ${VIMSRC}\teew32.exe
|
||||
File /oname=xxd.exe ${VIMSRC}\xxdw32.exe
|
||||
File ${VIMTOOLS}\diff.exe
|
||||
File ${VIMRT}\vimtutor.bat
|
||||
|
||||
@@ -93,7 +93,7 @@ function! s:GetBufferRubyEntity( name, type, ... )
|
||||
|
||||
let stopline = 1
|
||||
|
||||
let crex = '^\s*\<' . a:type . '\>\s*\<' . a:name . '\>\s*\(<\s*.*\s*\)\?'
|
||||
let crex = '^\s*\<' . a:type . '\>\s*\<' . escape(a:name, '*') . '\>\s*\(<\s*.*\s*\)\?'
|
||||
let [lnum,lcol] = searchpos( crex, 'w' )
|
||||
"let [lnum,lcol] = searchpairpos( crex . '\zs', '', '\(end\|}\)', 'w' )
|
||||
|
||||
@@ -149,7 +149,7 @@ function! s:GetRubyVarType(v)
|
||||
let ctors = ctors.'\)'
|
||||
|
||||
let fstr = '=\s*\([^ \t]\+.' . ctors .'\>\|[\[{"''/]\|%[xwQqr][(\[{@]\|[A-Za-z0-9@:\-()\.]\+...\?\|lambda\|&\)'
|
||||
let sstr = ''.a:v.'\>\s*[+\-*/]*'.fstr
|
||||
let sstr = ''.escape(a:v, '*').'\>\s*[+\-*/]*'.fstr
|
||||
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
|
||||
if lnum != 0 && lcol != 0
|
||||
let str = matchstr(getline(lnum),fstr,lcol)
|
||||
@@ -266,6 +266,28 @@ class VimRubyCompletion
|
||||
end
|
||||
end
|
||||
|
||||
def load_gems
|
||||
fpath = VIM::evaluate("get(g:, 'rubycomplete_gemfile_path', 'Gemfile')")
|
||||
return unless File.file?(fpath) && File.readable?(fpath)
|
||||
want_bundler = VIM::evaluate("get(g:, 'rubycomplete_use_bundler')")
|
||||
parse_file = !want_bundler
|
||||
begin
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
Bundler.require
|
||||
rescue Exception
|
||||
parse_file = true
|
||||
end
|
||||
if parse_file
|
||||
File.new(fpath).each_line do |line|
|
||||
begin
|
||||
require $1 if /\s*gem\s*['"]([^'"]+)/.match(line)
|
||||
rescue Exception
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def load_buffer_class(name)
|
||||
dprint "load_buffer_class(%s) START" % name
|
||||
classdef = get_buffer_entity(name, 's:GetBufferRubyClass("%s")')
|
||||
@@ -588,6 +610,10 @@ class VimRubyCompletion
|
||||
load_rails
|
||||
end
|
||||
|
||||
want_gems = VIM::evaluate("get(g:, 'rubycomplete_load_gemfile')")
|
||||
load_gems unless want_gems.to_i.zero?
|
||||
|
||||
|
||||
input = VIM::Buffer.current.line
|
||||
cpos = VIM::Window.current.cursor[1] - 1
|
||||
input = input[0..cpos]
|
||||
@@ -678,7 +704,9 @@ class VimRubyCompletion
|
||||
cv = eval("self.class.constants")
|
||||
vartype = get_var_type( receiver )
|
||||
dprint "vartype: %s" % vartype
|
||||
if vartype != ''
|
||||
|
||||
invalid_vartype = ['', "gets"]
|
||||
if !invalid_vartype.include?(vartype)
|
||||
load_buffer_class( vartype )
|
||||
|
||||
begin
|
||||
@@ -706,7 +734,7 @@ class VimRubyCompletion
|
||||
methods.concat m.instance_methods(false)
|
||||
}
|
||||
end
|
||||
variables += add_rails_columns( "#{vartype}" ) if vartype && vartype.length > 0
|
||||
variables += add_rails_columns( "#{vartype}" ) if vartype && !invalid_vartype.include?(vartype)
|
||||
|
||||
when /^\(?\s*[A-Za-z0-9:^@.%\/+*\(\)]+\.\.\.?[A-Za-z0-9:^@.%\/+*\(\)]+\s*\)?\.([^.]*)/
|
||||
message = $1
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" Last Change: 2013 May 23
|
||||
" Last Change: 2016 Sep 04
|
||||
|
||||
hi clear
|
||||
set background=dark
|
||||
@@ -45,6 +45,7 @@ hi TabLineFill term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white g
|
||||
hi TabLineSel term=reverse ctermfg=white ctermbg=lightblue guifg=white guibg=blue
|
||||
hi Underlined term=underline cterm=bold,underline ctermfg=lightblue guifg=lightblue gui=bold,underline
|
||||
hi Ignore ctermfg=black ctermbg=black guifg=black guibg=black
|
||||
hi EndOfBuffer term=bold cterm=bold ctermfg=darkred guifg=#cc0000 gui=bold
|
||||
hi link IncSearch Visual
|
||||
hi link String Constant
|
||||
hi link Character Constant
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim compiler file
|
||||
" Compiler: Cucumber
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2010 Aug 09
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("current_compiler")
|
||||
finish
|
||||
@@ -19,7 +19,7 @@ CompilerSet makeprg=cucumber
|
||||
|
||||
CompilerSet errorformat=
|
||||
\%W%m\ (Cucumber::Undefined),
|
||||
\%E%m\ (%.%#),
|
||||
\%E%m\ (%\\S%#),
|
||||
\%Z%f:%l,
|
||||
\%Z%f:%l:%.%#
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim compiler file
|
||||
" Compiler: Haml
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("current_compiler")
|
||||
finish
|
||||
@@ -15,7 +15,7 @@ endif
|
||||
let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
|
||||
CompilerSet makeprg=haml\ -c
|
||||
CompilerSet makeprg=haml
|
||||
|
||||
CompilerSet errorformat=
|
||||
\Haml\ %trror\ on\ line\ %l:\ %m,
|
||||
|
||||
@@ -27,7 +27,11 @@ CompilerSet errorformat=
|
||||
\%\\s%#[%f:%l:\ %#%m,
|
||||
\%\\s%#%f:%l:\ %#%m,
|
||||
\%\\s%#%f:%l:,
|
||||
\%m\ [%f:%l]:
|
||||
\%m\ [%f:%l]:,
|
||||
\%+Erake\ aborted!,
|
||||
\%+EDon't\ know\ how\ to\ build\ task\ %.%#,
|
||||
\%+Einvalid\ option:%.%#,
|
||||
\%+Irake\ %\\S%\\+%\\s%\\+#\ %.%#
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
@@ -22,9 +22,10 @@ CompilerSet errorformat=
|
||||
\%f:%l:\ %tarning:\ %m,
|
||||
\%E%.%#:in\ `load':\ %f:%l:%m,
|
||||
\%E%f:%l:in\ `%*[^']':\ %m,
|
||||
\%-Z\ \ \ \ \ \#\ %f:%l:%.%#,
|
||||
\%-Z\ \ \ \ \ %\\+\#\ %f:%l:%.%#,
|
||||
\%E\ \ %\\d%\\+)%.%#,
|
||||
\%C\ \ \ \ \ %m,
|
||||
\%C%\\s%#,
|
||||
\%-G%.%#
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
|
||||
@@ -17,6 +17,8 @@ let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
|
||||
CompilerSet makeprg=testrb
|
||||
" CompilerSet makeprg=ruby\ -Itest
|
||||
" CompilerSet makeprg=m
|
||||
|
||||
CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
|
||||
\%C%m\ [%f:%l]:,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim compiler file
|
||||
" Compiler: Sass
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("current_compiler")
|
||||
finish
|
||||
@@ -15,7 +15,7 @@ endif
|
||||
let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
|
||||
CompilerSet makeprg=sass\ -c
|
||||
CompilerSet makeprg=sass
|
||||
|
||||
CompilerSet errorformat=
|
||||
\%f:%l:%m\ (Sass::Syntax%trror),
|
||||
|
||||
+11
-1
@@ -1,7 +1,7 @@
|
||||
" The default vimrc file.
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last change: 2016 Aug 21
|
||||
" Last change: 2016 Sep 02
|
||||
"
|
||||
" This is loaded if no vimrc file was found.
|
||||
" Except when Vim is run with "-u NONE" or "-C".
|
||||
@@ -13,6 +13,12 @@ if v:progname =~? "evim"
|
||||
finish
|
||||
endif
|
||||
|
||||
" Bail out if something that ran earlier, e.g. a system wide vimrc, does not
|
||||
" want Vim to use these default values.
|
||||
if exists('skip_defaults_vim')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Use Vim settings, rather than Vi settings (much better!).
|
||||
" This must be first, because it changes other options as a side effect.
|
||||
set nocompatible
|
||||
@@ -31,6 +37,10 @@ set ttimeoutlen=100 " wait up to 100ms after Esc for special key
|
||||
" Show @@@ in the last line if it is truncated.
|
||||
set display=truncate
|
||||
|
||||
" Show a few lines of context around the cursor. Note that this makes the
|
||||
" text scroll if you mouse-click near the start or end of the window.
|
||||
set scrolloff=5
|
||||
|
||||
" Do incremental searching when it's possible to timeout.
|
||||
if has('reltime')
|
||||
set incsearch
|
||||
|
||||
+12
-6
@@ -1,4 +1,4 @@
|
||||
*autocmd.txt* For Vim version 7.4. Last change: 2016 Jul 29
|
||||
*autocmd.txt* For Vim version 7.4. Last change: 2016 Sep 03
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -419,8 +419,8 @@ BufUnload Before unloading a buffer. This is when the
|
||||
NOTE: When this autocommand is executed, the
|
||||
current buffer "%" may be different from the
|
||||
buffer being unloaded "<afile>".
|
||||
Don't change to another buffer, it will cause
|
||||
problems.
|
||||
Don't change to another buffer or window, it
|
||||
will cause problems!
|
||||
When exiting and v:dying is 2 or more this
|
||||
event is not triggered.
|
||||
*BufWinEnter*
|
||||
@@ -784,7 +784,9 @@ QuickFixCmdPre Before a quickfix command is run (|:make|,
|
||||
|:vimgrepadd|, |:lvimgrepadd|, |:cscope|,
|
||||
|:cfile|, |:cgetfile|, |:caddfile|, |:lfile|,
|
||||
|:lgetfile|, |:laddfile|, |:helpgrep|,
|
||||
|:lhelpgrep|).
|
||||
|:lhelpgrep|, |:cexpr|, |:cgetexpr|,
|
||||
|:caddexpr|, |:cbuffer|, |:cgetbuffer|,
|
||||
|:caddbuffer|).
|
||||
The pattern is matched against the command
|
||||
being run. When |:grep| is used but 'grepprg'
|
||||
is set to "internal" it still matches "grep".
|
||||
@@ -1065,6 +1067,9 @@ Note that for all systems the '/' character is used for path separator (even
|
||||
MS-DOS and OS/2). This was done because the backslash is difficult to use
|
||||
in a pattern and to make the autocommands portable across different systems.
|
||||
|
||||
It is possible to use |pattern| items, but they may not work as expected,
|
||||
because of the translation done for the above.
|
||||
|
||||
*autocmd-changes*
|
||||
Matching with the pattern is done when an event is triggered. Changing the
|
||||
buffer name in one of the autocommands, or even deleting the buffer, does not
|
||||
@@ -1163,11 +1168,12 @@ name!
|
||||
different from existing {event} names, as this
|
||||
most likely will not do what you intended.
|
||||
|
||||
*:augroup-delete* *E367* *W19*
|
||||
*:augroup-delete* *E367* *W19* *E936*
|
||||
:aug[roup]! {name} Delete the autocmd group {name}. Don't use
|
||||
this if there is still an autocommand using
|
||||
this group! You will get a warning if doing
|
||||
it anyway.
|
||||
it anyway. when the group is the current group
|
||||
you will get error E936.
|
||||
|
||||
To enter autocommands for a specific group, use this method:
|
||||
1. Select the group with ":augroup {name}".
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 7.4. Last change: 2016 Apr 12
|
||||
*change.txt* For Vim version 7.4. Last change: 2016 Sep 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -872,6 +872,7 @@ The numbering of "\1", "\2" etc. is done based on which "\(" comes first in
|
||||
the pattern (going left to right). When a parentheses group matches several
|
||||
times, the last one will be used for "\1", "\2", etc. Example: >
|
||||
:s/\(\(a[a-d] \)*\)/\2/ modifies "aa ab x" to "ab x"
|
||||
The "\2" is for "\(a[a-d] \)". At first it matches "aa ", secondly "ab ".
|
||||
|
||||
When using parentheses in combination with '|', like in \([ab]\)\|\([cd]\),
|
||||
either the first or second pattern in parentheses did not match, so either
|
||||
|
||||
+20
-2
@@ -1,4 +1,4 @@
|
||||
*channel.txt* For Vim version 7.4. Last change: 2016 Aug 27
|
||||
*channel.txt* For Vim version 7.4. Last change: 2016 Sep 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -25,7 +25,9 @@ The Netbeans interface also uses a channel. |netbeans|
|
||||
|
||||
{Vi does not have any of these features}
|
||||
{only when compiled with the |+channel| feature for channel stuff}
|
||||
You can check this with: `has('channel')`
|
||||
{only when compiled with the |+job| feature for job stuff}
|
||||
You can check this with: `has('job')`
|
||||
|
||||
==============================================================================
|
||||
1. Overview *job-channel-overview*
|
||||
@@ -499,6 +501,10 @@ A special mode is when "in_top" is set to zero and "in_bot" is not set: Every
|
||||
time a line is added to the buffer, the last-but-one line will be send to the
|
||||
job stdin. This allows for editing the last line and sending it when pressing
|
||||
Enter.
|
||||
*channel-close-in*
|
||||
When not using the special mode the pipe or socket will be closed after the
|
||||
last line has been written. This signals the reading end that the input
|
||||
finished. You can also use |ch_close_in()| to close it sooner.
|
||||
|
||||
NUL bytes in the text will be passed to the job (internally Vim stores these
|
||||
as NL bytes).
|
||||
@@ -640,6 +646,8 @@ See |job_setoptions()| and |ch_setoptions()|.
|
||||
"out_buf": number the number of the buffer to write to
|
||||
"out_modifiable": 0 when writing to a buffer, 'modifiable' will be off
|
||||
(see below)
|
||||
"out_msg": 0 when writing to a new buffer, the first line will be
|
||||
set to "Reading from channel output..."
|
||||
|
||||
*job-err_io* *err_name* *err_buf*
|
||||
"err_io": "out" stderr messages to go to stdout
|
||||
@@ -651,6 +659,8 @@ See |job_setoptions()| and |ch_setoptions()|.
|
||||
"err_buf": number the number of the buffer to write to
|
||||
"err_modifiable": 0 when writing to a buffer, 'modifiable' will be off
|
||||
(see below)
|
||||
"err_msg": 0 when writing to a new buffer, the first line will be
|
||||
set to "Reading from channel error..."
|
||||
|
||||
"block_write": number only for testing: pretend every other write to stdin
|
||||
will block
|
||||
@@ -680,8 +690,16 @@ buffer number.
|
||||
|
||||
For a new buffer 'buftype' is set to "nofile" and 'bufhidden' to "hide". If
|
||||
you prefer other settings, create the buffer first and pass the buffer number.
|
||||
|
||||
*out_modifiable* *err_modifiable*
|
||||
The "out_modifiable" and "err_modifiable" options can be used to set the
|
||||
'modifiable' option off, or write to a buffer that has 'modifiable' off. That
|
||||
means that lines will be appended to the buffer, but the user can't easily
|
||||
change the buffer.
|
||||
*out_msg* *err_msg*
|
||||
The "out_msg" option can be used to specify whether a new buffer will have the
|
||||
first line set to "Reading from channel output...". The default is to add the
|
||||
message. "err_msg" does the same for channel error.
|
||||
|
||||
'modifiable' option off, or write to a buffer that has 'modifiable' off. That
|
||||
means that lines will be appended to the buffer, but the user can't easily
|
||||
change the buffer.
|
||||
|
||||
+46
-22
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 27
|
||||
*eval.txt* For Vim version 7.4. Last change: 2016 Sep 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -119,7 +119,7 @@ To test for a non-empty string, use empty(): >
|
||||
*non-zero-arg*
|
||||
Function arguments often behave slightly different from |TRUE|: If the
|
||||
argument is present and it evaluates to a non-zero Number, |v:true| or a
|
||||
non-empty String, then the value is considere to be TRUE.
|
||||
non-empty String, then the value is considered to be TRUE.
|
||||
Note that " " and "0" are also non-empty strings, thus cause the mode to be
|
||||
cleared. A List, Dictionary or Float is not a Number or String, thus
|
||||
evaluates to FALSE.
|
||||
@@ -643,13 +643,17 @@ It's possible to form a variable name with curly braces, see
|
||||
|
||||
Expression syntax summary, from least to most significant:
|
||||
|
||||
|expr1| expr2 ? expr1 : expr1 if-then-else
|
||||
|expr1| expr2
|
||||
expr2 ? expr1 : expr1 if-then-else
|
||||
|
||||
|expr2| expr3 || expr3 .. logical OR
|
||||
|expr2| expr3
|
||||
expr3 || expr3 .. logical OR
|
||||
|
||||
|expr3| expr4 && expr4 .. logical AND
|
||||
|expr3| expr4
|
||||
expr4 && expr4 .. logical AND
|
||||
|
||||
|expr4| expr5 == expr5 equal
|
||||
|expr4| expr5
|
||||
expr5 == expr5 equal
|
||||
expr5 != expr5 not equal
|
||||
expr5 > expr5 greater than
|
||||
expr5 >= expr5 greater than or equal
|
||||
@@ -666,24 +670,28 @@ Expression syntax summary, from least to most significant:
|
||||
expr5 is expr5 same |List| instance
|
||||
expr5 isnot expr5 different |List| instance
|
||||
|
||||
|expr5| expr6 + expr6 .. number addition or list concatenation
|
||||
|expr5| expr6
|
||||
expr6 + expr6 .. number addition or list concatenation
|
||||
expr6 - expr6 .. number subtraction
|
||||
expr6 . expr6 .. string concatenation
|
||||
|
||||
|expr6| expr7 * expr7 .. number multiplication
|
||||
|expr6| expr7
|
||||
expr7 * expr7 .. number multiplication
|
||||
expr7 / expr7 .. number division
|
||||
expr7 % expr7 .. number modulo
|
||||
|
||||
|expr7| ! expr7 logical NOT
|
||||
|expr7| expr8
|
||||
! expr7 logical NOT
|
||||
- expr7 unary minus
|
||||
+ expr7 unary plus
|
||||
|
||||
|expr8| expr8[expr1] byte of a String or item of a |List|
|
||||
|expr8| expr9
|
||||
expr8[expr1] byte of a String or item of a |List|
|
||||
expr8[expr1 : expr1] substring of a String or sublist of a |List|
|
||||
expr8.name entry in a |Dictionary|
|
||||
expr8(expr1, ...) function call with |Funcref| variable
|
||||
|
||||
|expr9| number number constant
|
||||
|expr9| number number constant
|
||||
"string" string constant, backslash is special
|
||||
'string' string constant, ' is doubled
|
||||
[expr1, ...] |List|
|
||||
@@ -736,7 +744,9 @@ use in a variable such as "a:1".
|
||||
expr2 and expr3 *expr2* *expr3*
|
||||
---------------
|
||||
|
||||
*expr-barbar* *expr-&&*
|
||||
expr3 || expr3 .. logical OR *expr-barbar*
|
||||
expr4 && expr4 .. logical AND *expr-&&*
|
||||
|
||||
The "||" and "&&" operators take one argument on each side. The arguments
|
||||
are (converted to) Numbers. The result is:
|
||||
|
||||
@@ -1981,7 +1991,7 @@ assert_notmatch({pat}, {text} [, {msg}]) none assert {pat} not matches {text}
|
||||
assert_true({actual} [, {msg}]) none assert {actual} is true
|
||||
asin({expr}) Float arc sine of {expr}
|
||||
atan({expr}) Float arc tangent of {expr}
|
||||
atan2({expr}, {expr}) Float arc tangent of {expr1} / {expr2}
|
||||
atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
|
||||
browse({save}, {title}, {initdir}, {default})
|
||||
String put up a file requester
|
||||
browsedir({title}, {initdir}) String put up a directory requester
|
||||
@@ -1999,6 +2009,7 @@ call({func}, {arglist} [, {dict}])
|
||||
any call {func} with arguments {arglist}
|
||||
ceil({expr}) Float round {expr} up
|
||||
ch_close({handle}) none close {handle}
|
||||
ch_close_in({handle}) none close in part of {handle}
|
||||
ch_evalexpr({handle}, {expr} [, {options}])
|
||||
any evaluate {expr} on JSON {handle}
|
||||
ch_evalraw({handle}, {string} [, {options}])
|
||||
@@ -2970,6 +2981,14 @@ confirm({msg} [, {choices} [, {default} [, {type}]]])
|
||||
ch_close({handle}) *ch_close()*
|
||||
Close {handle}. See |channel-close|.
|
||||
{handle} can be Channel or a Job that has a Channel.
|
||||
A close callback is not invoked.
|
||||
|
||||
{only available when compiled with the |+channel| feature}
|
||||
|
||||
ch_close_in({handle}) *ch_close_in()*
|
||||
Close the "in" part of {handle}. See |channel-close-in|.
|
||||
{handle} can be Channel or a Job that has a Channel.
|
||||
A close callback is not invoked.
|
||||
|
||||
{only available when compiled with the |+channel| feature}
|
||||
|
||||
@@ -3272,6 +3291,8 @@ delete({fname} [, {flags}]) *delete()*
|
||||
|
||||
When {flags} is "rf": Deletes the directory by the name
|
||||
{fname} and everything in it, recursively. BE CAREFUL!
|
||||
Note: on MS-Windows it is not possible to delete a directory
|
||||
that is being used.
|
||||
|
||||
A symbolic link itself is deleted, not what it points to.
|
||||
|
||||
@@ -5903,9 +5924,10 @@ printf({fmt}, {expr1} ...) *printf()*
|
||||
%X hex number using upper case letters
|
||||
%o octal number
|
||||
%08b binary number padded with zeros to at least 8 chars
|
||||
%f floating point number in the form 123.456
|
||||
%e floating point number in the form 1.234e3
|
||||
%E floating point number in the form 1.234E3
|
||||
%f floating point number as 12.23, inf, -inf or nan
|
||||
%F floating point number as 12.23, INF, -INF or NAN
|
||||
%e floating point number as 1.23e3, inf, -inf or nan
|
||||
%E floating point number as 1.23E3, INF, -INF or NAN
|
||||
%g floating point number, as %f or %e depending on value
|
||||
%G floating point number, as %f or %E depending on value
|
||||
%% the % character itself
|
||||
@@ -6037,8 +6059,9 @@ printf({fmt}, {expr1} ...) *printf()*
|
||||
digits after the decimal point. When the precision is
|
||||
zero the decimal point is omitted. When the precision
|
||||
is not specified 6 is used. A really big number
|
||||
(out of range or dividing by zero) results in "inf".
|
||||
"0.0 / 0.0" results in "nan".
|
||||
(out of range or dividing by zero) results in "inf"
|
||||
or "-inf" with %f (INF or -INF with %F).
|
||||
"0.0 / 0.0" results in "nan" with %f (NAN with %F).
|
||||
Example: >
|
||||
echo printf("%.2f", 12.115)
|
||||
< 12.12
|
||||
@@ -6344,7 +6367,7 @@ round({expr}) *round()*
|
||||
{only available when compiled with the |+float| feature}
|
||||
|
||||
screenattr(row, col) *screenattr()*
|
||||
Like screenchar(), but return the attribute. This is a rather
|
||||
Like |screenchar()|, but return the attribute. This is a rather
|
||||
arbitrary number that can only be used to compare to the
|
||||
attribute at other positions.
|
||||
|
||||
@@ -7505,7 +7528,7 @@ system({expr} [, {input}]) *system()* *E677*
|
||||
|
||||
Pipes are not used, the 'shelltemp' option is not used.
|
||||
|
||||
When prepended by |:silent| the shell will not be set to
|
||||
When prepended by |:silent| the terminal will not be set to
|
||||
cooked mode. This is meant to be used for commands that do
|
||||
not need the user to type. It avoids stray characters showing
|
||||
up on the screen which require |CTRL-L| to remove. >
|
||||
@@ -7764,13 +7787,14 @@ timer_start({time}, {callback} [, {options}])
|
||||
busy or Vim is not waiting for input the time will be longer.
|
||||
|
||||
{callback} is the function to call. It can be the name of a
|
||||
function or a Funcref. It is called with one argument, which
|
||||
function or a |Funcref|. It is called with one argument, which
|
||||
is the timer ID. The callback is only invoked when Vim is
|
||||
waiting for input.
|
||||
|
||||
{options} is a dictionary. Supported entries:
|
||||
"repeat" Number of times to repeat calling the
|
||||
callback. -1 means forever.
|
||||
callback. -1 means forever. When not present
|
||||
the callback will be called once.
|
||||
|
||||
Example: >
|
||||
func MyHandler(timer)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*filetype.txt* For Vim version 7.4. Last change: 2016 Jun 20
|
||||
*filetype.txt* For Vim version 7.4. Last change: 2016 Sep 09
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -644,6 +644,17 @@ These maps can be disabled with >
|
||||
:let g:no_pdf_maps = 1
|
||||
<
|
||||
|
||||
PYTHON *ft-python-plugin* *PEP8*
|
||||
|
||||
By default the following options are set, in accordance with PEP8: >
|
||||
|
||||
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
|
||||
|
||||
To disable this behaviour, set the following variable in your vimrc: >
|
||||
|
||||
let g:python_recommended_style = 0
|
||||
|
||||
|
||||
RPM SPEC *ft-spec-plugin*
|
||||
|
||||
Since the text for this plugin is rather long it has been put in a separate
|
||||
|
||||
@@ -111,8 +111,8 @@ to your .gvimrc file to revert back to the default Vim tab label.
|
||||
*macvim-options*
|
||||
These are the non-standard options that MacVim supports:
|
||||
'antialias' 'blurradius' 'fullscreen'
|
||||
'fuoptions' 'macligatures' 'macmeta' 'toolbariconsize'
|
||||
'transparency'
|
||||
'fuoptions' 'macligatures' 'macmeta' 'macthinstrokes'
|
||||
'toolbariconsize' 'transparency'
|
||||
|
||||
*macvim-commands*
|
||||
These are the non-standard commands that MacVim supports:
|
||||
|
||||
@@ -59,6 +59,12 @@ Example:
|
||||
EOF
|
||||
endfunction
|
||||
<
|
||||
To see what version of Lua you have: >
|
||||
:lua print(_VERSION)
|
||||
|
||||
If you use LuaJIT you can also use this: >
|
||||
:lua print(jit.version)
|
||||
<
|
||||
|
||||
*:luado*
|
||||
:[range]luado {body} Execute Lua function "function (line, linenr) {body}
|
||||
|
||||
@@ -97,6 +97,9 @@ procedures is restricted.
|
||||
:mzscheme (require (prefix vim- vimext)) ; for MzScheme < 4.x
|
||||
:mzscheme (require (prefix-in vim- 'vimext)) ; MzScheme 4.x
|
||||
:mzscheme (vim-set-buff-line 10 "This is line #10")
|
||||
|
||||
To see what version of MzScheme you have: >
|
||||
:mzscheme (display (version))
|
||||
<
|
||||
Inline script usage: >
|
||||
function! <SID>SetFirstLine()
|
||||
|
||||
@@ -83,6 +83,9 @@ Example vim script: >
|
||||
EOF
|
||||
endfunction
|
||||
<
|
||||
To see what version of Perl you have: >
|
||||
:perl print $^V
|
||||
<
|
||||
|
||||
*:perldo* *:perld*
|
||||
:[range]perld[o] {cmd} Execute Perl command {cmd} for each line in the
|
||||
|
||||
+10
-2
@@ -1,4 +1,4 @@
|
||||
*if_pyth.txt* For Vim version 7.4. Last change: 2015 Nov 10
|
||||
*if_pyth.txt* For Vim version 7.4. Last change: 2016 Sep 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Paul Moore
|
||||
@@ -56,7 +56,11 @@ Example: >
|
||||
print 'EAT ME'
|
||||
EOF
|
||||
endfunction
|
||||
<
|
||||
|
||||
To see what version of Python you have: >
|
||||
:python import sys
|
||||
:python print(sys.version)
|
||||
|
||||
Note: Python is very sensitive to the indenting. Make sure the "class" line
|
||||
and "EOF" do not have any indent.
|
||||
|
||||
@@ -745,6 +749,10 @@ The `:py3` and `:python3` commands work similar to `:python`. A simple check
|
||||
if the `:py3` command is working: >
|
||||
:py3 print("Hello")
|
||||
< *:py3file*
|
||||
To see what version of Python you have: >
|
||||
:py3 import sys
|
||||
:py3 print(sys.version)
|
||||
|
||||
The `:py3file` command works similar to `:pyfile`.
|
||||
*:py3do*
|
||||
The `:py3do` command works similar to `:pydo`.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_ruby.txt* For Vim version 7.4. Last change: 2015 Dec 03
|
||||
*if_ruby.txt* For Vim version 7.4. Last change: 2016 Sep 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Shugo Maeda
|
||||
@@ -58,6 +58,9 @@ Example Vim script: >
|
||||
EOF
|
||||
endfunction
|
||||
<
|
||||
To see what version of Ruby you have: >
|
||||
:ruby print RUBY_VERSION
|
||||
<
|
||||
|
||||
*:rubydo* *:rubyd* *E265*
|
||||
:[range]rubyd[o] {cmd} Evaluate Ruby command {cmd} for each line in the
|
||||
@@ -205,7 +208,7 @@ MS-Windows ~
|
||||
You need to install the right version of Ruby for this to work. You can find
|
||||
the package to download from:
|
||||
http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html
|
||||
Currently that is ruby-1.9.1-p429-i386-mswin32.zip
|
||||
Currently that is ruby-1.9.2-p136-i386-mswin32.zip
|
||||
|
||||
To use the Ruby interface the Ruby DLL must be in your search path. In a
|
||||
console window type "path" to see what directories are used. The 'rubydll'
|
||||
|
||||
@@ -54,6 +54,9 @@ Example: >
|
||||
EOF
|
||||
endfunction
|
||||
<
|
||||
To see what version of Tcl you have: >
|
||||
:tcl puts [info patchlevel]
|
||||
<
|
||||
|
||||
*:tcldo* *:tcld*
|
||||
:[range]tcld[o] {cmd} Execute Tcl command {cmd} for each line in [range]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*message.txt* For Vim version 7.4. Last change: 2016 Jul 16
|
||||
*message.txt* For Vim version 7.4. Last change: 2016 Sep 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -39,6 +39,7 @@ back.
|
||||
Note: If the output has been stopped with "q" at the more prompt, it will only
|
||||
be displayed up to this point.
|
||||
The previous command output is cleared when another command produces output.
|
||||
The "g<" output is not redirected.
|
||||
|
||||
If you are using translated messages, the first printed line tells who
|
||||
maintains the messages or the translations. You can use this to contact the
|
||||
|
||||
+29
-9
@@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 7.4. Last change: 2016 Aug 26
|
||||
*options.txt* For Vim version 7.4. Last change: 2016 Sep 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -2869,10 +2869,17 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
global
|
||||
{not in Vi}
|
||||
Enables the reading of .vimrc, .exrc and .gvimrc in the current
|
||||
directory. If you switch this option on you should also consider
|
||||
setting the 'secure' option (see |initialization|). Using a local
|
||||
.exrc, .vimrc or .gvimrc is a potential security leak, use with care!
|
||||
also see |.vimrc| and |gui-init|.
|
||||
directory.
|
||||
|
||||
Setting this option is a potential security leak. E.g., consider
|
||||
unpacking a package or fetching files from github, a .vimrc in there
|
||||
might be a trojan horse. BETTER NOT SET THIS OPTION!
|
||||
Instead, define an autocommand in your .vimrc to set options for a
|
||||
matching directory.
|
||||
|
||||
If you do switch this option on you should also consider setting the
|
||||
'secure' option (see |initialization|).
|
||||
Also see |.vimrc| and |gui-init|.
|
||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||
security reasons.
|
||||
|
||||
@@ -5036,6 +5043,18 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'guifont' supports them. Examples for such fonts are Fira Code or
|
||||
Haskelig.
|
||||
Note: Currently this option only has an effect if
|
||||
'Use Core Text renderer' is enabled in the GUI preferences pane.
|
||||
|
||||
*'macthinstrokes'* *'nomacthinstrokes'*
|
||||
'macthinstrokes' boolean (default off)
|
||||
global
|
||||
{not in Vi}
|
||||
{only available when compiled with GUI enabled on
|
||||
Mac OS X}
|
||||
This option only has an effect in the GUI version of Vim on Mac OS X
|
||||
v10.8 or later. When on, Vim will render the text a little lighter
|
||||
which looks nice with a dark colorscheme.
|
||||
Note: Currently this option only has an effect if
|
||||
'Use Core Text renderer' is enabled in the GUI preferences pane.
|
||||
|
||||
*'macmeta'* *'mmta'* *'nomacmeta'* *'nommta'*
|
||||
@@ -5055,10 +5074,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
global
|
||||
Changes the special characters that can be used in search patterns.
|
||||
See |pattern|.
|
||||
NOTE: To avoid portability problems with using patterns, always keep
|
||||
this option at the default "on". Only switch it off when working with
|
||||
old Vi scripts. In any other situation write patterns that work when
|
||||
'magic' is on. Include "\M" when you want to |/\M|.
|
||||
WARNING: Switching this option off most likely breaks plugins! That
|
||||
is because many patterns assume it's on and will fail when it's off.
|
||||
Only switch it off when working with old Vi scripts. In any other
|
||||
situation write patterns that work when 'magic' is on. Include "\M"
|
||||
when you want to |/\M|.
|
||||
|
||||
*'makeef'* *'mef'*
|
||||
'makeef' 'mef' string (default: "")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_win32.txt* For Vim version 7.4. Last change: 2016 Mar 05
|
||||
*os_win32.txt* For Vim version 7.4. Last change: 2016 Aug 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by George Reilly
|
||||
@@ -144,29 +144,8 @@ the console.
|
||||
5. Running under Windows 3.1 *win32-win3.1*
|
||||
|
||||
*win32s* *windows-3.1*
|
||||
There is a special version of Gvim that runs under Windows 3.1 and 3.11. You
|
||||
need the gvim.exe that was compiled with Visual C++ 4.1.
|
||||
|
||||
To run the Win32 version under Windows 3.1, you need to install Win32s. You
|
||||
might have it already from another Win32 application which you have installed.
|
||||
If Vim doesn't seem to be running properly, get the latest version: 1.30c.
|
||||
You can find it at:
|
||||
|
||||
http://support.microsoft.com/download/support/mslfiles/pw1118.exe
|
||||
|
||||
(Microsoft moved it again, we don't know where it is now :-( ).
|
||||
|
||||
The reason for having two versions of gvim.exe is that the Win32s version was
|
||||
compiled with VC++ 4.1. This is the last version of VC++ that supports Win32s
|
||||
programs. VC++ 5.0 is better, so that one was used for the Win32 version.
|
||||
Apart from that, there is no difference between the programs. If you are in a
|
||||
mixed environment, you can use the gvim.exe for Win32s on both.
|
||||
|
||||
The Win32s version works the same way as the Win32 version under 95/NT. When
|
||||
running under Win32s the following differences apply:
|
||||
- You cannot use long file names, because Windows 3.1 doesn't support them!
|
||||
- When executing an external command, it doesn't return an exit code. After
|
||||
doing ":make" you have to do ":cn" yourself.
|
||||
There was a special version of Gvim that runs under Windows 3.1 and 3.11.
|
||||
Support was removed in patch 7.4.1363.
|
||||
|
||||
==============================================================================
|
||||
6. Win32 mini FAQ *win32-faq*
|
||||
|
||||
@@ -785,6 +785,7 @@ Short explanation of each option: *option-list*
|
||||
'macatsui' Mac GUI: use ATSUI text drawing
|
||||
'macligatures' display ligatures (MacVim GUI only)
|
||||
'macmeta' 'mmta' use option as meta key (MacVim GUI only)
|
||||
'macthinstrokes' render the text lighter by using thin strokes (MacVim GUI only)
|
||||
'magic' changes special characters in search patterns
|
||||
'makeef' 'mef' name of the errorfile for ":make"
|
||||
'makeprg' 'mp' program to use for the ":make" command
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*repeat.txt* For Vim version 7.4. Last change: 2016 Jul 21
|
||||
*repeat.txt* For Vim version 7.4. Last change: 2016 Sep 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -158,7 +158,7 @@ q Stops recording. (Implementation note: The 'q' that
|
||||
:[addr]@: Repeat last command-line. First set cursor at line
|
||||
[addr] (default is current line). {not in Vi}
|
||||
|
||||
*:@@*
|
||||
:[addr]@ *:@@*
|
||||
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
|
||||
line [addr] (default is current line). {Vi: only in
|
||||
some versions}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*starting.txt* For Vim version 7.4. Last change: 2016 Aug 26
|
||||
*starting.txt* For Vim version 7.4. Last change: 2016 Sep 09
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -839,7 +839,7 @@ accordingly. Vim proceeds in this order:
|
||||
options values and has "syntax on" and "filetype on" commands,
|
||||
which is what most new users will want. See |defaults.vim|.
|
||||
|
||||
d. If the 'exrc' option is on (which is not the default), the current
|
||||
d. If the 'exrc' option is on (which is NOT the default), the current
|
||||
directory is searched for three files. The first that exists is used,
|
||||
the others are ignored.
|
||||
- The file ".vimrc" (for Unix, Amiga and OS/2) (*)
|
||||
@@ -1022,14 +1022,20 @@ patch 7.4.2111 to be exact).
|
||||
|
||||
This should work well for new Vim users. If you create your own .vimrc, it is
|
||||
recommended to add this line somewhere near the top: >
|
||||
unlet! skip_defaults_vim
|
||||
source $VIMRUNTIME/defaults.vim
|
||||
Then Vim works like before you had a .vimrc. Copying $VIMRUNTIME/vimrc_example
|
||||
is way to do this. Alternatively, you can copy defaults.vim to your .vimrc
|
||||
and modify it.
|
||||
and modify it (but then you won't get updates when it changes).
|
||||
|
||||
If you don't like some of the defaults, you can still source defaults.vim and
|
||||
revert individual settings. See the defaults.vim file for hints on how to
|
||||
revert each item.
|
||||
*skip_defaults_vim*
|
||||
If you use a system-wide vimrc and don't want defaults.vim to change settings,
|
||||
set the "skip_defaults_vim" variable. If this was set and you want to load
|
||||
defaults.vim from your .vimrc, first unlet skip_defaults_vim, as in the
|
||||
example above.
|
||||
|
||||
|
||||
Avoiding trojan horses ~
|
||||
|
||||
+78
-42
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2016 Aug 16
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2016 Sep 09
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -2669,7 +2669,76 @@ your .vimrc: *g:filetype_r*
|
||||
|
||||
RUBY *ruby.vim* *ft-ruby-syntax*
|
||||
|
||||
There are a number of options to the Ruby syntax highlighting.
|
||||
Ruby: Operator highlighting |ruby_operators|
|
||||
Ruby: Whitespace errors |ruby_space_errors|
|
||||
Ruby: Folding |ruby_fold| |ruby_foldable_groups|
|
||||
Ruby: Reducing expensive operations |ruby_no_expensive| |ruby_minlines|
|
||||
Ruby: Spellchecking strings |ruby_spellcheck_strings|
|
||||
|
||||
*ruby_operators*
|
||||
Ruby: Operator highlighting ~
|
||||
|
||||
Operators can be highlighted by defining "ruby_operators": >
|
||||
|
||||
:let ruby_operators = 1
|
||||
<
|
||||
*ruby_space_errors*
|
||||
Ruby: Whitespace errors ~
|
||||
|
||||
Whitespace errors can be highlighted by defining "ruby_space_errors": >
|
||||
|
||||
:let ruby_space_errors = 1
|
||||
<
|
||||
This will highlight trailing whitespace and tabs preceded by a space character
|
||||
as errors. This can be refined by defining "ruby_no_trail_space_error" and
|
||||
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
|
||||
spaces respectively.
|
||||
|
||||
*ruby_fold* *ruby_foldable_groups*
|
||||
Ruby: Folding ~
|
||||
|
||||
Folding can be enabled by defining "ruby_fold": >
|
||||
|
||||
:let ruby_fold = 1
|
||||
<
|
||||
This will set the value of 'foldmethod' to "syntax" locally to the current
|
||||
buffer or window, which will enable syntax-based folding when editing Ruby
|
||||
filetypes.
|
||||
|
||||
*ruby_foldable_groups*
|
||||
Default folding is rather detailed, i.e., small syntax units like "if", "do",
|
||||
"%w[]" may create corresponding fold levels.
|
||||
|
||||
You can set "ruby_foldable_groups" to restrict which groups are foldable: >
|
||||
|
||||
:let ruby_foldable_groups = 'if case %'
|
||||
<
|
||||
The value is a space-separated list of keywords:
|
||||
|
||||
keyword meaning ~
|
||||
-------- ------------------------------------- ~
|
||||
ALL Most block syntax (default)
|
||||
NONE Nothing
|
||||
if "if" or "unless" block
|
||||
def "def" block
|
||||
class "class" block
|
||||
module "module" block
|
||||
do "do" block
|
||||
begin "begin" block
|
||||
case "case" block
|
||||
for "for", "while", "until" loops
|
||||
{ Curly bracket block or hash literal
|
||||
[ Array literal
|
||||
% Literal with "%" notation, e.g.: %w(STRING), %!STRING!
|
||||
/ Regexp
|
||||
string String and shell command output (surrounded by ', ", `)
|
||||
: Symbol
|
||||
# Multiline comment
|
||||
<< Here documents
|
||||
__END__ Source code after "__END__" directive
|
||||
|
||||
*ruby_no_expensive*
|
||||
Ruby: Reducing expensive operations ~
|
||||
|
||||
By default, the "end" keyword is colorized according to the opening statement
|
||||
of the block it closes. While useful, this feature can be expensive; if you
|
||||
@@ -2680,6 +2749,8 @@ you may want to turn it off by defining the "ruby_no_expensive" variable: >
|
||||
<
|
||||
In this case the same color will be used for all control keywords.
|
||||
|
||||
*ruby_minlines*
|
||||
|
||||
If you do want this feature enabled, but notice highlighting errors while
|
||||
scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
|
||||
the "ruby_minlines" variable to a value larger than 50: >
|
||||
@@ -2689,48 +2760,13 @@ the "ruby_minlines" variable to a value larger than 50: >
|
||||
Ideally, this value should be a number of lines large enough to embrace your
|
||||
largest class or module.
|
||||
|
||||
Highlighting of special identifiers can be disabled by removing the
|
||||
rubyIdentifier highlighting: >
|
||||
*ruby_spellcheck_strings*
|
||||
Ruby: Spellchecking strings ~
|
||||
|
||||
:hi link rubyIdentifier NONE
|
||||
<
|
||||
This will prevent highlighting of special identifiers like "ConstantName",
|
||||
"$global_var", "@@class_var", "@instance_var", "| block_param |", and
|
||||
":symbol".
|
||||
Ruby syntax will perform spellchecking of strings if you define
|
||||
"ruby_spellcheck_strings": >
|
||||
|
||||
Significant methods of Kernel, Module and Object are highlighted by default.
|
||||
This can be disabled by defining "ruby_no_special_methods": >
|
||||
|
||||
:let ruby_no_special_methods = 1
|
||||
<
|
||||
This will prevent highlighting of important methods such as "require", "attr",
|
||||
"private", "raise" and "proc".
|
||||
|
||||
Ruby operators can be highlighted. This is enabled by defining
|
||||
"ruby_operators": >
|
||||
|
||||
:let ruby_operators = 1
|
||||
<
|
||||
Whitespace errors can be highlighted by defining "ruby_space_errors": >
|
||||
|
||||
:let ruby_space_errors = 1
|
||||
<
|
||||
This will highlight trailing whitespace and tabs preceded by a space character
|
||||
as errors. This can be refined by defining "ruby_no_trail_space_error" and
|
||||
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
|
||||
spaces respectively.
|
||||
|
||||
Folding can be enabled by defining "ruby_fold": >
|
||||
|
||||
:let ruby_fold = 1
|
||||
<
|
||||
This will set the 'foldmethod' option to "syntax" and allow folding of
|
||||
classes, modules, methods, code blocks, heredocs and comments.
|
||||
|
||||
Folding of multiline comments can be disabled by defining
|
||||
"ruby_no_comment_fold": >
|
||||
|
||||
:let ruby_no_comment_fold = 1
|
||||
:let ruby_spellcheck_strings = 1
|
||||
<
|
||||
|
||||
SCHEME *scheme.vim* *ft-scheme-syntax*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*tabpage.txt* For Vim version 7.4. Last change: 2015 Jan 04
|
||||
*tabpage.txt* For Vim version 7.4. Last change: 2016 Sep 09
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -201,6 +201,12 @@ Other commands:
|
||||
:tabs List the tab pages and the windows they contain.
|
||||
Shows a ">" for the current window.
|
||||
Shows a "+" for modified buffers.
|
||||
For example:
|
||||
Tab page 1 ~
|
||||
+ tabpage.txt ~
|
||||
ex_docmd.c ~
|
||||
Tab page 2 ~
|
||||
> main.c ~
|
||||
|
||||
|
||||
REORDERING TAB PAGES:
|
||||
|
||||
@@ -433,6 +433,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
'macatsui' options.txt /*'macatsui'*
|
||||
'macligatures' options.txt /*'macligatures'*
|
||||
'macmeta' options.txt /*'macmeta'*
|
||||
'macthinstrokes' options.txt /*'macthinstrokes'*
|
||||
'magic' options.txt /*'magic'*
|
||||
'makeef' options.txt /*'makeef'*
|
||||
'makeprg' options.txt /*'makeprg'*
|
||||
@@ -614,6 +615,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
'nomacatsui' options.txt /*'nomacatsui'*
|
||||
'nomacligatures' options.txt /*'nomacligatures'*
|
||||
'nomacmeta' options.txt /*'nomacmeta'*
|
||||
'nomacthinstrokes' options.txt /*'nomacthinstrokes'*
|
||||
'nomagic' options.txt /*'nomagic'*
|
||||
'nomh' options.txt /*'nomh'*
|
||||
'noml' options.txt /*'noml'*
|
||||
@@ -4534,6 +4536,7 @@ E932 eval.txt /*E932*
|
||||
E933 eval.txt /*E933*
|
||||
E934 sign.txt /*E934*
|
||||
E935 eval.txt /*E935*
|
||||
E936 autocmd.txt /*E936*
|
||||
E94 windows.txt /*E94*
|
||||
E95 message.txt /*E95*
|
||||
E96 diff.txt /*E96*
|
||||
@@ -4665,6 +4668,7 @@ OptionSet autocmd.txt /*OptionSet*
|
||||
OverTheSpot mbyte.txt /*OverTheSpot*
|
||||
P change.txt /*P*
|
||||
PATHEXT eval.txt /*PATHEXT*
|
||||
PEP8 filetype.txt /*PEP8*
|
||||
PHP_BracesAtCodeLevel indent.txt /*PHP_BracesAtCodeLevel*
|
||||
PHP_autoformatcomment indent.txt /*PHP_autoformatcomment*
|
||||
PHP_default_indenting indent.txt /*PHP_default_indenting*
|
||||
@@ -5297,6 +5301,7 @@ cc change.txt /*cc*
|
||||
ceil() eval.txt /*ceil()*
|
||||
ch.vim syntax.txt /*ch.vim*
|
||||
ch_close() eval.txt /*ch_close()*
|
||||
ch_close_in() eval.txt /*ch_close_in()*
|
||||
ch_evalexpr() eval.txt /*ch_evalexpr()*
|
||||
ch_evalraw() eval.txt /*ch_evalraw()*
|
||||
ch_getbufnr() eval.txt /*ch_getbufnr()*
|
||||
@@ -5339,6 +5344,7 @@ changing change.txt /*changing*
|
||||
channel channel.txt /*channel*
|
||||
channel-callback channel.txt /*channel-callback*
|
||||
channel-close channel.txt /*channel-close*
|
||||
channel-close-in channel.txt /*channel-close-in*
|
||||
channel-commands channel.txt /*channel-commands*
|
||||
channel-demo channel.txt /*channel-demo*
|
||||
channel-functions usr_41.txt /*channel-functions*
|
||||
@@ -5787,6 +5793,8 @@ erlang.vim syntax.txt /*erlang.vim*
|
||||
err_buf channel.txt /*err_buf*
|
||||
err_cb channel.txt /*err_cb*
|
||||
err_mode channel.txt /*err_mode*
|
||||
err_modifiable channel.txt /*err_modifiable*
|
||||
err_msg channel.txt /*err_msg*
|
||||
err_name channel.txt /*err_name*
|
||||
err_timeout channel.txt /*err_timeout*
|
||||
errmsg-variable eval.txt /*errmsg-variable*
|
||||
@@ -6141,6 +6149,7 @@ ft-printcap-syntax syntax.txt /*ft-printcap-syntax*
|
||||
ft-progress-syntax syntax.txt /*ft-progress-syntax*
|
||||
ft-ptcap-syntax syntax.txt /*ft-ptcap-syntax*
|
||||
ft-python-indent indent.txt /*ft-python-indent*
|
||||
ft-python-plugin filetype.txt /*ft-python-plugin*
|
||||
ft-python-syntax syntax.txt /*ft-python-syntax*
|
||||
ft-quake-syntax syntax.txt /*ft-quake-syntax*
|
||||
ft-r-indent indent.txt /*ft-r-indent*
|
||||
@@ -7792,6 +7801,8 @@ out_buf channel.txt /*out_buf*
|
||||
out_cb channel.txt /*out_cb*
|
||||
out_io-buffer channel.txt /*out_io-buffer*
|
||||
out_mode channel.txt /*out_mode*
|
||||
out_modifiable channel.txt /*out_modifiable*
|
||||
out_msg channel.txt /*out_msg*
|
||||
out_name channel.txt /*out_name*
|
||||
out_timeout channel.txt /*out_timeout*
|
||||
p change.txt /*p*
|
||||
@@ -8112,6 +8123,14 @@ ruby-set_option if_ruby.txt /*ruby-set_option*
|
||||
ruby-vim if_ruby.txt /*ruby-vim*
|
||||
ruby-window if_ruby.txt /*ruby-window*
|
||||
ruby.vim syntax.txt /*ruby.vim*
|
||||
ruby_fold syntax.txt /*ruby_fold*
|
||||
ruby_foldable_groups syntax.txt /*ruby_foldable_groups*
|
||||
ruby_foldable_groups syntax.txt /*ruby_foldable_groups*
|
||||
ruby_minlines syntax.txt /*ruby_minlines*
|
||||
ruby_no_expensive syntax.txt /*ruby_no_expensive*
|
||||
ruby_operators syntax.txt /*ruby_operators*
|
||||
ruby_space_errors syntax.txt /*ruby_space_errors*
|
||||
ruby_spellcheck_strings syntax.txt /*ruby_spellcheck_strings*
|
||||
russian russian.txt /*russian*
|
||||
russian-intro russian.txt /*russian-intro*
|
||||
russian-issues russian.txt /*russian-issues*
|
||||
@@ -8246,6 +8265,7 @@ sin() eval.txt /*sin()*
|
||||
single-repeat repeat.txt /*single-repeat*
|
||||
sinh() eval.txt /*sinh()*
|
||||
skeleton autocmd.txt /*skeleton*
|
||||
skip_defaults_vim starting.txt /*skip_defaults_vim*
|
||||
slice eval.txt /*slice*
|
||||
slow-fast-terminal term.txt /*slow-fast-terminal*
|
||||
slow-start starting.txt /*slow-start*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*term.txt* For Vim version 7.4. Last change: 2016 Apr 29
|
||||
*term.txt* For Vim version 7.4. Last change: 2016 Sep 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -426,6 +426,8 @@ Vim has started, the escape sequences may not be recognized anymore.
|
||||
Vim supports using true colors in the terminal (taken from |highlight-guifg|
|
||||
and |highlight-guibg|), given that the terminal supports this. To make this
|
||||
work the 'termguicolors' option needs to be set.
|
||||
See https://gist.github.com/XVilka/8346728 for a list of terminals that
|
||||
support true colors.
|
||||
|
||||
Sometimes setting 'termguicolors' is not enough and one has to set the |t_8f|
|
||||
and |t_8b| options explicitly. Default values of these options are
|
||||
@@ -433,9 +435,8 @@ and |t_8b| options explicitly. Default values of these options are
|
||||
set when `$TERM` is `xterm`. Some terminals accept the same sequences, but
|
||||
with all semicolons replaced by colons (this is actually more compatible, but
|
||||
less widely supported): >
|
||||
set t_8f=^[[38:2:%lu:%lu:%lum
|
||||
set t_8b=^[[48:2:%lu:%lu:%lum
|
||||
(replace `^[` with real escape)
|
||||
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
|
||||
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
|
||||
|
||||
These options contain printf strings, with |printf()| (actually, its C
|
||||
equivalent hence `l` modifier) invoked with the t_ option value and three
|
||||
|
||||
+23
-18
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.4. Last change: 2016 Aug 27
|
||||
*todo.txt* For Vim version 7.4. Last change: 2016 Sep 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -34,10 +34,12 @@ not be repeated below, unless there is extra information.
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Make ":filter" work with more commands.
|
||||
Search for: msg_putchar('\n')
|
||||
|
||||
+channel:
|
||||
- channel_wait() may return an error while there is still something to read.
|
||||
Perhaps try to read once?
|
||||
- Problem with stderr on Windows? (Vincent Rischmann, 2016 Aug 31, #1026)
|
||||
- Add 'cwd' argument to start_job(): directory to change to in the child.
|
||||
check for valid directory before forking.
|
||||
- Implement |job-term| ?
|
||||
- Channel test fails with Motif. Sometimes kills the X11 server.
|
||||
- When a message in the queue but there is no callback, drop it after a while?
|
||||
@@ -55,8 +57,6 @@ Later
|
||||
With xterm could use -S{pty}.
|
||||
|
||||
Regexp problems:
|
||||
- The new engine does not do the example in change.txt correctly, where the
|
||||
meaning of \1 and \2 is explained. (Harm te Hennepe, #990)
|
||||
- Since 7.4.704 the old regex engine fails to match [[:print:]] in 0xf6.
|
||||
(Manuel Ortega, 2016 Apr 24)
|
||||
Test fails on Mac. Avoid using isalpha(), isalnum(), etc? Depends on
|
||||
@@ -76,8 +76,6 @@ Regexp problems:
|
||||
2013 Dec 11)
|
||||
- Using \@> and \?. (Brett Stahlman, 2013 Dec 21) Remark from Marcin Szamotulski
|
||||
Remark from Brett 2014 Jan 6 and 7.
|
||||
- Difference in NFA and old engine. (Brett Stahlman, 2014 Nov 5)
|
||||
- Bug when using \>. (Ramel, 2014 Feb 2) (Aaron Bohannon, 2014 Feb 13)
|
||||
- NFA regexp doesn't handle \%<v correctly. (Ingo Karkat, 2014 May 12)
|
||||
- Does not work with NFA regexp engine:
|
||||
\%u, \%x, \%o, \%d followed by a composing character
|
||||
@@ -101,9 +99,7 @@ Regexp problems:
|
||||
out the \& works. Seems any column check after \& fails.
|
||||
- The pattern "\1" with the old engine gives E65, with the new engine it
|
||||
matches the empty string. (Dominique Pelle, 2015 Oct 2, Nov 24)
|
||||
- Search for \\~ causes error E874.
|
||||
- Search for /\%d0\+ causes error E363 in a file with consecutive NUL
|
||||
characters. (Christian Brabandt, 2016 Jun 7)
|
||||
had_endbrace[] is set but not initialized or used.
|
||||
|
||||
json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
|
||||
What if there is an invalid character?
|
||||
@@ -117,8 +113,6 @@ Once .exe with updated installer is available: Add remark to download page
|
||||
about /S and /D options (Ken Takata, 2016 Apr 13)
|
||||
Or point to nightly builds: https://github.com/vim/vim-win32-installer/releases
|
||||
|
||||
Cursor positioned in the wrong place when editing src/testdir/test_viml.vim.
|
||||
|
||||
Javascript indent wrong after /* in single quoted string:
|
||||
var SRC = 'src/*.js';
|
||||
function log(tag) {
|
||||
@@ -130,15 +124,16 @@ Add tests for using number larger than number of lines in buffer.
|
||||
|
||||
Invalid behavior with NULL list. (Nikolai Pavlov, #768)
|
||||
|
||||
For current Windows build .pdb file is missing. (Gabriele Fava, 2016 May 11)
|
||||
5)
|
||||
|
||||
Patch to fix compiler warning with gtk3. (Kazunobu Kuriyama, 2016 Aug 24)
|
||||
min() and max() spawn lots of error messages if sorted list/dictionary
|
||||
contains invalid data (Nikolay Pavlov, 2016 Sep 4, #1039)
|
||||
|
||||
Problem with whitespace in errorformat. (Gerd Wachsmuth, 2016 May 15, #807)
|
||||
|
||||
Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)
|
||||
|
||||
sort() is not stable when using numeric/float sort (Nikolay Pavlov, 2016 Sep
|
||||
4#1038)
|
||||
|
||||
cmap using execute() has side effects. (Killthemule, 2016 Aug 17, #983)
|
||||
|
||||
Syntax highlighting for messages with RFC3339 timestamp (#946)
|
||||
@@ -173,8 +168,12 @@ This does not work: :set cscopequickfix=a-
|
||||
|
||||
Possibly wrong value for seq_cur. (Florent Fayolle, 2016 May 15, #806)
|
||||
|
||||
Filetype plugin for awk. (Doug Kearns, 2016 Sep 5)
|
||||
|
||||
Patch to improve map documentation. Issue #799.
|
||||
|
||||
Patch for syntax folding optimization. (Shougo, 2016 Sep 6, #1045)
|
||||
|
||||
Patch for restoring wide characters in the console buffer.
|
||||
(Ken Takata, 2016 Jun 7)
|
||||
|
||||
@@ -186,6 +185,9 @@ Ramel Eshed: system() is much slower than job_start(), why? (Aug 26)
|
||||
Patch for Python: #622. (Roland Puntaier, 2016 Feb 2)
|
||||
What does it change?
|
||||
|
||||
Patch to make gd and gD work better for non-K&R code and with comments.
|
||||
(Anton Lindqvist, 2016 Aug 29)
|
||||
|
||||
When generating the Unicode tables with runtime/tools/unicode.vim the
|
||||
emoji_width table has only one entry.
|
||||
|
||||
@@ -215,6 +217,9 @@ Add redrawtabline command. (Naruhiko Nishino, 2016 Jun 11)
|
||||
|
||||
Neovim patch for utfc_ptr2char_len() https://github.com/neovim/neovim/pull/4574
|
||||
No test, needs some work to include.
|
||||
|
||||
Patch to make finding duplicate tags much faster, using a hashtab. (James
|
||||
McCoy, 2016 Sept 6, #1046)
|
||||
>
|
||||
Patch to improve indenting for C++ constructor with initializer list.
|
||||
(Hirohito Higashi, 2016 Mar 31)
|
||||
@@ -283,7 +288,7 @@ Patch to test popupmenu. Fails, possibly due to a bug.
|
||||
Patch to introduce 'cmdencoding'. (Ken Takata, Aug 18?)
|
||||
Better help Aug 19.
|
||||
Problem: applies to too many commands, such as :cbuffer.
|
||||
Should there be a different value for :make and :grep?
|
||||
Updated patch with three options, 2016 Sep 8.
|
||||
Win32: When running ":make" and 'encoding' differs from the system locale,
|
||||
the output should be converted. Esp. when 'encoding' is "utf-8". (Yongwei
|
||||
Wu) Should we use 'termencoding' for this?
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 7.4. Last change: 2016 Aug 07
|
||||
*usr_41.txt* For Vim version 7.4. Last change: 2016 Sep 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -932,6 +932,7 @@ Testing: *test-functions*
|
||||
Inter-process communication: *channel-functions*
|
||||
ch_open() open a channel
|
||||
ch_close() close a channel
|
||||
ch_close_in() close the in part of a channel
|
||||
ch_read() read a message from a channel
|
||||
ch_readraw() read a raw message from a channel
|
||||
ch_sendexpr() send a JSON message over a channel
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 7.4. Last change: 2016 Aug 26
|
||||
*various.txt* For Vim version 7.4. Last change: 2016 Sep 06
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -424,7 +424,7 @@ N *+statusline* Options 'statusline', 'rulerformat' and special
|
||||
m *+sun_workshop* |workshop|
|
||||
N *+syntax* Syntax highlighting |syntax|
|
||||
*+system()* Unix only: opposite of |+fork|
|
||||
N *+tag_binary* binary searching in tags file |tag-binary-search|
|
||||
T *+tag_binary* binary searching in tags file |tag-binary-search|
|
||||
N *+tag_old_static* old method for static tags |tag-old-static|
|
||||
m *+tag_any_white* any white space allowed in tags file |tag-any-white|
|
||||
m *+tcl* Tcl interface |tcl|
|
||||
|
||||
+910
-16
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Cucumber
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 Jun 01
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if (exists("b:did_ftplugin"))
|
||||
@@ -19,27 +19,23 @@ setlocal omnifunc=CucumberComplete
|
||||
let b:undo_ftplugin = "setl fo< com< cms< ofu<"
|
||||
|
||||
let b:cucumber_root = expand('%:p:h:s?.*[\/]\%(features\|stories\)\zs[\/].*??')
|
||||
if !exists("b:cucumber_steps_glob")
|
||||
let b:cucumber_steps_glob = b:cucumber_root.'/**/*.rb'
|
||||
endif
|
||||
|
||||
if !exists("g:no_plugin_maps") && !exists("g:no_cucumber_maps")
|
||||
nnoremap <silent><buffer> <C-]> :<C-U>exe <SID>jump('edit',v:count)<CR>
|
||||
nnoremap <silent><buffer> [<C-D> :<C-U>exe <SID>jump('edit',v:count)<CR>
|
||||
nnoremap <silent><buffer> ]<C-D> :<C-U>exe <SID>jump('edit',v:count)<CR>
|
||||
nnoremap <silent><buffer> <C-W>] :<C-U>exe <SID>jump('split',v:count)<CR>
|
||||
nnoremap <silent><buffer> <C-W><C-]> :<C-U>exe <SID>jump('split',v:count)<CR>
|
||||
nnoremap <silent><buffer> <C-W>d :<C-U>exe <SID>jump('split',v:count)<CR>
|
||||
nnoremap <silent><buffer> <C-W><C-D> :<C-U>exe <SID>jump('split',v:count)<CR>
|
||||
nnoremap <silent><buffer> <C-W>} :<C-U>exe <SID>jump('pedit',v:count)<CR>
|
||||
nnoremap <silent><buffer> [d :<C-U>exe <SID>jump('pedit',v:count)<CR>
|
||||
nnoremap <silent><buffer> ]d :<C-U>exe <SID>jump('pedit',v:count)<CR>
|
||||
cnoremap <SID>foldopen <Bar>if &foldopen =~# 'tag'<Bar>exe 'norm! zv'<Bar>endif
|
||||
nnoremap <silent> <script> <buffer> [<C-D> :<C-U>exe <SID>jump('edit',v:count)<SID>foldopen<CR>
|
||||
nnoremap <silent> <script> <buffer> ]<C-D> :<C-U>exe <SID>jump('edit',v:count)<SID>foldopen<CR>
|
||||
nnoremap <silent> <script> <buffer> <C-W>d :<C-U>exe <SID>jump('split',v:count)<SID>foldopen<CR>
|
||||
nnoremap <silent> <script> <buffer> <C-W><C-D> :<C-U>exe <SID>jump('split',v:count)<SID>foldopen<CR>
|
||||
nnoremap <silent> <script> <buffer> [d :<C-U>exe <SID>jump('pedit',v:count)<CR>
|
||||
nnoremap <silent> <script> <buffer> ]d :<C-U>exe <SID>jump('pedit',v:count)<CR>
|
||||
let b:undo_ftplugin .=
|
||||
\ "|sil! nunmap <buffer> <C-]>" .
|
||||
\ "|sil! nunmap <buffer> [<C-D>" .
|
||||
\ "|sil! nunmap <buffer> ]<C-D>" .
|
||||
\ "|sil! nunmap <buffer> <C-W>]" .
|
||||
\ "|sil! nunmap <buffer> <C-W><C-]>" .
|
||||
\ "|sil! nunmap <buffer> <C-W>d" .
|
||||
\ "|sil! nunmap <buffer> <C-W><C-D>" .
|
||||
\ "|sil! nunmap <buffer> <C-W>}" .
|
||||
\ "|sil! nunmap <buffer> [d" .
|
||||
\ "|sil! nunmap <buffer> ]d"
|
||||
endif
|
||||
@@ -59,7 +55,7 @@ endfunction
|
||||
function! s:allsteps()
|
||||
let step_pattern = '\C^\s*\K\k*\>\s*(\=\s*\zs\S.\{-\}\ze\s*)\=\s*\%(do\|{\)\s*\%(|[^|]*|\s*\)\=\%($\|#\)'
|
||||
let steps = []
|
||||
for file in split(glob(b:cucumber_root.'/**/*.rb'),"\n")
|
||||
for file in split(glob(b:cucumber_steps_glob),"\n")
|
||||
let lines = readfile(file)
|
||||
let num = 0
|
||||
for line in lines
|
||||
|
||||
@@ -27,7 +27,7 @@ elseif !exists("b:eruby_subtype")
|
||||
let s:lines = getline(1)."\n".getline(2)."\n".getline(3)."\n".getline(4)."\n".getline(5)."\n".getline("$")
|
||||
let b:eruby_subtype = matchstr(s:lines,'eruby_subtype=\zs\w\+')
|
||||
if b:eruby_subtype == ''
|
||||
let b:eruby_subtype = matchstr(substitute(expand("%:t"),'\c\%(\.erb\|\.eruby\|\.erubis\)\+$','',''),'\.\zs\w\+$')
|
||||
let b:eruby_subtype = matchstr(substitute(expand("%:t"),'\c\%(\.erb\|\.eruby\|\.erubis\)\+$','',''),'\.\zs\w\+\%(\ze+\w\+\)\=$')
|
||||
endif
|
||||
if b:eruby_subtype == 'rhtml'
|
||||
let b:eruby_subtype = 'html'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: generic git output
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if (exists("b:did_ftplugin"))
|
||||
@@ -12,6 +12,8 @@ let b:did_ftplugin = 1
|
||||
if !exists('b:git_dir')
|
||||
if expand('%:p') =~# '[\/]\.git[\/]modules[\/]'
|
||||
" Stay out of the way
|
||||
elseif expand('%:p') =~# '[\/]\.git[\/]worktrees'
|
||||
let b:git_dir = matchstr(expand('%:p'),'.*\.git[\/]worktrees[\/][^\/]\+\>')
|
||||
elseif expand('%:p') =~# '\.git\>'
|
||||
let b:git_dir = matchstr(expand('%:p'),'.*\.git\>')
|
||||
elseif $GIT_DIR != ''
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: git commit file
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if (exists("b:did_ftplugin"))
|
||||
@@ -11,15 +11,10 @@ endif
|
||||
runtime! ftplugin/git.vim
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal nomodeline tabstop=8 formatoptions-=croq formatoptions+=tl
|
||||
|
||||
let b:undo_ftplugin = 'setl modeline< tabstop< formatoptions<'
|
||||
|
||||
if &textwidth == 0
|
||||
" make sure that log messages play nice with git-log on standard terminals
|
||||
setlocal textwidth=72
|
||||
let b:undo_ftplugin .= "|setl tw<"
|
||||
endif
|
||||
setlocal comments=:# commentstring=#\ %s
|
||||
setlocal nomodeline tabstop=8 formatoptions+=tl textwidth=72
|
||||
setlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions-=q
|
||||
let b:undo_ftplugin = 'setl modeline< tabstop< formatoptions< tw< com< cms<'
|
||||
|
||||
if exists("g:no_gitcommit_commands") || v:version < 700
|
||||
finish
|
||||
@@ -31,6 +26,8 @@ endif
|
||||
|
||||
command! -bang -bar -buffer -complete=custom,s:diffcomplete -nargs=* DiffGitCached :call s:gitdiffcached(<bang>0,b:git_dir,<f-args>)
|
||||
|
||||
let b:undo_ftplugin = b:undo_ftplugin . "|delc DiffGitCached"
|
||||
|
||||
function! s:diffcomplete(A,L,P)
|
||||
let args = ""
|
||||
if a:P <= match(a:L." -- "," -- ")+3
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: git rebase --interactive
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2010 May 21
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if (exists("b:did_ftplugin"))
|
||||
@@ -12,10 +12,11 @@ runtime! ftplugin/git.vim
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=:# commentstring=#\ %s formatoptions-=t
|
||||
setlocal nomodeline
|
||||
if !exists("b:undo_ftplugin")
|
||||
let b:undo_ftplugin = ""
|
||||
endif
|
||||
let b:undo_ftplugin = b:undo_ftplugin."|setl com< cms< fo<"
|
||||
let b:undo_ftplugin = b:undo_ftplugin."|setl com< cms< fo< ml<"
|
||||
|
||||
function! s:choose(word)
|
||||
s/^\(\w\+\>\)\=\(\s*\)\ze\x\{4,40\}\>/\=(strlen(submatch(1)) == 1 ? a:word[0] : a:word) . substitute(submatch(2),'^$',' ','')/e
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Haml
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 Jun 01
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Markdown
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@@ -11,7 +11,7 @@ runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
|
||||
|
||||
setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s
|
||||
setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o
|
||||
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^[-*+]\\s\\+
|
||||
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]:
|
||||
|
||||
if exists('b:undo_ftplugin')
|
||||
let b:undo_ftplugin .= "|setl cms< com< fo< flp<"
|
||||
@@ -19,4 +19,32 @@ else
|
||||
let b:undo_ftplugin = "setl cms< com< fo< flp<"
|
||||
endif
|
||||
|
||||
function! MarkdownFold()
|
||||
let line = getline(v:lnum)
|
||||
|
||||
" Regular headers
|
||||
let depth = match(line, '\(^#\+\)\@<=\( .*$\)\@=')
|
||||
if depth > 0
|
||||
return ">" . depth
|
||||
endif
|
||||
|
||||
" Setext style headings
|
||||
let nextline = getline(v:lnum + 1)
|
||||
if (line =~ '^.\+$') && (nextline =~ '^=\+$')
|
||||
return ">1"
|
||||
endif
|
||||
|
||||
if (line =~ '^.\+$') && (nextline =~ '^-\+$')
|
||||
return ">2"
|
||||
endif
|
||||
|
||||
return "="
|
||||
endfunction
|
||||
|
||||
if has("folding") && exists("g:markdown_folding")
|
||||
setlocal foldexpr=MarkdownFold()
|
||||
setlocal foldmethod=expr
|
||||
let b:undo_ftplugin .= " foldexpr< foldmethod<"
|
||||
endif
|
||||
|
||||
" vim:set sw=2:
|
||||
|
||||
+23
-11
@@ -2,7 +2,7 @@
|
||||
" Language: python
|
||||
" Maintainer: James Sully <sullyj3@gmail.com>
|
||||
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: Wed, 29 June 2016
|
||||
" Last Change: Tue, 06 September 2016
|
||||
" https://github.com/sullyj3/vim-ftplugin-python
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
@@ -22,15 +22,25 @@ setlocal omnifunc=pythoncomplete#Complete
|
||||
|
||||
set wildignore+=*.pyc
|
||||
|
||||
nnoremap <silent> <buffer> ]] :call <SID>Python_jump('n', '\v%$\|^(class\|def)>', 'W')<cr>
|
||||
nnoremap <silent> <buffer> [[ :call <SID>Python_jump('n', '\v^(class\|def)>', 'Wb')<cr>
|
||||
nnoremap <silent> <buffer> ]m :call <SID>Python_jump('n', '\v%$\|^\s*(class\|def)>', 'W')<cr>
|
||||
nnoremap <silent> <buffer> [m :call <SID>Python_jump('n', '\v^\s*(class\|def)>', 'Wb')<cr>
|
||||
let b:next_toplevel='\v%$\|^(class\|def)>'
|
||||
let b:prev_toplevel='\v^(class\|def)>'
|
||||
let b:next='\v%$\|^\s*(class\|def)>'
|
||||
let b:prev='\v^\s*(class\|def)>'
|
||||
|
||||
xnoremap <silent> <buffer> ]] :call <SID>Python_jump('x', '\v%$\|^(class\|def)>', 'W')<cr>
|
||||
xnoremap <silent> <buffer> [[ :call <SID>Python_jump('x', '\v^(class\|def)>', 'Wb')<cr>
|
||||
xnoremap <silent> <buffer> ]m :call <SID>Python_jump('x', '\v%$\|^\s*(class\|def)>', 'W')<cr>
|
||||
xnoremap <silent> <buffer> [m :call <SID>Python_jump('x', '\v^\s*(class\|def)>', 'Wb')<cr>
|
||||
execute "nnoremap <silent> <buffer> ]] :call <SID>Python_jump('n', '". b:next_toplevel."', 'W')<cr>"
|
||||
execute "nnoremap <silent> <buffer> [[ :call <SID>Python_jump('n', '". b:prev_toplevel."', 'Wb')<cr>"
|
||||
execute "nnoremap <silent> <buffer> ]m :call <SID>Python_jump('n', '". b:next."', 'W')<cr>"
|
||||
execute "nnoremap <silent> <buffer> [m :call <SID>Python_jump('n', '". b:prev."', 'Wb')<cr>"
|
||||
|
||||
execute "onoremap <silent> <buffer> ]] :call <SID>Python_jump('o', '". b:next_toplevel."', 'W')<cr>"
|
||||
execute "onoremap <silent> <buffer> [[ :call <SID>Python_jump('o', '". b:prev_toplevel."', 'Wb')<cr>"
|
||||
execute "onoremap <silent> <buffer> ]m :call <SID>Python_jump('o', '". b:next."', 'W')<cr>"
|
||||
execute "onoremap <silent> <buffer> [m :call <SID>Python_jump('o', '". b:prev."', 'Wb')<cr>"
|
||||
|
||||
execute "xnoremap <silent> <buffer> ]] :call <SID>Python_jump('x', '". b:next_toplevel."', 'W')<cr>"
|
||||
execute "xnoremap <silent> <buffer> [[ :call <SID>Python_jump('x', '". b:prev_toplevel."', 'Wb')<cr>"
|
||||
execute "xnoremap <silent> <buffer> ]m :call <SID>Python_jump('x', '". b:next."', 'W')<cr>"
|
||||
execute "xnoremap <silent> <buffer> [m :call <SID>Python_jump('x', '". b:prev."', 'Wb')<cr>"
|
||||
|
||||
if !exists('*<SID>Python_jump')
|
||||
fun! <SID>Python_jump(mode, motion, flags) range
|
||||
@@ -56,8 +66,10 @@ if has("browsefilter") && !exists("b:browsefilter")
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
endif
|
||||
|
||||
" As suggested by PEP8.
|
||||
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
|
||||
if !exists("g:python_recommended_style") || g:python_recommended_style != 0
|
||||
" As suggested by PEP8.
|
||||
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
|
||||
endif
|
||||
|
||||
" First time: try finding "pydoc".
|
||||
if !exists('g:pydoc_executable')
|
||||
|
||||
+88
-63
@@ -28,12 +28,13 @@ if exists("loaded_matchit") && !exists("b:match_words")
|
||||
\ ':' .
|
||||
\ '\<\%(else\|elsif\|ensure\|when\|rescue\|break\|redo\|next\|retry\)\>' .
|
||||
\ ':' .
|
||||
\ '\<end\>' .
|
||||
\ '\%(^\|[^.\:@$]\)\@<=\<end\:\@!\>' .
|
||||
\ ',{:},\[:\],(:)'
|
||||
|
||||
let b:match_skip =
|
||||
\ "synIDattr(synID(line('.'),col('.'),0),'name') =~ '" .
|
||||
\ "\\<ruby\\%(String\\|StringDelimiter\\|ASCIICode\\|Escape\\|" .
|
||||
\ "Regexp\\|RegexpDelimiter\\|" .
|
||||
\ "Interpolation\\|NoInterpolation\\|Comment\\|Documentation\\|" .
|
||||
\ "ConditionalModifier\\|RepeatModifier\\|OptionalDo\\|" .
|
||||
\ "Function\\|BlockArgument\\|KeywordAsMethod\\|ClassVariable\\|" .
|
||||
@@ -43,7 +44,7 @@ endif
|
||||
setlocal formatoptions-=t formatoptions+=croql
|
||||
|
||||
setlocal include=^\\s*\\<\\(load\\>\\\|require\\>\\\|autoload\\s*:\\=[\"']\\=\\h\\w*[\"']\\=,\\)
|
||||
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
|
||||
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'\%(\.rb\)\=$','.rb','')
|
||||
setlocal suffixesadd=.rb
|
||||
|
||||
if exists("&ofu") && has("ruby")
|
||||
@@ -66,32 +67,32 @@ if !exists('g:ruby_version_paths')
|
||||
let g:ruby_version_paths = {}
|
||||
endif
|
||||
|
||||
function! s:query_path(root)
|
||||
function! s:query_path(root) abort
|
||||
let code = "print $:.join %q{,}"
|
||||
if &shell =~# 'sh' && $PATH !~# '\s'
|
||||
let prefix = 'env PATH='.$PATH.' '
|
||||
if &shell =~# 'sh'
|
||||
let prefix = 'env PATH='.shellescape($PATH).' '
|
||||
else
|
||||
let prefix = ''
|
||||
endif
|
||||
if &shellxquote == "'"
|
||||
let path_check = prefix.'ruby -e "' . code . '"'
|
||||
let path_check = prefix.'ruby --disable-gems -e "' . code . '"'
|
||||
else
|
||||
let path_check = prefix."ruby -e '" . code . "'"
|
||||
let path_check = prefix."ruby --disable-gems -e '" . code . "'"
|
||||
endif
|
||||
|
||||
let cd = haslocaldir() ? 'lcd' : 'cd'
|
||||
let cwd = getcwd()
|
||||
let cwd = fnameescape(getcwd())
|
||||
try
|
||||
exe cd fnameescape(a:root)
|
||||
let path = split(system(path_check),',')
|
||||
exe cd fnameescape(cwd)
|
||||
exe cd cwd
|
||||
return path
|
||||
finally
|
||||
exe cd fnameescape(cwd)
|
||||
exe cd cwd
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
function! s:build_path(path)
|
||||
function! s:build_path(path) abort
|
||||
let path = join(map(copy(a:path), 'v:val ==# "." ? "" : v:val'), ',')
|
||||
if &g:path !~# '\v^\.%(,/%(usr|emx)/include)=,,$'
|
||||
let path = substitute(&g:path,',,$',',','') . ',' . path
|
||||
@@ -101,7 +102,7 @@ endfunction
|
||||
|
||||
if !exists('b:ruby_version') && !exists('g:ruby_path') && isdirectory(expand('%:p:h'))
|
||||
let s:version_file = findfile('.ruby-version', '.;')
|
||||
if !empty(s:version_file)
|
||||
if !empty(s:version_file) && filereadable(s:version_file)
|
||||
let b:ruby_version = get(readfile(s:version_file, '', 1), '')
|
||||
if !has_key(g:ruby_version_paths, b:ruby_version)
|
||||
let g:ruby_version_paths[b:ruby_version] = s:query_path(fnamemodify(s:version_file, ':p:h'))
|
||||
@@ -135,7 +136,7 @@ if exists('s:ruby_paths') && stridx(&l:tags, join(map(copy(s:ruby_paths),'v:val.
|
||||
let &l:tags = &tags . ',' . join(map(copy(s:ruby_paths),'v:val."/tags"'),',')
|
||||
endif
|
||||
|
||||
if has("gui_win32") && !exists("b:browsefilter")
|
||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||
let b:browsefilter = "Ruby Source Files (*.rb)\t*.rb\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
endif
|
||||
@@ -145,7 +146,22 @@ let b:undo_ftplugin = "setl fo< inc< inex< sua< def< com< cms< path< tags< kp<"
|
||||
\."| if exists('&ofu') && has('ruby') | setl ofu< | endif"
|
||||
\."| if has('balloon_eval') && exists('+bexpr') | setl bexpr< | endif"
|
||||
|
||||
function! s:map(mode, flags, map) abort
|
||||
let from = matchstr(a:map, '\S\+')
|
||||
if empty(mapcheck(from, a:mode))
|
||||
exe a:mode.'map' '<buffer>'.(a:0 ? a:1 : '') a:map
|
||||
let b:undo_ftplugin .= '|sil! '.a:mode.'unmap <buffer> '.from
|
||||
endif
|
||||
endfunction
|
||||
|
||||
cmap <buffer><script><expr> <Plug><cword> substitute(RubyCursorIdentifier(),'^$',"\022\027",'')
|
||||
cmap <buffer><script><expr> <Plug><cfile> substitute(RubyCursorFile(),'^$',"\022\006",'')
|
||||
let b:undo_ftplugin .= "| sil! cunmap <buffer> <Plug><cword>| sil! cunmap <buffer> <Plug><cfile>"
|
||||
|
||||
if !exists("g:no_plugin_maps") && !exists("g:no_ruby_maps")
|
||||
nmap <buffer><script> <SID>: :<C-U>
|
||||
nmap <buffer><script> <SID>c: :<C-U><C-R>=v:count ? v:count : ''<CR>
|
||||
|
||||
nnoremap <silent> <buffer> [m :<C-U>call <SID>searchsyn('\<def\>','rubyDefine','b','n')<CR>
|
||||
nnoremap <silent> <buffer> ]m :<C-U>call <SID>searchsyn('\<def\>','rubyDefine','','n')<CR>
|
||||
nnoremap <silent> <buffer> [M :<C-U>call <SID>searchsyn('\<end\>','rubyDefine','b','n')<CR>
|
||||
@@ -168,7 +184,7 @@ if !exists("g:no_plugin_maps") && !exists("g:no_ruby_maps")
|
||||
\."| sil! exe 'unmap <buffer> [[' | sil! exe 'unmap <buffer> ]]' | sil! exe 'unmap <buffer> []' | sil! exe 'unmap <buffer> ]['"
|
||||
\."| sil! exe 'unmap <buffer> [m' | sil! exe 'unmap <buffer> ]m' | sil! exe 'unmap <buffer> [M' | sil! exe 'unmap <buffer> ]M'"
|
||||
|
||||
if maparg('im','n') == ''
|
||||
if maparg('im','x') == '' && maparg('im','o') == '' && maparg('am','x') == '' && maparg('am','o') == ''
|
||||
onoremap <silent> <buffer> im :<C-U>call <SID>wrap_i('[m',']M')<CR>
|
||||
onoremap <silent> <buffer> am :<C-U>call <SID>wrap_a('[m',']M')<CR>
|
||||
xnoremap <silent> <buffer> im :<C-U>call <SID>wrap_i('[m',']M')<CR>
|
||||
@@ -178,7 +194,7 @@ if !exists("g:no_plugin_maps") && !exists("g:no_ruby_maps")
|
||||
\."| sil! exe 'xunmap <buffer> im' | sil! exe 'xunmap <buffer> am'"
|
||||
endif
|
||||
|
||||
if maparg('iM','n') == ''
|
||||
if maparg('iM','x') == '' && maparg('iM','o') == '' && maparg('aM','x') == '' && maparg('aM','o') == ''
|
||||
onoremap <silent> <buffer> iM :<C-U>call <SID>wrap_i('[[','][')<CR>
|
||||
onoremap <silent> <buffer> aM :<C-U>call <SID>wrap_a('[[','][')<CR>
|
||||
xnoremap <silent> <buffer> iM :<C-U>call <SID>wrap_i('[[','][')<CR>
|
||||
@@ -188,33 +204,24 @@ if !exists("g:no_plugin_maps") && !exists("g:no_ruby_maps")
|
||||
\."| sil! exe 'xunmap <buffer> iM' | sil! exe 'xunmap <buffer> aM'"
|
||||
endif
|
||||
|
||||
if maparg("\<C-]>",'n') == ''
|
||||
nnoremap <silent> <buffer> <C-]> :<C-U>exe v:count1."tag <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> g<C-]> :<C-U>exe "tjump <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> g] :<C-U>exe "tselect <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> <C-W>] :<C-U>exe v:count1."stag <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> <C-W><C-]> :<C-U>exe v:count1."stag <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> <C-W>g<C-]> :<C-U>exe "stjump <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> <C-W>g] :<C-U>exe "stselect <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> <C-W>} :<C-U>exe "ptag <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
nnoremap <silent> <buffer> <C-W>g} :<C-U>exe "ptjump <C-R>=RubyCursorIdentifier()<CR>"<CR>
|
||||
let b:undo_ftplugin = b:undo_ftplugin
|
||||
\."| sil! exe 'nunmap <buffer> <C-]>'| sil! exe 'nunmap <buffer> g<C-]>'| sil! exe 'nunmap <buffer> g]'"
|
||||
\."| sil! exe 'nunmap <buffer> <C-W>]'| sil! exe 'nunmap <buffer> <C-W><C-]>'"
|
||||
\."| sil! exe 'nunmap <buffer> <C-W>g<C-]>'| sil! exe 'nunmap <buffer> <C-W>g]'"
|
||||
\."| sil! exe 'nunmap <buffer> <C-W>}'| sil! exe 'nunmap <buffer> <C-W>g}'"
|
||||
endif
|
||||
call s:map('c', '', '<C-R><C-W> <Plug><cword>')
|
||||
call s:map('c', '', '<C-R><C-F> <Plug><cfile>')
|
||||
|
||||
if maparg("gf",'n') == ''
|
||||
" By using findfile() rather than gf's normal behavior, we prevent
|
||||
" erroneously editing a directory.
|
||||
nnoremap <silent> <buffer> gf :<C-U>exe <SID>gf(v:count1,"gf",'edit')<CR>
|
||||
nnoremap <silent> <buffer> <C-W>f :<C-U>exe <SID>gf(v:count1,"\<Lt>C-W>f",'split')<CR>
|
||||
nnoremap <silent> <buffer> <C-W><C-F> :<C-U>exe <SID>gf(v:count1,"\<Lt>C-W>\<Lt>C-F>",'split')<CR>
|
||||
nnoremap <silent> <buffer> <C-W>gf :<C-U>exe <SID>gf(v:count1,"\<Lt>C-W>gf",'tabedit')<CR>
|
||||
let b:undo_ftplugin = b:undo_ftplugin
|
||||
\."| sil! exe 'nunmap <buffer> gf' | sil! exe 'nunmap <buffer> <C-W>f' | sil! exe 'nunmap <buffer> <C-W><C-F>' | sil! exe 'nunmap <buffer> <C-W>gf'"
|
||||
endif
|
||||
cmap <buffer><script><expr> <SID>tagzv &foldopen =~# 'tag' ? '<Bar>norm! zv' : ''
|
||||
call s:map('n', '<silent>', '<C-]> <SID>:exe v:count1."tag <Plug><cword>"<SID>tagzv<CR>')
|
||||
call s:map('n', '<silent>', 'g<C-]> <SID>:exe "tjump <Plug><cword>"<SID>tagzv<CR>')
|
||||
call s:map('n', '<silent>', 'g] <SID>:exe "tselect <Plug><cword>"<SID>tagzv<CR>')
|
||||
call s:map('n', '<silent>', '<C-W>] <SID>:exe v:count1."stag <Plug><cword>"<SID>tagzv<CR>')
|
||||
call s:map('n', '<silent>', '<C-W><C-]> <SID>:exe v:count1."stag <Plug><cword>"<SID>tagzv<CR>')
|
||||
call s:map('n', '<silent>', '<C-W>g<C-]> <SID>:exe "stjump <Plug><cword>"<SID>tagzv<CR>')
|
||||
call s:map('n', '<silent>', '<C-W>g] <SID>:exe "stselect <Plug><cword>"<SID>tagzv<CR>')
|
||||
call s:map('n', '<silent>', '<C-W>} <SID>:exe v:count1."ptag <Plug><cword>"<CR>')
|
||||
call s:map('n', '<silent>', '<C-W>g} <SID>:exe "ptjump <Plug><cword>"<CR>')
|
||||
|
||||
call s:map('n', '<silent>', 'gf <SID>c:find <Plug><cfile><CR>')
|
||||
call s:map('n', '<silent>', '<C-W>f <SID>c:sfind <Plug><cfile><CR>')
|
||||
call s:map('n', '<silent>', '<C-W><C-F> <SID>c:sfind <Plug><cfile><CR>')
|
||||
call s:map('n', '<silent>', '<C-W>gf <SID>c:tabfind <Plug><cfile><CR>')
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
@@ -225,7 +232,7 @@ if exists("g:did_ruby_ftplugin_functions")
|
||||
endif
|
||||
let g:did_ruby_ftplugin_functions = 1
|
||||
|
||||
function! RubyBalloonexpr()
|
||||
function! RubyBalloonexpr() abort
|
||||
if !exists('s:ri_found')
|
||||
let s:ri_found = executable('ri')
|
||||
endif
|
||||
@@ -274,13 +281,13 @@ function! RubyBalloonexpr()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:searchsyn(pattern,syn,flags,mode)
|
||||
function! s:searchsyn(pattern, syn, flags, mode) abort
|
||||
let cnt = v:count1
|
||||
norm! m'
|
||||
if a:mode ==# 'v'
|
||||
norm! gv
|
||||
endif
|
||||
let i = 0
|
||||
let cnt = v:count ? v:count : 1
|
||||
while i < cnt
|
||||
let i = i + 1
|
||||
let line = line('.')
|
||||
@@ -296,11 +303,11 @@ function! s:searchsyn(pattern,syn,flags,mode)
|
||||
endwhile
|
||||
endfunction
|
||||
|
||||
function! s:synname()
|
||||
function! s:synname() abort
|
||||
return synIDattr(synID(line('.'),col('.'),0),'name')
|
||||
endfunction
|
||||
|
||||
function! s:wrap_i(back,forward)
|
||||
function! s:wrap_i(back,forward) abort
|
||||
execute 'norm k'.a:forward
|
||||
let line = line('.')
|
||||
execute 'norm '.a:back
|
||||
@@ -310,7 +317,7 @@ function! s:wrap_i(back,forward)
|
||||
execute 'norm jV'.a:forward.'k'
|
||||
endfunction
|
||||
|
||||
function! s:wrap_a(back,forward)
|
||||
function! s:wrap_a(back,forward) abort
|
||||
execute 'norm '.a:forward
|
||||
if line('.') < line('$') && getline(line('.')+1) ==# ''
|
||||
let after = 1
|
||||
@@ -328,37 +335,55 @@ function! s:wrap_a(back,forward)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! RubyCursorIdentifier()
|
||||
function! RubyCursorIdentifier() abort
|
||||
let asciicode = '\%(\w\|[]})\"'."'".']\)\@<!\%(?\%(\\M-\\C-\|\\C-\\M-\|\\M-\\c\|\\c\\M-\|\\c\|\\C-\|\\M-\)\=\%(\\\o\{1,3}\|\\x\x\{1,2}\|\\\=\S\)\)'
|
||||
let number = '\%(\%(\w\|[]})\"'."'".']\s*\)\@<!-\)\=\%(\<[[:digit:]_]\+\%(\.[[:digit:]_]\+\)\=\%([Ee][[:digit:]_]\+\)\=\>\|\<0[xXbBoOdD][[:xdigit:]_]\+\>\)\|'.asciicode
|
||||
let operator = '\%(\[\]\|<<\|<=>\|[!<>]=\=\|===\=\|[!=]\~\|>>\|\*\*\|\.\.\.\=\|=>\|[~^&|*/%+-]\)'
|
||||
let method = '\%(\<[_a-zA-Z]\w*\>\%([?!]\|\s*=>\@!\)\=\)'
|
||||
let method = '\%(\.[_a-zA-Z]\w*\s*=>\@!\|\<[_a-zA-Z]\w*\>[?!]\=\)'
|
||||
let global = '$\%([!$&"'."'".'*+,./:;<=>?@\`~]\|-\=\w\+\>\)'
|
||||
let symbolizable = '\%(\%(@@\=\)\w\+\>\|'.global.'\|'.method.'\|'.operator.'\)'
|
||||
let pattern = '\C\s*\%('.number.'\|\%(:\@<!:\)\='.symbolizable.'\)'
|
||||
let [lnum, col] = searchpos(pattern,'bcn',line('.'))
|
||||
let raw = matchstr(getline('.')[col-1 : ],pattern)
|
||||
let stripped = substitute(substitute(raw,'\s\+=$','=',''),'^\s*:\=','','')
|
||||
let stripped = substitute(substitute(raw,'\s\+=$','=',''),'^\s*[:.]\=','','')
|
||||
return stripped == '' ? expand("<cword>") : stripped
|
||||
endfunction
|
||||
|
||||
function! s:gf(count,map,edit) abort
|
||||
if getline('.') =~# '^\s*require_relative\s*\(["'']\).*\1\s*$'
|
||||
let target = matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1')
|
||||
return a:edit.' %:h/'.target.'.rb'
|
||||
elseif getline('.') =~# '^\s*\%(require[( ]\|load[( ]\|autoload[( ]:\w\+,\)\s*\s*\%(::\)\=File\.expand_path(\(["'']\)\.\./.*\1,\s*__FILE__)\s*$'
|
||||
let target = matchstr(getline('.'),'\(["'']\)\.\./\zs.\{-\}\ze\1')
|
||||
return a:edit.' %:h/'.target.'.rb'
|
||||
function! RubyCursorFile() abort
|
||||
let isfname = &isfname
|
||||
try
|
||||
set isfname+=:
|
||||
let cfile = expand('<cfile>')
|
||||
finally
|
||||
let isfname = &isfname
|
||||
endtry
|
||||
let pre = matchstr(strpart(getline('.'), 0, col('.')-1), '.*\f\@<!')
|
||||
let post = matchstr(strpart(getline('.'), col('.')), '\f\@!.*')
|
||||
let ext = getline('.') =~# '^\s*\%(require\%(_relative\)\=\|autoload\)\>' && cfile !~# '\.rb$' ? '.rb' : ''
|
||||
if s:synname() ==# 'rubyConstant'
|
||||
let cfile = substitute(cfile,'\.\w\+[?!=]\=$','','')
|
||||
let cfile = substitute(cfile,'::','/','g')
|
||||
let cfile = substitute(cfile,'\(\u\+\)\(\u\l\)','\1_\2', 'g')
|
||||
let cfile = substitute(cfile,'\(\l\|\d\)\(\u\)','\1_\2', 'g')
|
||||
return tolower(cfile) . '.rb'
|
||||
elseif getline('.') =~# '^\s*require_relative\s*\(["'']\).*\1\s*$'
|
||||
let cfile = expand('%:p:h') . '/' . matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1') . ext
|
||||
elseif getline('.') =~# '^\s*\%(require[( ]\|load[( ]\|autoload[( ]:\w\+,\)\s*\%(::\)\=File\.expand_path(\(["'']\)\.\./.*\1,\s*__FILE__)\s*$'
|
||||
let target = matchstr(getline('.'),'\(["'']\)\.\.\zs/.\{-\}\ze\1')
|
||||
let cfile = expand('%:p:h') . target . ext
|
||||
elseif getline('.') =~# '^\s*\%(require \|load \|autoload :\w\+,\)\s*\(["'']\).*\1\s*$'
|
||||
let target = matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1')
|
||||
let cfile = matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1') . ext
|
||||
elseif pre.post =~# '\<File.expand_path[( ].*[''"]\{2\}, *__FILE__\>' && cfile =~# '^\.\.'
|
||||
let cfile = expand('%:p:h') . strpart(cfile, 2)
|
||||
else
|
||||
let target = expand('<cfile>')
|
||||
return substitute(cfile, '\C\v^(.*):(\d+)%(:in)=$', '+\2 \1', '')
|
||||
endif
|
||||
let found = findfile(target, &path, a:count)
|
||||
if found ==# ''
|
||||
return 'norm! '.a:count.a:map
|
||||
let cwdpat = '^\M' . substitute(getcwd(), '[\/]', '\\[\\/]', 'g').'\ze\[\/]'
|
||||
let cfile = substitute(cfile, cwdpat, '.', '')
|
||||
if fnameescape(cfile) !=# cfile
|
||||
return '+ '.fnameescape(cfile)
|
||||
else
|
||||
return a:edit.' '.fnameescape(found)
|
||||
return cfile
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Sass
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2010 Jul 26
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@@ -9,8 +9,9 @@ if exists("b:did_ftplugin")
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<"
|
||||
let b:undo_ftplugin = "setl com< cms< def< inc< inex< ofu< sua<"
|
||||
|
||||
setlocal comments=://
|
||||
setlocal commentstring=//\ %s
|
||||
setlocal define=^\\s*\\%(@mixin\\\|=\\)
|
||||
setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
|
||||
|
||||
@@ -32,6 +32,4 @@ setlocal includeexpr='substitute(v:fname,"\\.","/","g")'
|
||||
setlocal path+=src/main/scala,src/test/scala
|
||||
setlocal suffixesadd=.scala
|
||||
|
||||
compiler sbt
|
||||
|
||||
" vim:set sw=2 sts=2 ts=8 et:
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
" Vim filetype plugin
|
||||
" Language: SCSS
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2010 Jul 26
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! ftplugin/sass.vim
|
||||
setlocal comments=s1:/*,mb:*,ex:*/,://
|
||||
|
||||
" vim:set sw=2:
|
||||
|
||||
+11
-10
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Cucumber
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -27,6 +27,7 @@ function! GetCucumberIndent()
|
||||
let line = getline(prevnonblank(v:lnum-1))
|
||||
let cline = getline(v:lnum)
|
||||
let nline = getline(nextnonblank(v:lnum+1))
|
||||
let sw = exists('*shiftwidth') ? shiftwidth() : &sw
|
||||
let syn = s:syn(prevnonblank(v:lnum-1))
|
||||
let csyn = s:syn(v:lnum)
|
||||
let nsyn = s:syn(nextnonblank(v:lnum+1))
|
||||
@@ -35,38 +36,38 @@ function! GetCucumberIndent()
|
||||
return 0
|
||||
elseif csyn ==# 'cucumberExamples' || cline =~# '^\s*\%(Examples\|Scenarios\):'
|
||||
" examples heading
|
||||
return 2 * &sw
|
||||
return 2 * sw
|
||||
elseif csyn =~# '^cucumber\%(Background\|Scenario\|ScenarioOutline\)$' || cline =~# '^\s*\%(Background\|Scenario\|Scenario Outline\):'
|
||||
" background, scenario or outline heading
|
||||
return &sw
|
||||
return sw
|
||||
elseif syn ==# 'cucumberFeature' || line =~# '^\s*Feature:'
|
||||
" line after feature heading
|
||||
return &sw
|
||||
return sw
|
||||
elseif syn ==# 'cucumberExamples' || line =~# '^\s*\%(Examples\|Scenarios\):'
|
||||
" line after examples heading
|
||||
return 3 * &sw
|
||||
return 3 * sw
|
||||
elseif syn =~# '^cucumber\%(Background\|Scenario\|ScenarioOutline\)$' || line =~# '^\s*\%(Background\|Scenario\|Scenario Outline\):'
|
||||
" line after background, scenario or outline heading
|
||||
return 2 * &sw
|
||||
return 2 * sw
|
||||
elseif cline =~# '^\s*[@#]' && (nsyn == 'cucumberFeature' || nline =~# '^\s*Feature:' || indent(prevnonblank(v:lnum-1)) <= 0)
|
||||
" tag or comment before a feature heading
|
||||
return 0
|
||||
elseif cline =~# '^\s*@'
|
||||
" other tags
|
||||
return &sw
|
||||
return sw
|
||||
elseif cline =~# '^\s*[#|]' && line =~# '^\s*|'
|
||||
" mid-table
|
||||
" preserve indent
|
||||
return indent(prevnonblank(v:lnum-1))
|
||||
elseif cline =~# '^\s*|' && line =~# '^\s*[^|]'
|
||||
" first line of a table, relative indent
|
||||
return indent(prevnonblank(v:lnum-1)) + &sw
|
||||
return indent(prevnonblank(v:lnum-1)) + sw
|
||||
elseif cline =~# '^\s*[^|]' && line =~# '^\s*|'
|
||||
" line after a table, relative unindent
|
||||
return indent(prevnonblank(v:lnum-1)) - &sw
|
||||
return indent(prevnonblank(v:lnum-1)) - sw
|
||||
elseif cline =~# '^\s*#' && getline(v:lnum-1) =~ '^\s*$' && (nsyn =~# '^cucumber\%(Background\|Scenario\|ScenarioOutline\)$' || nline =~# '^\s*\%(Background\|Scenario\|Scenario Outline\):')
|
||||
" comments on scenarios
|
||||
return &sw
|
||||
return sw
|
||||
endif
|
||||
return indent(prevnonblank(v:lnum-1))
|
||||
endfunction
|
||||
|
||||
@@ -19,6 +19,9 @@ else
|
||||
endif
|
||||
unlet! b:did_indent
|
||||
|
||||
" Force HTML indent to not keep state.
|
||||
let b:html_indent_usestate = 0
|
||||
|
||||
if &l:indentexpr == ''
|
||||
if &l:cindent
|
||||
let &l:indentexpr = 'cindent(v:lnum)'
|
||||
@@ -38,7 +41,18 @@ if exists("*GetErubyIndent")
|
||||
finish
|
||||
endif
|
||||
|
||||
" this file uses line continuations
|
||||
let s:cpo_sav = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! GetErubyIndent(...)
|
||||
" The value of a single shift-width
|
||||
if exists('*shiftwidth')
|
||||
let sw = shiftwidth()
|
||||
else
|
||||
let sw = &sw
|
||||
endif
|
||||
|
||||
if a:0 && a:1 == '.'
|
||||
let v:lnum = line('.')
|
||||
elseif a:0 && a:1 =~ '^\d'
|
||||
@@ -52,31 +66,44 @@ function! GetErubyIndent(...)
|
||||
let ind = GetRubyIndent(v:lnum)
|
||||
else
|
||||
exe "let ind = ".b:eruby_subtype_indentexpr
|
||||
|
||||
" Workaround for Andy Wokula's HTML indent. This should be removed after
|
||||
" some time, since the newest version is fixed in a different way.
|
||||
if b:eruby_subtype_indentexpr =~# '^HtmlIndent('
|
||||
\ && exists('b:indent')
|
||||
\ && type(b:indent) == type({})
|
||||
\ && has_key(b:indent, 'lnum')
|
||||
" Force HTML indent to not keep state
|
||||
let b:indent.lnum = -1
|
||||
endif
|
||||
endif
|
||||
let lnum = prevnonblank(v:lnum-1)
|
||||
let line = getline(lnum)
|
||||
let cline = getline(v:lnum)
|
||||
if cline =~# '^\s*<%[-=]\=\s*\%(}\|end\|else\|\%(ensure\|rescue\|elsif\|when\).\{-\}\)\s*\%([-=]\=%>\|$\)'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - sw
|
||||
endif
|
||||
if line =~# '\S\s*<%[-=]\=\s*\%(}\|end\).\{-\}\s*\%([-=]\=%>\|$\)'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - sw
|
||||
endif
|
||||
if line =~# '\%({\|\<do\)\%(\s*|[^|]*|\)\=\s*[-=]\=%>'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + sw
|
||||
elseif line =~# '<%[-=]\=\s*\%(module\|class\|def\|if\|for\|while\|until\|else\|elsif\|case\|when\|unless\|begin\|ensure\|rescue\)\>.*%>'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + sw
|
||||
endif
|
||||
if line =~# '^\s*<%[=#-]\=\s*$' && cline !~# '^\s*end\>'
|
||||
let ind = ind + &sw
|
||||
let ind = ind + sw
|
||||
endif
|
||||
if line !~# '^\s*<%' && line =~# '%>\s*$'
|
||||
let ind = ind - &sw
|
||||
if line !~# '^\s*<%' && line =~# '%>\s*$' && line !~# '^\s*end\>'
|
||||
let ind = ind - sw
|
||||
endif
|
||||
if cline =~# '^\s*[-=]\=%>\s*$'
|
||||
let ind = ind - &sw
|
||||
let ind = ind - sw
|
||||
endif
|
||||
return ind
|
||||
endfunction
|
||||
|
||||
let &cpo = s:cpo_sav
|
||||
unlet! s:cpo_sav
|
||||
|
||||
" vim:set sw=2 sts=2 ts=8 noet:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
|
||||
" Version: 0.45
|
||||
" Last Change: 2016 Aug. 18
|
||||
" Last Change: 2016 Aug. 29
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: For instructions, do :help fortran-indent from Vim
|
||||
" Credits:
|
||||
@@ -152,9 +152,6 @@ function FortranGetIndent(lnum)
|
||||
if prevstat =~ '&\s*$' && prev2stat !~ '&\s*$'
|
||||
let ind = ind + shiftwidth()
|
||||
endif
|
||||
if prevstat =~ '&\s*$' && prevstat =~ '\<else\s*if\>'
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
"Line after last continuation line
|
||||
if prevstat !~ '&\s*$' && prev2stat =~ '&\s*$' && prevstat !~? '\<then\>'
|
||||
let ind = ind - shiftwidth()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: git config file
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -20,17 +20,18 @@ if exists("*GetGitconfigIndent")
|
||||
endif
|
||||
|
||||
function! GetGitconfigIndent()
|
||||
let sw = exists('*shiftwidth') ? shiftwidth() : &sw
|
||||
let line = getline(prevnonblank(v:lnum-1))
|
||||
let cline = getline(v:lnum)
|
||||
if line =~ '\\\@<!\%(\\\\\)*\\$'
|
||||
" odd number of slashes, in a line continuation
|
||||
return 2 * &sw
|
||||
return 2 * sw
|
||||
elseif cline =~ '^\s*\['
|
||||
return 0
|
||||
elseif cline =~ '^\s*\a'
|
||||
return &sw
|
||||
return sw
|
||||
elseif cline == '' && line =~ '^\['
|
||||
return &sw
|
||||
return sw
|
||||
else
|
||||
return -1
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Haml
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -37,10 +37,11 @@ function! GetHamlIndent()
|
||||
let line = substitute(line,'^\s\+','','')
|
||||
let indent = indent(lnum)
|
||||
let cindent = indent(v:lnum)
|
||||
let sw = exists('*shiftwidth') ? shiftwidth() : &sw
|
||||
if cline =~# '\v^-\s*%(elsif|else|when)>'
|
||||
let indent = cindent < indent ? cindent : indent - &sw
|
||||
let indent = cindent < indent ? cindent : indent - sw
|
||||
endif
|
||||
let increase = indent + &sw
|
||||
let increase = indent + sw
|
||||
if indent == indent(lnum)
|
||||
let indent = cindent <= indent ? -1 : increase
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Liquid
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
@@ -54,9 +54,10 @@ function! GetLiquidIndent(...)
|
||||
let line = substitute(line,'\C^\%(\s*{%\s*end\w*\s*%}\)\+','','')
|
||||
let line .= matchstr(cline,'\C^\%(\s*{%\s*end\w*\s*%}\)\+')
|
||||
let cline = substitute(cline,'\C^\%(\s*{%\s*end\w*\s*%}\)\+','','')
|
||||
let ind += &sw * s:count(line,'{%\s*\%(if\|elsif\|else\|unless\|ifchanged\|case\|when\|for\|empty\|tablerow\|capture\)\>')
|
||||
let ind -= &sw * s:count(line,'{%\s*end\%(if\|unless\|ifchanged\|case\|for\|tablerow\|capture\)\>')
|
||||
let ind -= &sw * s:count(cline,'{%\s*\%(elsif\|else\|when\|empty\)\>')
|
||||
let ind -= &sw * s:count(cline,'{%\s*end\w*$')
|
||||
let sw = exists('*shiftwidth') ? shiftwidth() : &sw
|
||||
let ind += sw * s:count(line,'{%\s*\%(if\|elsif\|else\|unless\|ifchanged\|case\|when\|for\|empty\|tablerow\|capture\)\>')
|
||||
let ind -= sw * s:count(line,'{%\s*end\%(if\|unless\|ifchanged\|case\|for\|tablerow\|capture\)\>')
|
||||
let ind -= sw * s:count(cline,'{%\s*\%(elsif\|else\|when\|empty\)\>')
|
||||
let ind -= sw * s:count(cline,'{%\s*end\w*$')
|
||||
return ind
|
||||
endfunction
|
||||
|
||||
+195
-34
@@ -13,12 +13,23 @@ if exists("b:did_indent")
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
|
||||
if !exists('g:ruby_indent_access_modifier_style')
|
||||
" Possible values: "normal", "indent", "outdent"
|
||||
let g:ruby_indent_access_modifier_style = 'normal'
|
||||
endif
|
||||
|
||||
if !exists('g:ruby_indent_block_style')
|
||||
" Possible values: "expression", "do"
|
||||
let g:ruby_indent_block_style = 'expression'
|
||||
endif
|
||||
|
||||
setlocal nosmartindent
|
||||
|
||||
" Now, set up our indentation expression and keys that trigger it.
|
||||
setlocal indentexpr=GetRubyIndent(v:lnum)
|
||||
setlocal indentkeys=0{,0},0),0],!^F,o,O,e
|
||||
setlocal indentkeys=0{,0},0),0],!^F,o,O,e,:,.
|
||||
setlocal indentkeys+==end,=else,=elsif,=when,=ensure,=rescue,==begin,==end
|
||||
setlocal indentkeys+==private,=protected,=public
|
||||
|
||||
" Only define the function once.
|
||||
if exists("*GetRubyIndent")
|
||||
@@ -34,7 +45,7 @@ set cpo&vim
|
||||
" Regex of syntax group names that are or delimit strings/symbols or are comments.
|
||||
let s:syng_strcom = '\<ruby\%(Regexp\|RegexpDelimiter\|RegexpEscape' .
|
||||
\ '\|Symbol\|String\|StringDelimiter\|StringEscape\|ASCIICode' .
|
||||
\ '\|Interpolation\|NoInterpolation\|Comment\|Documentation\)\>'
|
||||
\ '\|Interpolation\|InterpolationDelimiter\|NoInterpolation\|Comment\|Documentation\)\>'
|
||||
|
||||
" Regex of syntax group names that are strings.
|
||||
let s:syng_string =
|
||||
@@ -49,9 +60,10 @@ let s:skip_expr =
|
||||
\ "synIDattr(synID(line('.'),col('.'),1),'name') =~ '".s:syng_strcom."'"
|
||||
|
||||
" Regex used for words that, at the start of a line, add a level of indent.
|
||||
let s:ruby_indent_keywords = '^\s*\zs\<\%(module\|class\|def\|if\|for' .
|
||||
\ '\|while\|until\|else\|elsif\|case\|when\|unless\|begin\|ensure' .
|
||||
\ '\|rescue\):\@!\>' .
|
||||
let s:ruby_indent_keywords =
|
||||
\ '^\s*\zs\<\%(module\|class\|if\|for' .
|
||||
\ '\|while\|until\|else\|elsif\|case\|when\|unless\|begin\|ensure\|rescue' .
|
||||
\ '\|\%(public\|protected\|private\)\=\s*def\):\@!\>' .
|
||||
\ '\|\%([=,*/%+-]\|<<\|>>\|:\s\)\s*\zs' .
|
||||
\ '\<\%(if\|for\|while\|until\|case\|unless\|begin\):\@!\>'
|
||||
|
||||
@@ -64,7 +76,8 @@ let s:ruby_deindent_keywords =
|
||||
" TODO: the do here should be restricted somewhat (only at end of line)?
|
||||
let s:end_start_regex =
|
||||
\ '\C\%(^\s*\|[=,*/%+\-|;{]\|<<\|>>\|:\s\)\s*\zs' .
|
||||
\ '\<\%(module\|class\|def\|if\|for\|while\|until\|case\|unless\|begin\):\@!\>' .
|
||||
\ '\<\%(module\|class\|if\|for\|while\|until\|case\|unless\|begin' .
|
||||
\ '\|\%(public\|protected\|private\)\=\s*def\):\@!\>' .
|
||||
\ '\|\%(^\|[^.:@$]\)\@<=\<do:\@!\>'
|
||||
|
||||
" Regex that defines the middle-match for the 'end' keyword.
|
||||
@@ -82,16 +95,35 @@ let s:end_skip_expr = s:skip_expr .
|
||||
let s:non_bracket_continuation_regex = '\%([\\.,:*/%+]\|\<and\|\<or\|\%(<%\)\@<![=-]\|\W[|&?]\|||\|&&\)\s*\%(#.*\)\=$'
|
||||
|
||||
" Regex that defines continuation lines.
|
||||
" TODO: this needs to deal with if ...: and so on
|
||||
let s:continuation_regex =
|
||||
\ '\%(%\@<![({[\\.,:*/%+]\|\<and\|\<or\|\%(<%\)\@<![=-]\|\W[|&?]\|||\|&&\)\s*\%(#.*\)\=$'
|
||||
|
||||
" Regex that defines continuable keywords
|
||||
let s:continuable_regex =
|
||||
\ '\C\%(^\s*\|[=,*/%+\-|;{]\|<<\|>>\|:\s\)\s*\zs' .
|
||||
\ '\<\%(if\|for\|while\|until\|unless\):\@!\>'
|
||||
|
||||
" Regex that defines bracket continuations
|
||||
let s:bracket_continuation_regex = '%\@<!\%([({[]\)\s*\%(#.*\)\=$'
|
||||
|
||||
" Regex that defines dot continuations
|
||||
let s:dot_continuation_regex = '%\@<!\.\s*\%(#.*\)\=$'
|
||||
|
||||
" Regex that defines backslash continuations
|
||||
let s:backslash_continuation_regex = '%\@<!\\\s*$'
|
||||
|
||||
" Regex that defines end of bracket continuation followed by another continuation
|
||||
let s:bracket_switch_continuation_regex = '^\([^(]\+\zs).\+\)\+'.s:continuation_regex
|
||||
|
||||
" Regex that defines the first part of a splat pattern
|
||||
let s:splat_regex = '[[,(]\s*\*\s*\%(#.*\)\=$'
|
||||
|
||||
" Regex that describes all indent access modifiers
|
||||
let s:access_modifier_regex = '\C^\s*\%(public\|protected\|private\)\s*\%(#.*\)\=$'
|
||||
|
||||
" Regex that describes the indent access modifiers (excludes public)
|
||||
let s:indent_access_modifier_regex = '\C^\s*\%(protected\|private\)\s*\%(#.*\)\=$'
|
||||
|
||||
" Regex that defines blocks.
|
||||
"
|
||||
" Note that there's a slight problem with this regex and s:continuation_regex.
|
||||
@@ -102,10 +134,13 @@ let s:splat_regex = '[[,(]\s*\*\s*\%(#.*\)\=$'
|
||||
" The reason is that the pipe matches a hanging "|" operator.
|
||||
"
|
||||
let s:block_regex =
|
||||
\ '\%(\<do:\@!\>\|%\@<!{\)\s*\%(|\s*(*\s*\%([*@&]\=\h\w*,\=\s*\)\%(,\s*(*\s*[*@&]\=\h\w*\s*)*\s*\)*|\)\=\s*\%(#.*\)\=$'
|
||||
\ '\%(\<do:\@!\>\|%\@<!{\)\s*\%(|[^|]*|\)\=\s*\%(#.*\)\=$'
|
||||
|
||||
let s:block_continuation_regex = '^\s*[^])}\t ].*'.s:block_regex
|
||||
|
||||
" Regex that describes a leading operator (only a method call's dot for now)
|
||||
let s:leading_operator_regex = '^\s*[.]'
|
||||
|
||||
" 2. Auxiliary Functions {{{1
|
||||
" ======================
|
||||
|
||||
@@ -165,7 +200,21 @@ function s:GetMSL(lnum)
|
||||
" Otherwise, terminate search as we have found our MSL already.
|
||||
let line = getline(lnum)
|
||||
|
||||
if s:Match(lnum, s:splat_regex)
|
||||
if !s:Match(msl, s:backslash_continuation_regex) &&
|
||||
\ s:Match(lnum, s:backslash_continuation_regex)
|
||||
" If the current line doesn't end in a backslash, but the previous one
|
||||
" does, look for that line's msl
|
||||
"
|
||||
" Example:
|
||||
" foo = "bar" \
|
||||
" "baz"
|
||||
"
|
||||
let msl = lnum
|
||||
elseif s:Match(msl, s:leading_operator_regex)
|
||||
" If the current line starts with a leading operator, keep its indent
|
||||
" and keep looking for an MSL.
|
||||
let msl = lnum
|
||||
elseif s:Match(lnum, s:splat_regex)
|
||||
" If the above line looks like the "*" of a splat, use the current one's
|
||||
" indentation.
|
||||
"
|
||||
@@ -175,7 +224,7 @@ function s:GetMSL(lnum)
|
||||
" something
|
||||
"
|
||||
return msl
|
||||
elseif s:Match(line, s:non_bracket_continuation_regex) &&
|
||||
elseif s:Match(lnum, s:non_bracket_continuation_regex) &&
|
||||
\ s:Match(msl, s:non_bracket_continuation_regex)
|
||||
" If the current line is a non-bracket continuation and so is the
|
||||
" previous one, keep its indent and continue looking for an MSL.
|
||||
@@ -186,6 +235,18 @@ function s:GetMSL(lnum)
|
||||
" three
|
||||
"
|
||||
let msl = lnum
|
||||
elseif s:Match(lnum, s:dot_continuation_regex) &&
|
||||
\ (s:Match(msl, s:bracket_continuation_regex) || s:Match(msl, s:block_continuation_regex))
|
||||
" If the current line is a bracket continuation or a block-starter, but
|
||||
" the previous is a dot, keep going to see if the previous line is the
|
||||
" start of another continuation.
|
||||
"
|
||||
" Example:
|
||||
" parent.
|
||||
" method_call {
|
||||
" three
|
||||
"
|
||||
let msl = lnum
|
||||
elseif s:Match(lnum, s:non_bracket_continuation_regex) &&
|
||||
\ (s:Match(msl, s:bracket_continuation_regex) || s:Match(msl, s:block_continuation_regex))
|
||||
" If the current line is a bracket continuation or a block-starter, but
|
||||
@@ -299,18 +360,39 @@ function s:ExtraBrackets(lnum)
|
||||
endfunction
|
||||
|
||||
function s:Match(lnum, regex)
|
||||
let col = match(getline(a:lnum), '\C'.a:regex) + 1
|
||||
return col > 0 && !s:IsInStringOrComment(a:lnum, col) ? col : 0
|
||||
let line = getline(a:lnum)
|
||||
let offset = match(line, '\C'.a:regex)
|
||||
let col = offset + 1
|
||||
|
||||
while offset > -1 && s:IsInStringOrComment(a:lnum, col)
|
||||
let offset = match(line, '\C'.a:regex, offset + 1)
|
||||
let col = offset + 1
|
||||
endwhile
|
||||
|
||||
if offset > -1
|
||||
return col
|
||||
else
|
||||
return 0
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function s:MatchLast(lnum, regex)
|
||||
let line = getline(a:lnum)
|
||||
let col = match(line, '.*\zs' . a:regex)
|
||||
while col != -1 && s:IsInStringOrComment(a:lnum, col)
|
||||
let line = strpart(line, 0, col)
|
||||
let col = match(line, '.*' . a:regex)
|
||||
endwhile
|
||||
return col + 1
|
||||
" Locates the containing class/module's definition line, ignoring nested classes
|
||||
" along the way.
|
||||
"
|
||||
function! s:FindContainingClass()
|
||||
let saved_position = getpos('.')
|
||||
|
||||
while searchpair(s:end_start_regex, s:end_middle_regex, s:end_end_regex, 'bW',
|
||||
\ s:end_skip_expr) > 0
|
||||
if expand('<cword>') =~# '\<class\|module\>'
|
||||
let found_lnum = line('.')
|
||||
call setpos('.', saved_position)
|
||||
return found_lnum
|
||||
endif
|
||||
endif
|
||||
|
||||
call setpos('.', saved_position)
|
||||
return 0
|
||||
endfunction
|
||||
|
||||
" 3. GetRubyIndent Function {{{1
|
||||
@@ -320,6 +402,13 @@ function GetRubyIndent(...)
|
||||
" 3.1. Setup {{{2
|
||||
" ----------
|
||||
|
||||
" The value of a single shift-width
|
||||
if exists('*shiftwidth')
|
||||
let sw = shiftwidth()
|
||||
else
|
||||
let sw = &sw
|
||||
endif
|
||||
|
||||
" For the current line, use the first argument if given, else v:lnum
|
||||
let clnum = a:0 ? a:1 : v:lnum
|
||||
|
||||
@@ -333,6 +422,24 @@ function GetRubyIndent(...)
|
||||
let line = getline(clnum)
|
||||
let ind = -1
|
||||
|
||||
" If this line is an access modifier keyword, align according to the closest
|
||||
" class declaration.
|
||||
if g:ruby_indent_access_modifier_style == 'indent'
|
||||
if s:Match(clnum, s:access_modifier_regex)
|
||||
let class_line = s:FindContainingClass()
|
||||
if class_line > 0
|
||||
return indent(class_line) + sw
|
||||
endif
|
||||
endif
|
||||
elseif g:ruby_indent_access_modifier_style == 'outdent'
|
||||
if s:Match(clnum, s:access_modifier_regex)
|
||||
let class_line = s:FindContainingClass()
|
||||
if class_line > 0
|
||||
return indent(class_line)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
" If we got a closing bracket on an empty line, find its match and indent
|
||||
" according to it. For parentheses we indent to its column - 1, for the
|
||||
" others we indent to the containing line's MSL's level. Return -1 if fail.
|
||||
@@ -343,7 +450,9 @@ function GetRubyIndent(...)
|
||||
if searchpair(escape(bs[0], '\['), '', bs[1], 'bW', s:skip_expr) > 0
|
||||
if line[col-1]==')' && col('.') != col('$') - 1
|
||||
let ind = virtcol('.') - 1
|
||||
else
|
||||
elseif g:ruby_indent_block_style == 'do'
|
||||
let ind = indent(line('.'))
|
||||
else " g:ruby_indent_block_style == 'expression'
|
||||
let ind = indent(s:GetMSL(line('.')))
|
||||
endif
|
||||
endif
|
||||
@@ -366,10 +475,17 @@ function GetRubyIndent(...)
|
||||
|
||||
if strpart(line, 0, col('.') - 1) =~ '=\s*$' &&
|
||||
\ strpart(line, col('.') - 1, 2) !~ 'do'
|
||||
" assignment to case/begin/etc, on the same line, hanging indent
|
||||
let ind = virtcol('.') - 1
|
||||
elseif g:ruby_indent_block_style == 'do'
|
||||
" align to line of the "do", not to the MSL
|
||||
let ind = indent(line('.'))
|
||||
elseif getline(msl) =~ '=\s*\(#.*\)\=$'
|
||||
" in the case of assignment to the MSL, align to the starting line,
|
||||
" not to the MSL
|
||||
let ind = indent(line('.'))
|
||||
else
|
||||
" align to the MSL
|
||||
let ind = indent(msl)
|
||||
endif
|
||||
endif
|
||||
@@ -389,6 +505,11 @@ function GetRubyIndent(...)
|
||||
return 0
|
||||
endif
|
||||
|
||||
" If the current line starts with a leading operator, add a level of indent.
|
||||
if s:Match(clnum, s:leading_operator_regex)
|
||||
return indent(s:GetMSL(clnum)) + sw
|
||||
endif
|
||||
|
||||
" 3.3. Work on the previous line. {{{2
|
||||
" -------------------------------
|
||||
|
||||
@@ -409,14 +530,50 @@ function GetRubyIndent(...)
|
||||
let line = getline(lnum)
|
||||
let ind = indent(lnum)
|
||||
|
||||
if g:ruby_indent_access_modifier_style == 'indent'
|
||||
" If the previous line was a private/protected keyword, add a
|
||||
" level of indent.
|
||||
if s:Match(lnum, s:indent_access_modifier_regex)
|
||||
return indent(lnum) + sw
|
||||
endif
|
||||
elseif g:ruby_indent_access_modifier_style == 'outdent'
|
||||
" If the previous line was a private/protected/public keyword, add
|
||||
" a level of indent, since the keyword has been out-dented.
|
||||
if s:Match(lnum, s:access_modifier_regex)
|
||||
return indent(lnum) + sw
|
||||
endif
|
||||
endif
|
||||
|
||||
if s:Match(lnum, s:continuable_regex) && s:Match(lnum, s:continuation_regex)
|
||||
return indent(s:GetMSL(lnum)) + sw + sw
|
||||
endif
|
||||
|
||||
" If the previous line ended with a block opening, add a level of indent.
|
||||
if s:Match(lnum, s:block_regex)
|
||||
return indent(s:GetMSL(lnum)) + &sw
|
||||
let msl = s:GetMSL(lnum)
|
||||
|
||||
if g:ruby_indent_block_style == 'do'
|
||||
" don't align to the msl, align to the "do"
|
||||
let ind = indent(lnum) + sw
|
||||
elseif getline(msl) =~ '=\s*\(#.*\)\=$'
|
||||
" in the case of assignment to the msl, align to the starting line,
|
||||
" not to the msl
|
||||
let ind = indent(lnum) + sw
|
||||
else
|
||||
let ind = indent(msl) + sw
|
||||
endif
|
||||
return ind
|
||||
endif
|
||||
|
||||
" If the previous line started with a leading operator, use its MSL's level
|
||||
" of indent
|
||||
if s:Match(lnum, s:leading_operator_regex)
|
||||
return indent(s:GetMSL(lnum))
|
||||
endif
|
||||
|
||||
" If the previous line ended with the "*" of a splat, add a level of indent
|
||||
if line =~ s:splat_regex
|
||||
return indent(lnum) + &sw
|
||||
return indent(lnum) + sw
|
||||
endif
|
||||
|
||||
" If the previous line contained unclosed opening brackets and we are still
|
||||
@@ -431,22 +588,22 @@ function GetRubyIndent(...)
|
||||
if opening.pos != -1
|
||||
if opening.type == '(' && searchpair('(', '', ')', 'bW', s:skip_expr) > 0
|
||||
if col('.') + 1 == col('$')
|
||||
return ind + &sw
|
||||
return ind + sw
|
||||
else
|
||||
return virtcol('.')
|
||||
endif
|
||||
else
|
||||
let nonspace = matchend(line, '\S', opening.pos + 1) - 1
|
||||
return nonspace > 0 ? nonspace : ind + &sw
|
||||
return nonspace > 0 ? nonspace : ind + sw
|
||||
endif
|
||||
elseif closing.pos != -1
|
||||
call cursor(lnum, closing.pos + 1)
|
||||
normal! %
|
||||
|
||||
if s:Match(line('.'), s:ruby_indent_keywords)
|
||||
return indent('.') + &sw
|
||||
return indent('.') + sw
|
||||
else
|
||||
return indent('.')
|
||||
return indent(s:GetMSL(line('.')))
|
||||
endif
|
||||
else
|
||||
call cursor(clnum, vcol)
|
||||
@@ -473,7 +630,7 @@ function GetRubyIndent(...)
|
||||
let col = s:Match(lnum, s:ruby_indent_keywords)
|
||||
if col > 0
|
||||
call cursor(lnum, col)
|
||||
let ind = virtcol('.') - 1 + &sw
|
||||
let ind = virtcol('.') - 1 + sw
|
||||
" TODO: make this better (we need to count them) (or, if a searchpair
|
||||
" fails, we know that something is lacking an end and thus we indent a
|
||||
" level
|
||||
@@ -490,10 +647,14 @@ function GetRubyIndent(...)
|
||||
let p_lnum = lnum
|
||||
let lnum = s:GetMSL(lnum)
|
||||
|
||||
" If the previous line wasn't a MSL and is continuation return its indent.
|
||||
" TODO: the || s:IsInString() thing worries me a bit.
|
||||
" If the previous line wasn't a MSL.
|
||||
if p_lnum != lnum
|
||||
if s:Match(p_lnum, s:non_bracket_continuation_regex) || s:IsInString(p_lnum,strlen(line))
|
||||
" If previous line ends bracket and begins non-bracket continuation decrease indent by 1.
|
||||
if s:Match(p_lnum, s:bracket_switch_continuation_regex)
|
||||
return ind - 1
|
||||
" If previous line is a continuation return its indent.
|
||||
" TODO: the || s:IsInString() thing worries me a bit.
|
||||
elseif s:Match(p_lnum, s:non_bracket_continuation_regex) || s:IsInString(p_lnum,strlen(line))
|
||||
return ind
|
||||
endif
|
||||
endif
|
||||
@@ -506,9 +667,9 @@ function GetRubyIndent(...)
|
||||
" TODO: this does not take into account contrived things such as
|
||||
" module Foo; class Bar; end
|
||||
if s:Match(lnum, s:ruby_indent_keywords)
|
||||
let ind = msl_ind + &sw
|
||||
let ind = msl_ind + sw
|
||||
if s:Match(lnum, s:end_end_regex)
|
||||
let ind = ind - &sw
|
||||
let ind = ind - sw
|
||||
endif
|
||||
return ind
|
||||
endif
|
||||
@@ -517,7 +678,7 @@ function GetRubyIndent(...)
|
||||
" closing bracket, indent one extra level.
|
||||
if s:Match(lnum, s:non_bracket_continuation_regex) && !s:Match(lnum, '^\s*\([\])}]\|end\)')
|
||||
if lnum == p_lnum
|
||||
let ind = msl_ind + &sw
|
||||
let ind = msl_ind + sw
|
||||
else
|
||||
let ind = msl_ind
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Sass
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" Last Change: 2013 May 30
|
||||
" Last Change: 2016 Aug 29
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -29,9 +29,7 @@ function! GetSassIndent()
|
||||
let indent = indent(lnum)
|
||||
let cindent = indent(v:lnum)
|
||||
if line !~ s:property && line !~ s:extend && cline =~ s:property
|
||||
return indent + &sw
|
||||
"elseif line =~ s:property && cline !~ s:property
|
||||
"return indent - &sw
|
||||
return indent + (exists('*shiftwidth') ? shiftwidth() : &sw)
|
||||
else
|
||||
return -1
|
||||
endif
|
||||
|
||||
@@ -665,6 +665,8 @@ if has("gui")
|
||||
call <SID>BinOptionG("macligatures", &macligatures)
|
||||
call append("$", "macmeta\tuse option as meta key")
|
||||
call append("$", "\t(local to buffer)")
|
||||
call append("$", "macthinstrokes\tuse thin strokes")
|
||||
call <SID>BinOptionG("macthinstrokes", &macthinstrokes)
|
||||
call <SID>BinOptionL("mmta")
|
||||
endif
|
||||
endif
|
||||
|
||||
+25
-27
@@ -61,7 +61,6 @@ an 50.10.320 &Syntax.AB.Ascii\ Doc :cal SetSyn("asciidoc")<CR>
|
||||
an 50.10.330 &Syntax.AB.ASP\ with\ VBScript :cal SetSyn("aspvbs")<CR>
|
||||
an 50.10.340 &Syntax.AB.ASP\ with\ Perl :cal SetSyn("aspperl")<CR>
|
||||
an 50.10.350 &Syntax.AB.Assembly.680x0 :cal SetSyn("asm68k")<CR>
|
||||
an 50.10.355 &Syntax.AB.Assembly.AVR :cal SetSyn("avra")<CR>
|
||||
an 50.10.360 &Syntax.AB.Assembly.Flat :cal SetSyn("fasm")<CR>
|
||||
an 50.10.370 &Syntax.AB.Assembly.GNU :cal SetSyn("asm")<CR>
|
||||
an 50.10.380 &Syntax.AB.Assembly.GNU\ H-8300 :cal SetSyn("asmh8300")<CR>
|
||||
@@ -162,31 +161,31 @@ an 50.30.290 &Syntax.DE.Doxygen.C\ with\ doxygen :cal SetSyn("c.doxygen")<CR>
|
||||
an 50.30.300 &Syntax.DE.Doxygen.C++\ with\ doxygen :cal SetSyn("cpp.doxygen")<CR>
|
||||
an 50.30.310 &Syntax.DE.Doxygen.IDL\ with\ doxygen :cal SetSyn("idl.doxygen")<CR>
|
||||
an 50.30.320 &Syntax.DE.Doxygen.Java\ with\ doxygen :cal SetSyn("java.doxygen")<CR>
|
||||
an 50.30.320 &Syntax.DE.Doxygen.DataScript\ with\ doxygen :cal SetSyn("datascript.doxygen")<CR>
|
||||
an 50.30.330 &Syntax.DE.Dracula :cal SetSyn("dracula")<CR>
|
||||
an 50.30.340 &Syntax.DE.DSSSL :cal SetSyn("dsl")<CR>
|
||||
an 50.30.350 &Syntax.DE.DTD :cal SetSyn("dtd")<CR>
|
||||
an 50.30.360 &Syntax.DE.DTML\ (Zope) :cal SetSyn("dtml")<CR>
|
||||
an 50.30.370 &Syntax.DE.DTrace :cal SetSyn("dtrace")<CR>
|
||||
an 50.30.380 &Syntax.DE.Dts/dtsi :cal SetSyn("dts")<CR>
|
||||
an 50.30.390 &Syntax.DE.Dylan.Dylan :cal SetSyn("dylan")<CR>
|
||||
an 50.30.400 &Syntax.DE.Dylan.Dylan\ interface :cal SetSyn("dylanintr")<CR>
|
||||
an 50.30.410 &Syntax.DE.Dylan.Dylan\ lid :cal SetSyn("dylanlid")<CR>
|
||||
an 50.30.430 &Syntax.DE.EDIF :cal SetSyn("edif")<CR>
|
||||
an 50.30.440 &Syntax.DE.Eiffel :cal SetSyn("eiffel")<CR>
|
||||
an 50.30.450 &Syntax.DE.Elinks\ config :cal SetSyn("elinks")<CR>
|
||||
an 50.30.460 &Syntax.DE.Elm\ filter\ rules :cal SetSyn("elmfilt")<CR>
|
||||
an 50.30.470 &Syntax.DE.Embedix\ Component\ Description :cal SetSyn("ecd")<CR>
|
||||
an 50.30.480 &Syntax.DE.ERicsson\ LANGuage :cal SetSyn("erlang")<CR>
|
||||
an 50.30.490 &Syntax.DE.ESMTP\ rc :cal SetSyn("esmtprc")<CR>
|
||||
an 50.30.500 &Syntax.DE.ESQL-C :cal SetSyn("esqlc")<CR>
|
||||
an 50.30.510 &Syntax.DE.Essbase\ script :cal SetSyn("csc")<CR>
|
||||
an 50.30.520 &Syntax.DE.Esterel :cal SetSyn("esterel")<CR>
|
||||
an 50.30.530 &Syntax.DE.Eterm\ config :cal SetSyn("eterm")<CR>
|
||||
an 50.30.540 &Syntax.DE.Eviews :cal SetSyn("eviews")<CR>
|
||||
an 50.30.550 &Syntax.DE.Exim\ conf :cal SetSyn("exim")<CR>
|
||||
an 50.30.560 &Syntax.DE.Expect :cal SetSyn("expect")<CR>
|
||||
an 50.30.570 &Syntax.DE.Exports :cal SetSyn("exports")<CR>
|
||||
an 50.30.330 &Syntax.DE.Doxygen.DataScript\ with\ doxygen :cal SetSyn("datascript.doxygen")<CR>
|
||||
an 50.30.340 &Syntax.DE.Dracula :cal SetSyn("dracula")<CR>
|
||||
an 50.30.350 &Syntax.DE.DSSSL :cal SetSyn("dsl")<CR>
|
||||
an 50.30.360 &Syntax.DE.DTD :cal SetSyn("dtd")<CR>
|
||||
an 50.30.370 &Syntax.DE.DTML\ (Zope) :cal SetSyn("dtml")<CR>
|
||||
an 50.30.380 &Syntax.DE.DTrace :cal SetSyn("dtrace")<CR>
|
||||
an 50.30.390 &Syntax.DE.Dts/dtsi :cal SetSyn("dts")<CR>
|
||||
an 50.30.400 &Syntax.DE.Dylan.Dylan :cal SetSyn("dylan")<CR>
|
||||
an 50.30.410 &Syntax.DE.Dylan.Dylan\ interface :cal SetSyn("dylanintr")<CR>
|
||||
an 50.30.420 &Syntax.DE.Dylan.Dylan\ lid :cal SetSyn("dylanlid")<CR>
|
||||
an 50.30.440 &Syntax.DE.EDIF :cal SetSyn("edif")<CR>
|
||||
an 50.30.450 &Syntax.DE.Eiffel :cal SetSyn("eiffel")<CR>
|
||||
an 50.30.460 &Syntax.DE.Elinks\ config :cal SetSyn("elinks")<CR>
|
||||
an 50.30.470 &Syntax.DE.Elm\ filter\ rules :cal SetSyn("elmfilt")<CR>
|
||||
an 50.30.480 &Syntax.DE.Embedix\ Component\ Description :cal SetSyn("ecd")<CR>
|
||||
an 50.30.490 &Syntax.DE.ERicsson\ LANGuage :cal SetSyn("erlang")<CR>
|
||||
an 50.30.500 &Syntax.DE.ESMTP\ rc :cal SetSyn("esmtprc")<CR>
|
||||
an 50.30.510 &Syntax.DE.ESQL-C :cal SetSyn("esqlc")<CR>
|
||||
an 50.30.520 &Syntax.DE.Essbase\ script :cal SetSyn("csc")<CR>
|
||||
an 50.30.530 &Syntax.DE.Esterel :cal SetSyn("esterel")<CR>
|
||||
an 50.30.540 &Syntax.DE.Eterm\ config :cal SetSyn("eterm")<CR>
|
||||
an 50.30.550 &Syntax.DE.Eviews :cal SetSyn("eviews")<CR>
|
||||
an 50.30.560 &Syntax.DE.Exim\ conf :cal SetSyn("exim")<CR>
|
||||
an 50.30.570 &Syntax.DE.Expect :cal SetSyn("expect")<CR>
|
||||
an 50.30.580 &Syntax.DE.Exports :cal SetSyn("exports")<CR>
|
||||
an 50.40.100 &Syntax.FG.Falcon :cal SetSyn("falcon")<CR>
|
||||
an 50.40.110 &Syntax.FG.Fantom :cal SetSyn("fan")<CR>
|
||||
an 50.40.120 &Syntax.FG.Fetchmail :cal SetSyn("fetchmail")<CR>
|
||||
@@ -328,7 +327,6 @@ an 50.70.270 &Syntax.M.Messages\ (/var/log) :cal SetSyn("messages")<CR>
|
||||
an 50.70.280 &Syntax.M.Metafont :cal SetSyn("mf")<CR>
|
||||
an 50.70.290 &Syntax.M.MetaPost :cal SetSyn("mp")<CR>
|
||||
an 50.70.300 &Syntax.M.MGL :cal SetSyn("mgl")<CR>
|
||||
an 50.70.305 &Syntax.M.MIX :cal SetSyn("mix")<CR>
|
||||
an 50.70.310 &Syntax.M.MMIX :cal SetSyn("mmix")<CR>
|
||||
an 50.70.320 &Syntax.M.Modconf :cal SetSyn("modconf")<CR>
|
||||
an 50.70.330 &Syntax.M.Model :cal SetSyn("model")<CR>
|
||||
|
||||
+15
-28
@@ -1,13 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: xa 6502 cross assembler
|
||||
" Maintainer: Clemens Kirchgatterer <clemens@1541.org>
|
||||
" Last Change: 2014 Jan 05
|
||||
" Last Change: 2016 Aug 31
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -138,29 +135,19 @@ syn match a65End excludenl /end$/ contained
|
||||
syn match a65Continue "\\$" contained
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_a65_syntax_inits")
|
||||
if version < 508
|
||||
let did_a65_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink a65Section Special
|
||||
HiLink a65Address Special
|
||||
HiLink a65Comment Comment
|
||||
HiLink a65PreProc PreProc
|
||||
HiLink a65Number Number
|
||||
HiLink a65String String
|
||||
HiLink a65Type Statement
|
||||
HiLink a65Opcode Type
|
||||
HiLink a65PC Error
|
||||
HiLink a65Todo Todo
|
||||
HiLink a65HiLo Number
|
||||
hi def link a65Section Special
|
||||
hi def link a65Address Special
|
||||
hi def link a65Comment Comment
|
||||
hi def link a65PreProc PreProc
|
||||
hi def link a65Number Number
|
||||
hi def link a65String String
|
||||
hi def link a65Type Statement
|
||||
hi def link a65Opcode Type
|
||||
hi def link a65PC Error
|
||||
hi def link a65Todo Todo
|
||||
hi def link a65HiLo Number
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "a65"
|
||||
|
||||
+23
-40
@@ -5,11 +5,8 @@
|
||||
" Last Change: 2013 Jun 13
|
||||
" Comment: Thanks to EPI-USE Labs for all your assistance. :)
|
||||
|
||||
" For version < 6.0: Clear all syntax items
|
||||
" For version >= 6.0: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -43,11 +40,7 @@ syn match abapStringEscape contained "``"
|
||||
syn match abapNumber "\-\=\<\d\+\>"
|
||||
syn region abapHex matchgroup=abapHex start="X'" end="'"
|
||||
|
||||
if version >= 600
|
||||
setlocal iskeyword=48-57,_,A-Z,a-z,/
|
||||
else
|
||||
set iskeyword=48-57,_,A-Z,a-z,/
|
||||
endif
|
||||
setlocal iskeyword=48-57,_,A-Z,a-z,/
|
||||
|
||||
syn match abapNamespace "\</\w\+/"
|
||||
|
||||
@@ -175,38 +168,28 @@ syn keyword abapTodo contained TODO NOTE
|
||||
syn match abapTodo "\#EC\W\+\w\+"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_abap_syntax_inits")
|
||||
if version < 508
|
||||
let did_abap_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink abapError Error
|
||||
HiLink abapComment Comment
|
||||
HiLink abapInclude Include
|
||||
HiLink abapStatement Statement
|
||||
HiLink abapComplexStatement Statement
|
||||
HiLink abapSpecial Special
|
||||
HiLink abapNamespace Special
|
||||
HiLink abapSpecialTables Special
|
||||
HiLink abapSymbolOperator abapOperator
|
||||
HiLink abapOperator Operator
|
||||
HiLink abapCharString String
|
||||
HiLink abapString String
|
||||
HiLink abapFloat Float
|
||||
HiLink abapTypes Type
|
||||
HiLink abapSymbol Structure
|
||||
HiLink abapStructure Structure
|
||||
HiLink abapField Variable
|
||||
HiLink abapNumber Number
|
||||
HiLink abapHex Number
|
||||
hi def link abapError Error
|
||||
hi def link abapComment Comment
|
||||
hi def link abapInclude Include
|
||||
hi def link abapStatement Statement
|
||||
hi def link abapComplexStatement Statement
|
||||
hi def link abapSpecial Special
|
||||
hi def link abapNamespace Special
|
||||
hi def link abapSpecialTables Special
|
||||
hi def link abapSymbolOperator abapOperator
|
||||
hi def link abapOperator Operator
|
||||
hi def link abapCharString String
|
||||
hi def link abapString String
|
||||
hi def link abapFloat Float
|
||||
hi def link abapTypes Type
|
||||
hi def link abapSymbol Structure
|
||||
hi def link abapStructure Structure
|
||||
hi def link abapField Variable
|
||||
hi def link abapNumber Number
|
||||
hi def link abapHex Number
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "abap"
|
||||
|
||||
|
||||
@@ -4,11 +4,8 @@
|
||||
" Last Change: 2002 Feb 24
|
||||
" Remark: Huge improvement in folding performance--see filetype plugin
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -25,24 +22,14 @@ syn match abaqusValue "=\s*[^,]*"lc=1 contained display
|
||||
syn match abaqusBadLine "^\s\+\*.*" display
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_abaqus_syn_inits")
|
||||
if version < 508
|
||||
let did_abaqus_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
HiLink abaqusComment Comment
|
||||
HiLink abaqusKeyword Statement
|
||||
HiLink abaqusParameter Identifier
|
||||
HiLink abaqusValue Constant
|
||||
HiLink abaqusBadLine Error
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
hi def link abaqusComment Comment
|
||||
hi def link abaqusKeyword Statement
|
||||
hi def link abaqusParameter Identifier
|
||||
hi def link abaqusValue Constant
|
||||
hi def link abaqusBadLine Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "abaqus"
|
||||
|
||||
+12
-25
@@ -4,11 +4,8 @@
|
||||
" URL: http://perun.hscs.wmin.ac.uk/~jra/vim/syntax/abc.vim
|
||||
" Last Change: 27th April 2001
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -36,28 +33,18 @@ syn match abcComment "%.*$"
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_abc_syn_inits")
|
||||
if version < 508
|
||||
let did_abc_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink abcComment Comment
|
||||
HiLink abcHeadField Type
|
||||
HiLink abcBodyField Special
|
||||
HiLink abcBar Statement
|
||||
HiLink abcTuple Statement
|
||||
HiLink abcBroken Statement
|
||||
HiLink abcTie Statement
|
||||
HiLink abcGuitarChord Identifier
|
||||
HiLink abcNote Constant
|
||||
hi def link abcComment Comment
|
||||
hi def link abcHeadField Type
|
||||
hi def link abcBodyField Special
|
||||
hi def link abcBar Statement
|
||||
hi def link abcTuple Statement
|
||||
hi def link abcBroken Statement
|
||||
hi def link abcTie Statement
|
||||
hi def link abcGuitarChord Identifier
|
||||
hi def link abcNote Constant
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "abc"
|
||||
|
||||
|
||||
+32
-45
@@ -3,11 +3,8 @@
|
||||
" Maintainer: John Cook <johncook3@gmail.com>
|
||||
" Last Change: 2011 Dec 27
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -123,48 +120,38 @@ endif
|
||||
syn sync minlines=1
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_abel_syn_inits")
|
||||
if version < 508
|
||||
let did_abel_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
" The default highlighting.
|
||||
HiLink abelHeader abelStatement
|
||||
HiLink abelSection abelStatement
|
||||
HiLink abelDeclaration abelStatement
|
||||
HiLink abelLogicalOperator abelOperator
|
||||
HiLink abelRangeOperator abelOperator
|
||||
HiLink abelAlternateOperator abelOperator
|
||||
HiLink abelArithmeticOperator abelOperator
|
||||
HiLink abelRelationalOperator abelOperator
|
||||
HiLink abelAssignmentOperator abelOperator
|
||||
HiLink abelTruthTableOperator abelOperator
|
||||
HiLink abelSpecifier abelStatement
|
||||
HiLink abelOperator abelStatement
|
||||
HiLink abelStatement Statement
|
||||
HiLink abelIdentifier Identifier
|
||||
HiLink abelTypeId abelType
|
||||
HiLink abelTypeIdChar abelType
|
||||
HiLink abelType Type
|
||||
HiLink abelNumber abelString
|
||||
HiLink abelString String
|
||||
HiLink abelConstant Constant
|
||||
HiLink abelComment Comment
|
||||
HiLink abelExtension abelSpecial
|
||||
HiLink abelSpecialChar abelSpecial
|
||||
HiLink abelTypeIdEnd abelSpecial
|
||||
HiLink abelSpecial Special
|
||||
HiLink abelDirective PreProc
|
||||
HiLink abelTodo Todo
|
||||
HiLink abelError Error
|
||||
" The default highlighting.
|
||||
hi def link abelHeader abelStatement
|
||||
hi def link abelSection abelStatement
|
||||
hi def link abelDeclaration abelStatement
|
||||
hi def link abelLogicalOperator abelOperator
|
||||
hi def link abelRangeOperator abelOperator
|
||||
hi def link abelAlternateOperator abelOperator
|
||||
hi def link abelArithmeticOperator abelOperator
|
||||
hi def link abelRelationalOperator abelOperator
|
||||
hi def link abelAssignmentOperator abelOperator
|
||||
hi def link abelTruthTableOperator abelOperator
|
||||
hi def link abelSpecifier abelStatement
|
||||
hi def link abelOperator abelStatement
|
||||
hi def link abelStatement Statement
|
||||
hi def link abelIdentifier Identifier
|
||||
hi def link abelTypeId abelType
|
||||
hi def link abelTypeIdChar abelType
|
||||
hi def link abelType Type
|
||||
hi def link abelNumber abelString
|
||||
hi def link abelString String
|
||||
hi def link abelConstant Constant
|
||||
hi def link abelComment Comment
|
||||
hi def link abelExtension abelSpecial
|
||||
hi def link abelSpecialChar abelSpecial
|
||||
hi def link abelTypeIdEnd abelSpecial
|
||||
hi def link abelSpecial Special
|
||||
hi def link abelDirective PreProc
|
||||
hi def link abelTodo Todo
|
||||
hi def link abelError Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "abel"
|
||||
|
||||
|
||||
+19
-32
@@ -7,11 +7,8 @@
|
||||
" Syntax file to handle all $ACEDB/wspec/*.wrm files, primarily models.wrm
|
||||
" AceDB software is available from http://www.acedb.org
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -86,35 +83,25 @@ syn region acedbString start=/"/ end=/"/ skip=/\\"/ oneline
|
||||
" Rest of syntax highlighting rules start here
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_acedb_syn_inits")
|
||||
if version < 508
|
||||
let did_acedb_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink acedbMagic Special
|
||||
HiLink acedbHyb Special
|
||||
HiLink acedbType Type
|
||||
HiLink acedbOption Type
|
||||
HiLink acedbSubclass Type
|
||||
HiLink acedbSubtag Include
|
||||
HiLink acedbFlag Include
|
||||
HiLink acedbTag Include
|
||||
HiLink acedbClass Todo
|
||||
HiLink acedbHelp Todo
|
||||
HiLink acedbXref Identifier
|
||||
HiLink acedbModifier Label
|
||||
HiLink acedbComment Comment
|
||||
HiLink acedbBlock ModeMsg
|
||||
HiLink acedbNumber Number
|
||||
HiLink acedbString String
|
||||
hi def link acedbMagic Special
|
||||
hi def link acedbHyb Special
|
||||
hi def link acedbType Type
|
||||
hi def link acedbOption Type
|
||||
hi def link acedbSubclass Type
|
||||
hi def link acedbSubtag Include
|
||||
hi def link acedbFlag Include
|
||||
hi def link acedbTag Include
|
||||
hi def link acedbClass Todo
|
||||
hi def link acedbHelp Todo
|
||||
hi def link acedbXref Identifier
|
||||
hi def link acedbModifier Label
|
||||
hi def link acedbComment Comment
|
||||
hi def link acedbBlock ModeMsg
|
||||
hi def link acedbNumber Number
|
||||
hi def link acedbString String
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "acedb"
|
||||
|
||||
|
||||
+17
-35
@@ -7,21 +7,14 @@
|
||||
" Comment: Replaced sourcing c.vim file by ada.vim and rename lex*
|
||||
" in aflex*
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Read the Ada syntax to start with
|
||||
if version < 600
|
||||
so <sfile>:p:h/ada.vim
|
||||
else
|
||||
runtime! syntax/ada.vim
|
||||
unlet b:current_syntax
|
||||
endif
|
||||
runtime! syntax/ada.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
|
||||
" --- AfLex stuff ---
|
||||
@@ -69,31 +62,20 @@ syn sync match aflexSyncPat groupthere aflexPatBlock "^<$"
|
||||
syn sync match aflexSyncPat groupthere aflexPatBlock "^%%$"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
" Only when an item doesn't have highlighting yet
|
||||
hi def link aflexSlashQuote aflexPat
|
||||
hi def link aflexBrace aflexPat
|
||||
hi def link aflexAbbrvComment aflexPatComment
|
||||
|
||||
if version >= 508 || !exists("did_aflex_syntax_inits")
|
||||
if version < 508
|
||||
let did_aflex_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
HiLink aflexSlashQuote aflexPat
|
||||
HiLink aflexBrace aflexPat
|
||||
HiLink aflexAbbrvComment aflexPatComment
|
||||
|
||||
HiLink aflexAbbrv SpecialChar
|
||||
HiLink aflexAbbrvRegExp Macro
|
||||
HiLink aflexCFunctions Function
|
||||
HiLink aflexMorePat SpecialChar
|
||||
HiLink aflexPat Function
|
||||
HiLink aflexPatComment Comment
|
||||
HiLink aflexPatString Function
|
||||
HiLink aflexPatTag Special
|
||||
HiLink aflexSep Delimiter
|
||||
delcommand HiLink
|
||||
endif
|
||||
hi def link aflexAbbrv SpecialChar
|
||||
hi def link aflexAbbrvRegExp Macro
|
||||
hi def link aflexCFunctions Function
|
||||
hi def link aflexMorePat SpecialChar
|
||||
hi def link aflexPat Function
|
||||
hi def link aflexPatComment Comment
|
||||
hi def link aflexPatString Function
|
||||
hi def link aflexPatTag Special
|
||||
hi def link aflexSep Delimiter
|
||||
|
||||
let b:current_syntax = "aflex"
|
||||
|
||||
|
||||
+13
-26
@@ -3,11 +3,8 @@
|
||||
" Maintainer: John Cook <john.cook@kla-tencor.com>
|
||||
" Last Change: 2001 Apr 25
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -66,29 +63,19 @@ syn match ahdlSpecialChar "[\[\]().,;]"
|
||||
syn sync minlines=1
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_ahdl_syn_inits")
|
||||
if version < 508
|
||||
let did_ahdl_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
" The default highlighting.
|
||||
HiLink ahdlNumber ahdlString
|
||||
HiLink ahdlMegafunction ahdlIdentifier
|
||||
HiLink ahdlSpecialChar SpecialChar
|
||||
HiLink ahdlKeyword Statement
|
||||
HiLink ahdlString String
|
||||
HiLink ahdlComment Comment
|
||||
HiLink ahdlIdentifier Identifier
|
||||
HiLink ahdlOperator Operator
|
||||
HiLink ahdlTodo Todo
|
||||
" The default highlighting.
|
||||
hi def link ahdlNumber ahdlString
|
||||
hi def link ahdlMegafunction ahdlIdentifier
|
||||
hi def link ahdlSpecialChar SpecialChar
|
||||
hi def link ahdlKeyword Statement
|
||||
hi def link ahdlString String
|
||||
hi def link ahdlComment Comment
|
||||
hi def link ahdlIdentifier Identifier
|
||||
hi def link ahdlOperator Operator
|
||||
hi def link ahdlTodo Todo
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "ahdl"
|
||||
" vim:ts=8
|
||||
|
||||
+15
-28
@@ -1,15 +1,12 @@
|
||||
" Vim syntax file
|
||||
" Language: AmigaDos
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 7
|
||||
" Last Change: Aug 31, 2016
|
||||
" Version: 9
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_AMIGA
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -72,30 +69,20 @@ syn match amiComment ";.*$" contains=amiCommentGroup
|
||||
syn sync lines=50
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_amiga_syn_inits")
|
||||
if version < 508
|
||||
let did_amiga_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
if !exists("skip_amiga_syntax_inits")
|
||||
|
||||
HiLink amiAlias Type
|
||||
HiLink amiComment Comment
|
||||
HiLink amiDev Type
|
||||
HiLink amiEcho String
|
||||
HiLink amiElse Statement
|
||||
HiLink amiError Error
|
||||
HiLink amiKey Statement
|
||||
HiLink amiNumber Number
|
||||
HiLink amiString String
|
||||
HiLink amiTest Special
|
||||
hi def link amiAlias Type
|
||||
hi def link amiComment Comment
|
||||
hi def link amiDev Type
|
||||
hi def link amiEcho String
|
||||
hi def link amiElse Statement
|
||||
hi def link amiError Error
|
||||
hi def link amiKey Statement
|
||||
hi def link amiNumber Number
|
||||
hi def link amiString String
|
||||
hi def link amiTest Special
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "amiga"
|
||||
|
||||
" vim:ts=15
|
||||
|
||||
+20
-33
@@ -9,11 +9,8 @@
|
||||
" of [], in order to avoid -read highlighted,
|
||||
" or [quote] strings highlighted
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -123,35 +120,25 @@ syn region amlSkip matchgroup=amlOutput start="&typ" end="$" contains=amlVar
|
||||
syn region amlSkip matchgroup=amlOutput start="&type" end="$" contains=amlVar
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_aml_syntax_inits")
|
||||
if version < 508
|
||||
let did_aml_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink amlComment Comment
|
||||
HiLink amlNumber Number
|
||||
HiLink amlQuote String
|
||||
HiLink amlVar Identifier
|
||||
HiLink amlVar2 Identifier
|
||||
HiLink amlFunction PreProc
|
||||
HiLink amlDir Statement
|
||||
HiLink amlDir2 Statement
|
||||
HiLink amlDirSym Statement
|
||||
HiLink amlOutput Statement
|
||||
HiLink amlArcCmd ModeMsg
|
||||
HiLink amlFormedCmd amlArcCmd
|
||||
HiLink amlTabCmd amlArcCmd
|
||||
HiLink amlInfoCmd amlArcCmd
|
||||
HiLink amlVtrCmd amlArcCmd
|
||||
HiLink amlFormed amlArcCmd
|
||||
HiLink amlTab amlArcCmd
|
||||
hi def link amlComment Comment
|
||||
hi def link amlNumber Number
|
||||
hi def link amlQuote String
|
||||
hi def link amlVar Identifier
|
||||
hi def link amlVar2 Identifier
|
||||
hi def link amlFunction PreProc
|
||||
hi def link amlDir Statement
|
||||
hi def link amlDir2 Statement
|
||||
hi def link amlDirSym Statement
|
||||
hi def link amlOutput Statement
|
||||
hi def link amlArcCmd ModeMsg
|
||||
hi def link amlFormedCmd amlArcCmd
|
||||
hi def link amlTabCmd amlArcCmd
|
||||
hi def link amlInfoCmd amlArcCmd
|
||||
hi def link amlVtrCmd amlArcCmd
|
||||
hi def link amlFormed amlArcCmd
|
||||
hi def link amlTab amlArcCmd
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "aml"
|
||||
|
||||
+18
-28
@@ -3,9 +3,8 @@
|
||||
" Last Change: 2003 May 11
|
||||
|
||||
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -115,33 +114,24 @@ syn keyword amplTodo contained TODO FIXME XXX
|
||||
|
||||
|
||||
|
||||
if version >= 508 || !exists("did_ampl_syntax_inits")
|
||||
if version < 508
|
||||
let did_ampl_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" The default methods for highlighting. Can be overridden later.
|
||||
HiLink amplEntityKeyword Keyword
|
||||
HiLink amplType Type
|
||||
HiLink amplStatement Statement
|
||||
HiLink amplOperators Operator
|
||||
HiLink amplBasicOperators Operator
|
||||
HiLink amplConditional Conditional
|
||||
HiLink amplRepeat Repeat
|
||||
HiLink amplStrings String
|
||||
HiLink amplNumerics Number
|
||||
HiLink amplSetFunction Function
|
||||
HiLink amplBuiltInFunction Function
|
||||
HiLink amplRandomGenerator Function
|
||||
HiLink amplComment Comment
|
||||
HiLink amplDotSuffix Special
|
||||
HiLink amplPiecewise Special
|
||||
" The default methods for highlighting. Can be overridden later.
|
||||
hi def link amplEntityKeyword Keyword
|
||||
hi def link amplType Type
|
||||
hi def link amplStatement Statement
|
||||
hi def link amplOperators Operator
|
||||
hi def link amplBasicOperators Operator
|
||||
hi def link amplConditional Conditional
|
||||
hi def link amplRepeat Repeat
|
||||
hi def link amplStrings String
|
||||
hi def link amplNumerics Number
|
||||
hi def link amplSetFunction Function
|
||||
hi def link amplBuiltInFunction Function
|
||||
hi def link amplRandomGenerator Function
|
||||
hi def link amplComment Comment
|
||||
hi def link amplDotSuffix Special
|
||||
hi def link amplPiecewise Special
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "ampl"
|
||||
|
||||
|
||||
@@ -4,11 +4,8 @@
|
||||
" LastChange: 02 May 2001
|
||||
" Original: Comes from JavaCC.vim
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -18,12 +15,8 @@ endif
|
||||
" Those files usually have the extension *.jj
|
||||
|
||||
" source the java.vim file
|
||||
if version < 600
|
||||
so <sfile>:p:h/java.vim
|
||||
else
|
||||
runtime! syntax/java.vim
|
||||
unlet b:current_syntax
|
||||
endif
|
||||
runtime! syntax/java.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
"remove catching errors caused by wrong parenthesis (does not work in antlr
|
||||
"files) (first define them in case they have not been defined in java)
|
||||
@@ -53,17 +46,8 @@ syn match antlrSep "[|:]\|\.\."
|
||||
syn keyword antlrActionToken TOKEN SKIP MORE SPECIAL_TOKEN
|
||||
syn keyword antlrError DEBUG IGNORE_IN_BNF
|
||||
|
||||
if version >= 508 || !exists("did_antlr_syntax_inits")
|
||||
if version < 508
|
||||
let did_antlr_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
HiLink antlrSep Statement
|
||||
HiLink antlrPackages Statement
|
||||
delcommand HiLink
|
||||
endif
|
||||
hi def link antlrSep Statement
|
||||
hi def link antlrPackages Statement
|
||||
|
||||
let b:current_syntax = "antlr"
|
||||
|
||||
|
||||
+24
-37
@@ -9,13 +9,9 @@
|
||||
" make it really linewise?
|
||||
" + add `display' where appropriate
|
||||
|
||||
" Setup
|
||||
if version >= 600
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
else
|
||||
syntax clear
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn case ignore
|
||||
@@ -178,37 +174,28 @@ syn match apacheSection "<\/\=\(<IfVersion\)[^>]*>" contains=apacheAnything
|
||||
syn keyword apacheDeclaration VirtualDocumentRoot VirtualDocumentRootIP VirtualScriptAlias VirtualScriptAliasIP
|
||||
|
||||
" Define the default highlighting
|
||||
if version >= 508 || !exists("did_apache_syntax_inits")
|
||||
if version < 508
|
||||
let did_apache_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink apacheAllowOverride apacheDeclaration
|
||||
HiLink apacheAllowOverrideValue apacheOption
|
||||
HiLink apacheAuthType apacheDeclaration
|
||||
HiLink apacheAuthTypeValue apacheOption
|
||||
HiLink apacheOptionOption apacheOption
|
||||
HiLink apacheDeclaration Function
|
||||
HiLink apacheAnything apacheOption
|
||||
HiLink apacheOption Number
|
||||
HiLink apacheComment Comment
|
||||
HiLink apacheFixme Todo
|
||||
HiLink apacheLimitSectionKeyword apacheLimitSection
|
||||
HiLink apacheLimitSection apacheSection
|
||||
HiLink apacheSection Label
|
||||
HiLink apacheMethodOption Type
|
||||
HiLink apacheAllowDeny Include
|
||||
HiLink apacheAllowDenyValue Identifier
|
||||
HiLink apacheOrder Special
|
||||
HiLink apacheOrderValue String
|
||||
HiLink apacheString String
|
||||
HiLink apacheError Error
|
||||
HiLink apacheUserID Number
|
||||
hi def link apacheAllowOverride apacheDeclaration
|
||||
hi def link apacheAllowOverrideValue apacheOption
|
||||
hi def link apacheAuthType apacheDeclaration
|
||||
hi def link apacheAuthTypeValue apacheOption
|
||||
hi def link apacheOptionOption apacheOption
|
||||
hi def link apacheDeclaration Function
|
||||
hi def link apacheAnything apacheOption
|
||||
hi def link apacheOption Number
|
||||
hi def link apacheComment Comment
|
||||
hi def link apacheFixme Todo
|
||||
hi def link apacheLimitSectionKeyword apacheLimitSection
|
||||
hi def link apacheLimitSection apacheSection
|
||||
hi def link apacheSection Label
|
||||
hi def link apacheMethodOption Type
|
||||
hi def link apacheAllowDeny Include
|
||||
hi def link apacheAllowDenyValue Identifier
|
||||
hi def link apacheOrder Special
|
||||
hi def link apacheOrderValue String
|
||||
hi def link apacheString String
|
||||
hi def link apacheError Error
|
||||
hi def link apacheUserID Number
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "apache"
|
||||
|
||||
@@ -20,11 +20,8 @@
|
||||
" </SubSection>
|
||||
" </Section>
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -41,25 +38,15 @@ syn match apTagOption contained / [-\/_\.:*a-zA-Z0-9]\+/ms=s+1
|
||||
syn match apTagError contained /[^>]</ms=s+1
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_apachestyle_syn_inits")
|
||||
if version < 508
|
||||
let did_apachestyle_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink apComment Comment
|
||||
HiLink apOption Keyword
|
||||
"HiLink apLastValue Identifier ugly?
|
||||
HiLink apTag Special
|
||||
HiLink apTagOption Identifier
|
||||
HiLink apTagError Error
|
||||
hi def link apComment Comment
|
||||
hi def link apOption Keyword
|
||||
"hi def link apLastValue Identifier ugly?
|
||||
hi def link apTag Special
|
||||
hi def link apTagOption Identifier
|
||||
hi def link apTagError Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "apachestyle"
|
||||
" vim: ts=8
|
||||
|
||||
@@ -3,12 +3,9 @@
|
||||
" Maintainer: Yann Amar <quidame@poivron.org>
|
||||
" Last Change: 2015 Dec 22
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x and 7.x: Quit when a syntax file was already loaded
|
||||
" quit when a syntax file was already loaded
|
||||
if !exists("main_syntax")
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
let main_syntax = 'aptconf'
|
||||
|
||||
@@ -10,20 +10,13 @@
|
||||
|
||||
" Thanks to Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback!
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Read the C syntax to start with
|
||||
if version < 600
|
||||
so <sfile>:p:h/cpp.vim
|
||||
else
|
||||
runtime! syntax/cpp.vim
|
||||
endif
|
||||
runtime! syntax/cpp.vim
|
||||
|
||||
syn keyword arduinoConstant HIGH LOW INPUT OUTPUT
|
||||
syn keyword arduinoConstant DEC BIN HEX OCT BYTE
|
||||
|
||||
+18
-31
@@ -7,11 +7,8 @@
|
||||
|
||||
" Thanks to Ori Avtalion for feedback on the comment markers!
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.0 and later: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -103,37 +100,27 @@ syn match asmDirective "\.[A-Za-z][0-9A-Za-z-_]*"
|
||||
syn case match
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_asm_syntax_inits")
|
||||
if version < 508
|
||||
let did_asm_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
HiLink asmSection Special
|
||||
HiLink asmLabel Label
|
||||
HiLink asmComment Comment
|
||||
HiLink asmTodo Todo
|
||||
HiLink asmDirective Statement
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
hi def link asmSection Special
|
||||
hi def link asmLabel Label
|
||||
hi def link asmComment Comment
|
||||
hi def link asmTodo Todo
|
||||
hi def link asmDirective Statement
|
||||
|
||||
HiLink asmInclude Include
|
||||
HiLink asmCond PreCondit
|
||||
HiLink asmMacro Macro
|
||||
hi def link asmInclude Include
|
||||
hi def link asmCond PreCondit
|
||||
hi def link asmMacro Macro
|
||||
|
||||
HiLink hexNumber Number
|
||||
HiLink decNumber Number
|
||||
HiLink octNumber Number
|
||||
HiLink binNumber Number
|
||||
hi def link hexNumber Number
|
||||
hi def link decNumber Number
|
||||
hi def link octNumber Number
|
||||
hi def link binNumber Number
|
||||
|
||||
HiLink asmIdentifier Identifier
|
||||
HiLink asmType Type
|
||||
hi def link asmIdentifier Identifier
|
||||
hi def link asmType Type
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "asm"
|
||||
|
||||
|
||||
+38
-51
@@ -8,11 +8,8 @@
|
||||
" Feel free to contribute...
|
||||
"
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -328,63 +325,53 @@ syn match asm68kDirective "\<XREF\(\.S\)\=\s"
|
||||
syn case match
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_asm68k_syntax_inits")
|
||||
if version < 508
|
||||
let did_asm68k_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
" Comment Constant Error Identifier PreProc Special Statement Todo Type
|
||||
"
|
||||
" Constant Boolean Character Number String
|
||||
" Identifier Function
|
||||
" PreProc Define Include Macro PreCondit
|
||||
" Special Debug Delimiter SpecialChar SpecialComment Tag
|
||||
" Statement Conditional Exception Keyword Label Operator Repeat
|
||||
" Type StorageClass Structure Typedef
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
" Comment Constant Error Identifier PreProc Special Statement Todo Type
|
||||
"
|
||||
" Constant Boolean Character Number String
|
||||
" Identifier Function
|
||||
" PreProc Define Include Macro PreCondit
|
||||
" Special Debug Delimiter SpecialChar SpecialComment Tag
|
||||
" Statement Conditional Exception Keyword Label Operator Repeat
|
||||
" Type StorageClass Structure Typedef
|
||||
|
||||
HiLink asm68kComment Comment
|
||||
HiLink asm68kTodo Todo
|
||||
hi def link asm68kComment Comment
|
||||
hi def link asm68kTodo Todo
|
||||
|
||||
HiLink hexNumber Number " Constant
|
||||
HiLink octNumber Number " Constant
|
||||
HiLink binNumber Number " Constant
|
||||
HiLink decNumber Number " Constant
|
||||
HiLink floatNumber Number " Constant
|
||||
HiLink floatExponent Number " Constant
|
||||
HiLink floatE SpecialChar " Statement
|
||||
"HiLink floatE Number " Constant
|
||||
hi def link hexNumber Number " Constant
|
||||
hi def link octNumber Number " Constant
|
||||
hi def link binNumber Number " Constant
|
||||
hi def link decNumber Number " Constant
|
||||
hi def link floatNumber Number " Constant
|
||||
hi def link floatExponent Number " Constant
|
||||
hi def link floatE SpecialChar " Statement
|
||||
"hi def link floatE Number " Constant
|
||||
|
||||
HiLink asm68kImmediate SpecialChar " Statement
|
||||
"HiLink asm68kSymbol Constant
|
||||
hi def link asm68kImmediate SpecialChar " Statement
|
||||
"hi def link asm68kSymbol Constant
|
||||
|
||||
HiLink asm68kString String " Constant
|
||||
HiLink asm68kCharError Error
|
||||
HiLink asm68kStringError Error
|
||||
hi def link asm68kString String " Constant
|
||||
hi def link asm68kCharError Error
|
||||
hi def link asm68kStringError Error
|
||||
|
||||
HiLink asm68kReg Identifier
|
||||
HiLink asm68kOperator Identifier
|
||||
hi def link asm68kReg Identifier
|
||||
hi def link asm68kOperator Identifier
|
||||
|
||||
HiLink asm68kInclude Include " PreProc
|
||||
HiLink asm68kMacro Macro " PreProc
|
||||
HiLink asm68kMacroParam Keyword " Statement
|
||||
hi def link asm68kInclude Include " PreProc
|
||||
hi def link asm68kMacro Macro " PreProc
|
||||
hi def link asm68kMacroParam Keyword " Statement
|
||||
|
||||
HiLink asm68kDirective Special
|
||||
HiLink asm68kPreCond Special
|
||||
hi def link asm68kDirective Special
|
||||
hi def link asm68kPreCond Special
|
||||
|
||||
|
||||
HiLink asm68kOpcode Statement
|
||||
HiLink asm68kCond Conditional " Statement
|
||||
HiLink asm68kRepeat Repeat " Statement
|
||||
hi def link asm68kOpcode Statement
|
||||
hi def link asm68kCond Conditional " Statement
|
||||
hi def link asm68kRepeat Repeat " Statement
|
||||
|
||||
HiLink asm68kLabel Type
|
||||
delcommand HiLink
|
||||
endif
|
||||
hi def link asm68kLabel Type
|
||||
|
||||
let b:current_syntax = "asm68k"
|
||||
|
||||
|
||||
@@ -3,11 +3,8 @@
|
||||
" Maintainer: Kevin Dahlhausen <kdahlhaus@yahoo.com>
|
||||
" Last Change: 2002 Sep 19
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -52,33 +49,19 @@ syn case match
|
||||
|
||||
|
||||
" Read the general asm syntax
|
||||
if version < 600
|
||||
source <sfile>:p:h/asm.vim
|
||||
else
|
||||
runtime! syntax/asm.vim
|
||||
endif
|
||||
runtime! syntax/asm.vim
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_hitachi_syntax_inits")
|
||||
if version < 508
|
||||
let did_hitachi_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink asmOpcode Statement
|
||||
HiLink asmRegister Identifier
|
||||
hi def link asmOpcode Statement
|
||||
hi def link asmRegister Identifier
|
||||
|
||||
" My default-color overrides:
|
||||
"hi asmOpcode ctermfg=yellow
|
||||
"hi asmReg ctermfg=lightmagenta
|
||||
" My default-color overrides:
|
||||
"hi asmOpcode ctermfg=yellow
|
||||
"hi asmReg ctermfg=lightmagenta
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "asmh8300"
|
||||
|
||||
|
||||
+20
-33
@@ -4,11 +4,8 @@
|
||||
" URL: http://www.fleiner.com/vim/syntax/asn.vim
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -50,34 +47,24 @@ syn match asnBraces "[{}]"
|
||||
syn sync ccomment asnComment
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_asn_syn_inits")
|
||||
if version < 508
|
||||
let did_asn_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
HiLink asnDefinition Function
|
||||
HiLink asnBraces Function
|
||||
HiLink asnStructure Statement
|
||||
HiLink asnBoolValue Boolean
|
||||
HiLink asnSpecial Special
|
||||
HiLink asnString String
|
||||
HiLink asnCharacter Character
|
||||
HiLink asnSpecialCharacter asnSpecial
|
||||
HiLink asnNumber asnValue
|
||||
HiLink asnComment Comment
|
||||
HiLink asnLineComment asnComment
|
||||
HiLink asnType Type
|
||||
HiLink asnTypeInfo PreProc
|
||||
HiLink asnValue Number
|
||||
HiLink asnExternal Include
|
||||
HiLink asnTagModifier Function
|
||||
HiLink asnFieldOption Type
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
hi def link asnDefinition Function
|
||||
hi def link asnBraces Function
|
||||
hi def link asnStructure Statement
|
||||
hi def link asnBoolValue Boolean
|
||||
hi def link asnSpecial Special
|
||||
hi def link asnString String
|
||||
hi def link asnCharacter Character
|
||||
hi def link asnSpecialCharacter asnSpecial
|
||||
hi def link asnNumber asnValue
|
||||
hi def link asnComment Comment
|
||||
hi def link asnLineComment asnComment
|
||||
hi def link asnType Type
|
||||
hi def link asnTypeInfo PreProc
|
||||
hi def link asnValue Number
|
||||
hi def link asnExternal Include
|
||||
hi def link asnTagModifier Function
|
||||
hi def link asnFieldOption Type
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
@@ -4,11 +4,8 @@
|
||||
" URL: http://nim.dhs.org/~edh/aspperl.vim
|
||||
" Last Change: 2001 May 09
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -16,14 +13,9 @@ if !exists("main_syntax")
|
||||
let main_syntax = 'perlscript'
|
||||
endif
|
||||
|
||||
if version < 600
|
||||
so <sfile>:p:h/html.vim
|
||||
syn include @AspPerlScript <sfile>:p:h/perl.vim
|
||||
else
|
||||
runtime! syntax/html.vim
|
||||
unlet b:current_syntax
|
||||
syn include @AspPerlScript syntax/perl.vim
|
||||
endif
|
||||
runtime! syntax/html.vim
|
||||
unlet b:current_syntax
|
||||
syn include @AspPerlScript syntax/perl.vim
|
||||
|
||||
syn cluster htmlPreproc add=AspPerlScriptInsideHtmlTags
|
||||
|
||||
|
||||
+16
-32
@@ -11,10 +11,8 @@
|
||||
" Thanks to Dean Hall <hall@apt7.com> for testing the use of classes in
|
||||
" VBScripts which I've been too scared to do.
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syn clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -22,11 +20,7 @@ if !exists("main_syntax")
|
||||
let main_syntax = 'aspvbs'
|
||||
endif
|
||||
|
||||
if version < 600
|
||||
source <sfile>:p:h/html.vim
|
||||
else
|
||||
runtime! syntax/html.vim
|
||||
endif
|
||||
runtime! syntax/html.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
syn cluster htmlPreProc add=AspVBScriptInsideHtmlTags
|
||||
@@ -163,31 +157,21 @@ syn sync match htmlHighlight grouphere htmlTag "%>"
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_aspvbs_syn_inits")
|
||||
if version < 508
|
||||
let did_aspvbs_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
"HiLink AspVBScript Special
|
||||
HiLink AspVBSLineNumber Comment
|
||||
HiLink AspVBSNumber Number
|
||||
HiLink AspVBSError Error
|
||||
HiLink AspVBSStatement Statement
|
||||
HiLink AspVBSString String
|
||||
HiLink AspVBSComment Comment
|
||||
HiLink AspVBSTodo Todo
|
||||
HiLink AspVBSFunction Identifier
|
||||
HiLink AspVBSMethods PreProc
|
||||
HiLink AspVBSEvents Special
|
||||
HiLink AspVBSTypeSpecifier Type
|
||||
"hi def link AspVBScript Special
|
||||
hi def link AspVBSLineNumber Comment
|
||||
hi def link AspVBSNumber Number
|
||||
hi def link AspVBSError Error
|
||||
hi def link AspVBSStatement Statement
|
||||
hi def link AspVBSString String
|
||||
hi def link AspVBSComment Comment
|
||||
hi def link AspVBSTodo Todo
|
||||
hi def link AspVBSFunction Identifier
|
||||
hi def link AspVBSMethods PreProc
|
||||
hi def link AspVBSEvents Special
|
||||
hi def link AspVBSTypeSpecifier Type
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "aspvbs"
|
||||
|
||||
|
||||
+29
-39
@@ -5,10 +5,9 @@
|
||||
" Updated for 1.2 by Tilghman Lesher (Corydon76)
|
||||
" Last Change: 2015 Feb 27
|
||||
" version 0.4
|
||||
"
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -57,42 +56,33 @@ syn match asteriskSetting "^port\s*=\s*\d\{1,5}\s*$" contains=aste
|
||||
syn match asteriskSetting "^host\s*=\s*\(dynamic\|\(\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)\|\([[:alnum:]][[:alnum:]\-\.]*\.[[:alpha:]]{2,10}\)\)" contains=asteriskIP,asteriskHostname
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_conf_syntax_inits")
|
||||
if version < 508
|
||||
let did_conf_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
hi def link asteriskComment Comment
|
||||
hi def link asteriskExten String
|
||||
hi def link asteriskContext Preproc
|
||||
hi def link asteriskPattern Type
|
||||
hi def link asteriskApp Statement
|
||||
hi def link asteriskInclude Preproc
|
||||
hi def link asteriskIncludeBad Error
|
||||
hi def link asteriskPriority Preproc
|
||||
hi def link asteriskLabel Type
|
||||
hi def link asteriskVar String
|
||||
hi def link asteriskVarLen Function
|
||||
hi def link asteriskExp Type
|
||||
hi def link asteriskCodecsPermit Preproc
|
||||
hi def link asteriskCodecs String
|
||||
hi def link asteriskType Statement
|
||||
hi def link asteriskTypeType Type
|
||||
hi def link asteriskAuth String
|
||||
hi def link asteriskAuthType Type
|
||||
hi def link asteriskIPRange Identifier
|
||||
hi def link asteriskIP Identifier
|
||||
hi def link asteriskPort Identifier
|
||||
hi def link asteriskHostname Identifier
|
||||
hi def link asteriskSetting Statement
|
||||
hi def link asteriskError Error
|
||||
|
||||
HiLink asteriskComment Comment
|
||||
HiLink asteriskExten String
|
||||
HiLink asteriskContext Preproc
|
||||
HiLink asteriskPattern Type
|
||||
HiLink asteriskApp Statement
|
||||
HiLink asteriskInclude Preproc
|
||||
HiLink asteriskIncludeBad Error
|
||||
HiLink asteriskPriority Preproc
|
||||
HiLink asteriskLabel Type
|
||||
HiLink asteriskVar String
|
||||
HiLink asteriskVarLen Function
|
||||
HiLink asteriskExp Type
|
||||
HiLink asteriskCodecsPermit Preproc
|
||||
HiLink asteriskCodecs String
|
||||
HiLink asteriskType Statement
|
||||
HiLink asteriskTypeType Type
|
||||
HiLink asteriskAuth String
|
||||
HiLink asteriskAuthType Type
|
||||
HiLink asteriskIPRange Identifier
|
||||
HiLink asteriskIP Identifier
|
||||
HiLink asteriskPort Identifier
|
||||
HiLink asteriskHostname Identifier
|
||||
HiLink asteriskSetting Statement
|
||||
HiLink asteriskError Error
|
||||
delcommand HiLink
|
||||
endif
|
||||
let b:current_syntax = "asterisk"
|
||||
" vim: ts=8 sw=2
|
||||
|
||||
|
||||
@@ -3,10 +3,9 @@
|
||||
" Maintainer: Tilghman Lesher (Corydon76)
|
||||
" Last Change: 2006 Mar 21
|
||||
" version 0.2
|
||||
"
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -33,28 +32,18 @@ syn match mailboxEmail ",\zs[^@=,]*@[[:alnum:]\-\.]\+\.[[:alpha
|
||||
syn match comma "[,|]" contained
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
:if version >= 508 || !exists("did_conf_syntax_inits")
|
||||
if version < 508
|
||||
let did_conf_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink asteriskvmComment Comment
|
||||
HiLink asteriskvmContext Identifier
|
||||
HiLink asteriskvmZone Type
|
||||
HiLink zoneName String
|
||||
HiLink zoneDef String
|
||||
HiLink asteriskvmSetting Type
|
||||
HiLink asteriskvmSettingBool Type
|
||||
hi def link asteriskvmComment Comment
|
||||
hi def link asteriskvmContext Identifier
|
||||
hi def link asteriskvmZone Type
|
||||
hi def link zoneName String
|
||||
hi def link zoneDef String
|
||||
hi def link asteriskvmSetting Type
|
||||
hi def link asteriskvmSettingBool Type
|
||||
|
||||
HiLink asteriskvmMailbox Statement
|
||||
HiLink mailboxEmail String
|
||||
delcommand HiLink
|
||||
endif
|
||||
hi def link asteriskvmMailbox Statement
|
||||
hi def link mailboxEmail String
|
||||
|
||||
let b:current_syntax = "asteriskvm"
|
||||
|
||||
|
||||
+21
-34
@@ -3,11 +3,8 @@
|
||||
" Maintainer: Inaki Saez <jisaez@sfe.indra.es>
|
||||
" Last Change: 2001 May 09
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -61,37 +58,27 @@ syn sync maxlines=100
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_atlas_syntax_inits")
|
||||
if version < 508
|
||||
let did_atlas_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink atlasConditional Conditional
|
||||
HiLink atlasRepeat Repeat
|
||||
HiLink atlasStatement Statement
|
||||
HiLink atlasNumber Number
|
||||
HiLink atlasHexNumber Number
|
||||
HiLink atlasOctalNumber Number
|
||||
HiLink atlasBinNumber Number
|
||||
HiLink atlasDecimalNumber Float
|
||||
HiLink atlasFormatString String
|
||||
HiLink atlasString String
|
||||
HiLink atlasComment Comment
|
||||
HiLink atlasComment2 Comment
|
||||
HiLink atlasInclude Include
|
||||
HiLink atlasDefine Macro
|
||||
HiLink atlasReserved PreCondit
|
||||
HiLink atlasStorageClass StorageClass
|
||||
HiLink atlasIdentifier NONE
|
||||
HiLink atlasSpecial Special
|
||||
hi def link atlasConditional Conditional
|
||||
hi def link atlasRepeat Repeat
|
||||
hi def link atlasStatement Statement
|
||||
hi def link atlasNumber Number
|
||||
hi def link atlasHexNumber Number
|
||||
hi def link atlasOctalNumber Number
|
||||
hi def link atlasBinNumber Number
|
||||
hi def link atlasDecimalNumber Float
|
||||
hi def link atlasFormatString String
|
||||
hi def link atlasString String
|
||||
hi def link atlasComment Comment
|
||||
hi def link atlasComment2 Comment
|
||||
hi def link atlasInclude Include
|
||||
hi def link atlasDefine Macro
|
||||
hi def link atlasReserved PreCondit
|
||||
hi def link atlasStorageClass StorageClass
|
||||
hi def link atlasIdentifier NONE
|
||||
hi def link atlasSpecial Special
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "atlas"
|
||||
|
||||
|
||||
+18
-34
@@ -18,18 +18,12 @@
|
||||
" EXTRA_SOURCES.
|
||||
|
||||
" Standard syntax initialization
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Read the Makefile syntax to start with
|
||||
if version < 600
|
||||
source <sfile>:p:h/make.vim
|
||||
else
|
||||
runtime! syntax/make.vim
|
||||
endif
|
||||
runtime! syntax/make.vim
|
||||
|
||||
syn match automakePrimary "^\w\+\(_PROGRAMS\|_LIBRARIES\|_LISP\|_PYTHON\|_JAVA\|_SCRIPTS\|_DATA\|_HEADERS\|_MANS\|_TEXINFOS\|_LTLIBRARIES\)\s*\ze+\=="
|
||||
syn match automakePrimary "^TESTS\s*\ze+\=="me=e-1
|
||||
@@ -59,34 +53,24 @@ syn region automakeMakeSString start=+'+ skip=+\\'+ end=+'+ contains=makeIde
|
||||
syn region automakeMakeBString start=+`+ skip=+\\`+ end=+`+ contains=makeIdent,makeSString,makeDString,makeNextLine,automakeSubstitution
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_automake_syntax_inits")
|
||||
if version < 508
|
||||
let did_automake_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink automakePrimary Statement
|
||||
HiLink automakeSecondary Type
|
||||
HiLink automakeExtra Special
|
||||
HiLink automakeOptions Special
|
||||
HiLink automakeClean Special
|
||||
HiLink automakeSubdirs Statement
|
||||
HiLink automakeConditional PreProc
|
||||
HiLink automakeSubst PreProc
|
||||
HiLink automakeComment1 makeComment
|
||||
HiLink automakeComment2 makeComment
|
||||
HiLink automakeMakeError makeError
|
||||
HiLink automakeBadSubst makeError
|
||||
HiLink automakeMakeDString makeDString
|
||||
HiLink automakeMakeSString makeSString
|
||||
HiLink automakeMakeBString makeBString
|
||||
hi def link automakePrimary Statement
|
||||
hi def link automakeSecondary Type
|
||||
hi def link automakeExtra Special
|
||||
hi def link automakeOptions Special
|
||||
hi def link automakeClean Special
|
||||
hi def link automakeSubdirs Statement
|
||||
hi def link automakeConditional PreProc
|
||||
hi def link automakeSubst PreProc
|
||||
hi def link automakeComment1 makeComment
|
||||
hi def link automakeComment2 makeComment
|
||||
hi def link automakeMakeError makeError
|
||||
hi def link automakeBadSubst makeError
|
||||
hi def link automakeMakeDString makeDString
|
||||
hi def link automakeMakeSString makeSString
|
||||
hi def link automakeMakeBString makeBString
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "automake"
|
||||
|
||||
|
||||
+14
-27
@@ -11,11 +11,8 @@
|
||||
" I use some technologies to automatically load avenue scripts
|
||||
" into ArcView.
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -59,34 +56,24 @@ syn match aveTypos "=="
|
||||
syn match aveTypos "!="
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting+yet
|
||||
if version >= 508 || !exists("did_ave_syn_inits")
|
||||
if version < 508
|
||||
let did_ave_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting+yet
|
||||
|
||||
HiLink aveStatement Statement
|
||||
hi def link aveStatement Statement
|
||||
|
||||
HiLink aveString String
|
||||
HiLink aveNumber Number
|
||||
hi def link aveString String
|
||||
hi def link aveNumber Number
|
||||
|
||||
HiLink aveFixVariables Special
|
||||
HiLink aveVariables Identifier
|
||||
HiLink globalVariables Special
|
||||
HiLink aveConst Special
|
||||
hi def link aveFixVariables Special
|
||||
hi def link aveVariables Identifier
|
||||
hi def link globalVariables Special
|
||||
hi def link aveConst Special
|
||||
|
||||
HiLink aveClassMethods Function
|
||||
hi def link aveClassMethods Function
|
||||
|
||||
HiLink aveOperator Operator
|
||||
HiLink aveComment Comment
|
||||
hi def link aveOperator Operator
|
||||
hi def link aveComment Comment
|
||||
|
||||
HiLink aveTypos Error
|
||||
hi def link aveTypos Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "ave"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: awk, nawk, gawk, mawk
|
||||
" Maintainer: Antonio Colombo <azc100@gmail.com>
|
||||
" Last Change: 2016 Jul 15
|
||||
" Last Change: 2016 Sep 05
|
||||
|
||||
" AWK ref. is: Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
|
||||
" The AWK Programming Language, Addison-Wesley, 1988
|
||||
@@ -71,6 +71,10 @@ syn keyword awkVariables ARGC ARGV ARGIND ENVIRON ERRNO FILENAME
|
||||
syn keyword awkVariables FNR NF FUNCTAB NR PROCINFO RLENGTH RSTART
|
||||
syn keyword awkVariables RT SYMTAB
|
||||
|
||||
" Arithmetic operators: +, and - take care of ++, and --
|
||||
syn match awkOperator "+\|-\|\*\|/\|%\|="
|
||||
syn match awkOperator "+=\|-=\|\*=\|/=\|%="
|
||||
syn match awkOperator "\^\|\^="
|
||||
|
||||
" Octal format character.
|
||||
syn match awkSpecialCharacter display contained "\\[0-7]\{1,3\}"
|
||||
@@ -124,11 +128,6 @@ syn case match
|
||||
|
||||
"syn match awkIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
|
||||
|
||||
" Arithmetic operators: +, and - take care of ++, and --
|
||||
syn match awkOperator "+\|-\|\*\|/\|%\|="
|
||||
syn match awkOperator "+=\|-=\|\*=\|/=\|%="
|
||||
syn match awkOperator "^\|^="
|
||||
|
||||
" Comparison expressions.
|
||||
syn match awkExpression "==\|>=\|=>\|<=\|=<\|\!="
|
||||
syn match awkExpression "\~\|\!\~"
|
||||
@@ -167,7 +166,6 @@ syn region awkArray transparent start="\[" end="\]" contains=awkArray,awkArrayE
|
||||
syn sync ccomment awkArray maxlines=10
|
||||
|
||||
" Define the default highlighting.
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link awkConditional Conditional
|
||||
hi def link awkFunction Function
|
||||
hi def link awkRepeat Repeat
|
||||
|
||||
+21
-37
@@ -6,21 +6,14 @@
|
||||
" Comment: Replaced sourcing c.vim file by ada.vim and rename yacc*
|
||||
" in ayacc*
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Read the Ada syntax to start with
|
||||
if version < 600
|
||||
so <sfile>:p:h/ada.vim
|
||||
else
|
||||
runtime! syntax/ada.vim
|
||||
unlet b:current_syntax
|
||||
endif
|
||||
runtime! syntax/ada.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
@@ -54,35 +47,26 @@ syn match ayaccSep "^[ \t]*%}"
|
||||
syn match ayaccCurlyError "[{}]"
|
||||
syn region ayaccAction matchgroup=ayaccCurly start="{" end="}" contains=ALLBUT,@ayaccActionGroup
|
||||
|
||||
if version >= 508 || !exists("did_ayacc_syntax_inits")
|
||||
if version < 508
|
||||
let did_ayacc_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" Internal ayacc highlighting links
|
||||
HiLink ayaccBrkt ayaccStmt
|
||||
HiLink ayaccKey ayaccStmt
|
||||
HiLink ayaccOper ayaccStmt
|
||||
HiLink ayaccUnionStart ayaccKey
|
||||
" Internal ayacc highlighting links
|
||||
hi def link ayaccBrkt ayaccStmt
|
||||
hi def link ayaccKey ayaccStmt
|
||||
hi def link ayaccOper ayaccStmt
|
||||
hi def link ayaccUnionStart ayaccKey
|
||||
|
||||
" External ayacc highlighting links
|
||||
HiLink ayaccCurly Delimiter
|
||||
HiLink ayaccCurlyError Error
|
||||
HiLink ayaccDefinition Function
|
||||
HiLink ayaccDelim Function
|
||||
HiLink ayaccKeyActn Special
|
||||
HiLink ayaccSectionSep Todo
|
||||
HiLink ayaccSep Delimiter
|
||||
HiLink ayaccStmt Statement
|
||||
HiLink ayaccType Type
|
||||
" External ayacc highlighting links
|
||||
hi def link ayaccCurly Delimiter
|
||||
hi def link ayaccCurlyError Error
|
||||
hi def link ayaccDefinition Function
|
||||
hi def link ayaccDelim Function
|
||||
hi def link ayaccKeyActn Special
|
||||
hi def link ayaccSectionSep Todo
|
||||
hi def link ayaccSep Delimiter
|
||||
hi def link ayaccStmt Statement
|
||||
hi def link ayaccType Type
|
||||
|
||||
" since Bram doesn't like my Delimiter :|
|
||||
HiLink Delimiter Type
|
||||
delcommand HiLink
|
||||
endif
|
||||
" since Bram doesn't like my Delimiter :|
|
||||
hi def link Delimiter Type
|
||||
|
||||
let b:current_syntax = "ayacc"
|
||||
|
||||
|
||||
+42
-55
@@ -5,11 +5,8 @@
|
||||
" LastChange: 8 Dec 2007
|
||||
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -69,58 +66,48 @@ syn region bPreProc start="^\s*#\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error
|
||||
syn sync ccomment bComment minlines=10
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
if version >= 508 || !exists("did_b_syntax_inits")
|
||||
if version < 508
|
||||
let did_b_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
HiLink bLabel Label
|
||||
HiLink bUserLabel Label
|
||||
HiLink bConditional Conditional
|
||||
HiLink bRepeat Repeat
|
||||
HiLink bLogic Special
|
||||
HiLink bCharacter Character
|
||||
HiLink bSpecialCharacter bSpecial
|
||||
HiLink bNumber Number
|
||||
HiLink bFloat Float
|
||||
HiLink bOctalError bError
|
||||
HiLink bParenError bError
|
||||
" HiLink bInParen bError
|
||||
HiLink bCommentError bError
|
||||
HiLink bBoolean Identifier
|
||||
HiLink bConstant Identifier
|
||||
HiLink bGuard Identifier
|
||||
HiLink bOperator Operator
|
||||
HiLink bKeywords Operator
|
||||
HiLink bOps Identifier
|
||||
HiLink bStructure Structure
|
||||
HiLink bStorageClass StorageClass
|
||||
HiLink bInclude Include
|
||||
HiLink bPreProc PreProc
|
||||
HiLink bDefine Macro
|
||||
HiLink bIncluded bString
|
||||
HiLink bError Error
|
||||
HiLink bStatement Statement
|
||||
HiLink bPreCondit PreCondit
|
||||
HiLink bType Type
|
||||
HiLink bCommentError bError
|
||||
HiLink bCommentString bString
|
||||
HiLink bComment2String bString
|
||||
HiLink bCommentSkip bComment
|
||||
HiLink bString String
|
||||
HiLink bComment Comment
|
||||
HiLink bSpecial SpecialChar
|
||||
HiLink bTodo Todo
|
||||
"hi link bIdentifier Identifier
|
||||
delcommand HiLink
|
||||
endif
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
hi def link bLabel Label
|
||||
hi def link bUserLabel Label
|
||||
hi def link bConditional Conditional
|
||||
hi def link bRepeat Repeat
|
||||
hi def link bLogic Special
|
||||
hi def link bCharacter Character
|
||||
hi def link bSpecialCharacter bSpecial
|
||||
hi def link bNumber Number
|
||||
hi def link bFloat Float
|
||||
hi def link bOctalError bError
|
||||
hi def link bParenError bError
|
||||
" hi def link bInParen bError
|
||||
hi def link bCommentError bError
|
||||
hi def link bBoolean Identifier
|
||||
hi def link bConstant Identifier
|
||||
hi def link bGuard Identifier
|
||||
hi def link bOperator Operator
|
||||
hi def link bKeywords Operator
|
||||
hi def link bOps Identifier
|
||||
hi def link bStructure Structure
|
||||
hi def link bStorageClass StorageClass
|
||||
hi def link bInclude Include
|
||||
hi def link bPreProc PreProc
|
||||
hi def link bDefine Macro
|
||||
hi def link bIncluded bString
|
||||
hi def link bError Error
|
||||
hi def link bStatement Statement
|
||||
hi def link bPreCondit PreCondit
|
||||
hi def link bType Type
|
||||
hi def link bCommentError bError
|
||||
hi def link bCommentString bString
|
||||
hi def link bComment2String bString
|
||||
hi def link bCommentSkip bComment
|
||||
hi def link bString String
|
||||
hi def link bComment Comment
|
||||
hi def link bSpecial SpecialChar
|
||||
hi def link bTodo Todo
|
||||
"hi link bIdentifier Identifier
|
||||
|
||||
let b:current_syntax = "b"
|
||||
|
||||
|
||||
+24
-41
@@ -4,15 +4,8 @@
|
||||
" Originally owned by: Erwin Smit / Her van de Vliert
|
||||
" Last change: v1.17 2006/04/26 10:40:18
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
"
|
||||
if version < 600
|
||||
syntax clear
|
||||
if exists("baan_fold")
|
||||
unlet baan_fold
|
||||
endif
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -1894,40 +1887,30 @@ syn keyword baanBshell bclm.productidlicensed
|
||||
syn keyword baanBshell bclm.set.desktop
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_baan_syn_inits")
|
||||
if version < 508
|
||||
let did_baan_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink baanConditional Conditional
|
||||
HiLink baan3gl Statement
|
||||
HiLink baan3glpre PreProc
|
||||
HiLink baan4gl Statement
|
||||
HiLink baan4glh Statement
|
||||
HiLink baansql Statement
|
||||
HiLink baansqlh Statement
|
||||
HiLink baanDalHook Statement
|
||||
HiLink baanNumber Number
|
||||
HiLink baanString String
|
||||
HiLink baanOpenStringError Error
|
||||
HiLink baanConstant Constant
|
||||
HiLink baanComment Comment
|
||||
HiLink baanCommenth Comment
|
||||
HiLink baanUncommented Comment
|
||||
HiLink baanDLLUsage Comment
|
||||
HiLink baanFunUsage Comment
|
||||
HiLink baanIdentifier Normal
|
||||
HiLink baanBshell Function
|
||||
HiLink baanType Type
|
||||
HiLink baanStorageClass StorageClass
|
||||
hi def link baanConditional Conditional
|
||||
hi def link baan3gl Statement
|
||||
hi def link baan3glpre PreProc
|
||||
hi def link baan4gl Statement
|
||||
hi def link baan4glh Statement
|
||||
hi def link baansql Statement
|
||||
hi def link baansqlh Statement
|
||||
hi def link baanDalHook Statement
|
||||
hi def link baanNumber Number
|
||||
hi def link baanString String
|
||||
hi def link baanOpenStringError Error
|
||||
hi def link baanConstant Constant
|
||||
hi def link baanComment Comment
|
||||
hi def link baanCommenth Comment
|
||||
hi def link baanUncommented Comment
|
||||
hi def link baanDLLUsage Comment
|
||||
hi def link baanFunUsage Comment
|
||||
hi def link baanIdentifier Normal
|
||||
hi def link baanBshell Function
|
||||
hi def link baanType Type
|
||||
hi def link baanStorageClass StorageClass
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "baan"
|
||||
|
||||
|
||||
+18
-31
@@ -8,11 +8,8 @@
|
||||
" This syntax file not a complete implementation yet. Send suggestions to the
|
||||
" maintainer.
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -143,34 +140,24 @@ syn match basicFilenumber "#\d\+"
|
||||
syn match basicMathsOperator "-\|=\|[:<>+\*^/\\]\|AND\|OR"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_basic_syntax_inits")
|
||||
if version < 508
|
||||
let did_basic_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink basicLabel Label
|
||||
HiLink basicConditional Conditional
|
||||
HiLink basicRepeat Repeat
|
||||
HiLink basicLineNumber Comment
|
||||
HiLink basicNumber Number
|
||||
HiLink basicError Error
|
||||
HiLink basicStatement Statement
|
||||
HiLink basicString String
|
||||
HiLink basicComment Comment
|
||||
HiLink basicSpecial Special
|
||||
HiLink basicTodo Todo
|
||||
HiLink basicFunction Identifier
|
||||
HiLink basicTypeSpecifier Type
|
||||
HiLink basicFilenumber basicTypeSpecifier
|
||||
"hi basicMathsOperator term=bold cterm=bold gui=bold
|
||||
hi def link basicLabel Label
|
||||
hi def link basicConditional Conditional
|
||||
hi def link basicRepeat Repeat
|
||||
hi def link basicLineNumber Comment
|
||||
hi def link basicNumber Number
|
||||
hi def link basicError Error
|
||||
hi def link basicStatement Statement
|
||||
hi def link basicString String
|
||||
hi def link basicComment Comment
|
||||
hi def link basicSpecial Special
|
||||
hi def link basicTodo Todo
|
||||
hi def link basicFunction Identifier
|
||||
hi def link basicTypeSpecifier Type
|
||||
hi def link basicFilenumber basicTypeSpecifier
|
||||
"hi basicMathsOperator term=bold cterm=bold gui=bold
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "basic"
|
||||
|
||||
|
||||
+11
-24
@@ -5,11 +5,8 @@
|
||||
" (Dominique Pelle added @Spell)
|
||||
" Available on: www.gjh.sk/~vlado/bc.vim
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -53,27 +50,17 @@ syn match bcParenError ")"
|
||||
syn case match
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_bc_syntax_inits")
|
||||
if version < 508
|
||||
let did_bc_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink bcKeyword Statement
|
||||
HiLink bcType Type
|
||||
HiLink bcConstant Constant
|
||||
HiLink bcNumber Number
|
||||
HiLink bcComment Comment
|
||||
HiLink bcString String
|
||||
HiLink bcSpecialChar SpecialChar
|
||||
HiLink bcParenError Error
|
||||
hi def link bcKeyword Statement
|
||||
hi def link bcType Type
|
||||
hi def link bcConstant Constant
|
||||
hi def link bcNumber Number
|
||||
hi def link bcComment Comment
|
||||
hi def link bcString String
|
||||
hi def link bcSpecialChar SpecialChar
|
||||
hi def link bcParenError Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "bc"
|
||||
" vim: ts=8
|
||||
|
||||
+13
-29
@@ -8,11 +8,8 @@
|
||||
|
||||
" Initialization
|
||||
" ==============
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -91,11 +88,7 @@ syn region bibField contained start="\S\+\s*=\s*" end=/[}),]/me=e-1 contains=bib
|
||||
syn region bibEntryData contained start=/[{(]/ms=e+1 end=/[})]/me=e-1 contains=bibKey,bibField
|
||||
" Actually, 5.8 <= Vim < 6.0 would ignore the `fold' keyword anyway, but Vim<5.8 would produce
|
||||
" an error, so we explicitly distinguish versions with and without folding functionality:
|
||||
if version < 600
|
||||
syn region bibEntry start=/@\S\+\s*[{(]/ end=/^\s*[})]/ transparent contains=bibType,bibEntryData nextgroup=bibComment
|
||||
else
|
||||
syn region bibEntry start=/@\S\+\s*[{(]/ end=/^\s*[})]/ transparent fold contains=bibType,bibEntryData nextgroup=bibComment
|
||||
endif
|
||||
syn region bibEntry start=/@\S\+\s*[{(]/ end=/^\s*[})]/ transparent fold contains=bibType,bibEntryData nextgroup=bibComment
|
||||
syn region bibComment2 start=/@Comment\s*[{(]/ end=/^\s*[})]/me=e-1 contains=@bibCommentContents nextgroup=bibEntry
|
||||
|
||||
" Synchronization
|
||||
@@ -107,25 +100,16 @@ syn sync minlines=50
|
||||
" Highlighting defaults
|
||||
" =====================
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_bib_syn_inits")
|
||||
if version < 508
|
||||
let did_bib_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
HiLink bibType Identifier
|
||||
HiLink bibEntryKw Statement
|
||||
HiLink bibNSEntryKw PreProc
|
||||
HiLink bibKey Special
|
||||
HiLink bibVariable Constant
|
||||
HiLink bibUnescapedSpecial Error
|
||||
HiLink bibComment Comment
|
||||
HiLink bibComment2 Comment
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
hi def link bibType Identifier
|
||||
hi def link bibEntryKw Statement
|
||||
hi def link bibNSEntryKw PreProc
|
||||
hi def link bibKey Special
|
||||
hi def link bibVariable Constant
|
||||
hi def link bibUnescapedSpecial Error
|
||||
hi def link bibComment Comment
|
||||
hi def link bibComment2 Comment
|
||||
|
||||
let b:current_syntax = "bib"
|
||||
|
||||
|
||||
+24
-37
@@ -9,11 +9,8 @@
|
||||
"
|
||||
" $Id: bindzone.vim 12 2011-07-16 21:09:57Z julian $
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -70,40 +67,30 @@ syn region zoneParen contained start="(" end=")" contains=zoneSerial,
|
||||
syn match zoneComment /;.*/
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_bind_zone_syn_inits")
|
||||
if version < 508
|
||||
let did_bind_zone_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink zoneDirective Macro
|
||||
|
||||
HiLink zoneUnknown Error
|
||||
|
||||
HiLink zoneOrigin Statement
|
||||
HiLink zoneOwnerName Statement
|
||||
HiLink zoneDomain Identifier
|
||||
|
||||
HiLink zoneSpecial Special
|
||||
HiLink zoneTTL Constant
|
||||
HiLink zoneClass Include
|
||||
HiLink zoneRRType Type
|
||||
|
||||
HiLink zoneIPAddr Number
|
||||
HiLink zoneIP6Addr Number
|
||||
HiLink zoneText String
|
||||
HiLink zoneNumber Number
|
||||
HiLink zoneSerial Special
|
||||
|
||||
HiLink zoneErrParen Error
|
||||
HiLink zoneComment Comment
|
||||
hi def link zoneDirective Macro
|
||||
|
||||
hi def link zoneUnknown Error
|
||||
|
||||
hi def link zoneOrigin Statement
|
||||
hi def link zoneOwnerName Statement
|
||||
hi def link zoneDomain Identifier
|
||||
|
||||
hi def link zoneSpecial Special
|
||||
hi def link zoneTTL Constant
|
||||
hi def link zoneClass Include
|
||||
hi def link zoneRRType Type
|
||||
|
||||
hi def link zoneIPAddr Number
|
||||
hi def link zoneIP6Addr Number
|
||||
hi def link zoneText String
|
||||
hi def link zoneNumber Number
|
||||
hi def link zoneSerial Special
|
||||
|
||||
hi def link zoneErrParen Error
|
||||
hi def link zoneComment Comment
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "bindzone"
|
||||
|
||||
|
||||
@@ -3,11 +3,8 @@
|
||||
" Maintainer: Rafal M. Sulejman <unefunge@friko2.onet.pl>
|
||||
" Last change: 2011 Dec 28 by Thilo Six
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -28,22 +25,12 @@ syn match blankNumber "\[[0-9]\+\]"
|
||||
syn case match
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_blank_syntax_inits")
|
||||
if version < 508
|
||||
let did_blank_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink blankInstruction Statement
|
||||
HiLink blankNumber Number
|
||||
HiLink blankString String
|
||||
hi def link blankInstruction Statement
|
||||
hi def link blankNumber Number
|
||||
hi def link blankString String
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "blank"
|
||||
|
||||
|
||||
+13
-32
@@ -4,21 +4,12 @@
|
||||
" Filenames: *.bst
|
||||
" $Id: bst.vim,v 1.2 2007/05/05 18:24:42 vimboss Exp $
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
if version < 600
|
||||
command -nargs=1 SetIsk set iskeyword=<args>
|
||||
else
|
||||
command -nargs=1 SetIsk setlocal iskeyword=<args>
|
||||
endif
|
||||
SetIsk 48-57,#,$,',.,A-Z,a-z
|
||||
delcommand SetIsk
|
||||
setlocal iskeyword=48-57,#,$,',.,A-Z,a-z
|
||||
|
||||
syn case ignore
|
||||
|
||||
@@ -62,27 +53,17 @@ syn keyword bstField title type
|
||||
syn keyword bstField volume year
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_bst_syn_inits")
|
||||
if version < 508
|
||||
let did_bst_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink bstComment Comment
|
||||
HiLink bstString String
|
||||
HiLink bstCommand PreProc
|
||||
HiLink bstBuiltIn Statement
|
||||
HiLink bstField Special
|
||||
HiLink bstNumber Number
|
||||
HiLink bstType Type
|
||||
HiLink bstIdentifier Identifier
|
||||
HiLink bstError Error
|
||||
delcommand HiLink
|
||||
endif
|
||||
hi def link bstComment Comment
|
||||
hi def link bstString String
|
||||
hi def link bstCommand PreProc
|
||||
hi def link bstBuiltIn Statement
|
||||
hi def link bstField Special
|
||||
hi def link bstNumber Number
|
||||
hi def link bstType Type
|
||||
hi def link bstIdentifier Identifier
|
||||
hi def link bstError Error
|
||||
|
||||
let b:current_syntax = "bst"
|
||||
|
||||
|
||||
+28
-41
@@ -11,11 +11,8 @@
|
||||
"//- After unary operators like "defined" can assume token type.
|
||||
"// Should there be more of these?
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -184,45 +181,35 @@ syn keyword btmCommand unlock unset ver verify vol
|
||||
syn keyword btmCommand vscrput y
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_btm_syntax_inits")
|
||||
if version < 508
|
||||
let did_btm_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
HiLink btmLabel Special
|
||||
HiLink btmLabelMark Special
|
||||
HiLink btmCmdDivider Special
|
||||
HiLink btmConditional btmStatement
|
||||
HiLink btmDotBoolOp btmStatement
|
||||
HiLink btmRepeat btmStatement
|
||||
HiLink btmEchoCommand btmStatement
|
||||
HiLink btmEchoParam btmStatement
|
||||
HiLink btmStatement Statement
|
||||
HiLink btmTodo Todo
|
||||
HiLink btmString String
|
||||
HiLink btmNumber Number
|
||||
HiLink btmComment Comment
|
||||
HiLink btmArgument Identifier
|
||||
HiLink btmVariable Identifier
|
||||
HiLink btmEcho String
|
||||
HiLink btmBIFMatch btmStatement
|
||||
HiLink btmBuiltInFunc btmStatement
|
||||
HiLink btmBuiltInVar btmStatement
|
||||
HiLink btmSpecialVar btmStatement
|
||||
HiLink btmCommand btmStatement
|
||||
hi def link btmLabel Special
|
||||
hi def link btmLabelMark Special
|
||||
hi def link btmCmdDivider Special
|
||||
hi def link btmConditional btmStatement
|
||||
hi def link btmDotBoolOp btmStatement
|
||||
hi def link btmRepeat btmStatement
|
||||
hi def link btmEchoCommand btmStatement
|
||||
hi def link btmEchoParam btmStatement
|
||||
hi def link btmStatement Statement
|
||||
hi def link btmTodo Todo
|
||||
hi def link btmString String
|
||||
hi def link btmNumber Number
|
||||
hi def link btmComment Comment
|
||||
hi def link btmArgument Identifier
|
||||
hi def link btmVariable Identifier
|
||||
hi def link btmEcho String
|
||||
hi def link btmBIFMatch btmStatement
|
||||
hi def link btmBuiltInFunc btmStatement
|
||||
hi def link btmBuiltInVar btmStatement
|
||||
hi def link btmSpecialVar btmStatement
|
||||
hi def link btmCommand btmStatement
|
||||
|
||||
"optional highlighting
|
||||
"HiLink btmShowTab Error
|
||||
"HiLink btmShowTabc Error
|
||||
"hiLink btmIdentifier Identifier
|
||||
"optional highlighting
|
||||
"hi def link btmShowTab Error
|
||||
"hi def link btmShowTabc Error
|
||||
"hi def link btmIdentifier Identifier
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "btm"
|
||||
|
||||
|
||||
+9
-22
@@ -11,11 +11,8 @@
|
||||
" Gioele Barabucci
|
||||
" for idea of diff highlighting
|
||||
|
||||
" For version 5.x: Clear all syntax items.
|
||||
" For version 6.x: Quit when a syntax file was already loaded.
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded.
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -40,24 +37,14 @@ syn sync clear
|
||||
syn sync match bzrSync grouphere bzrRegion "^-\{14} This line and the following will be ignored -\{14}$"me=s-1
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already.
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet.
|
||||
if version >= 508 || !exists("did_bzr_syn_inits")
|
||||
if version <= 508
|
||||
let did_bzr_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet.
|
||||
|
||||
HiLink bzrRemoved Constant
|
||||
HiLink bzrAdded Identifier
|
||||
HiLink bzrModified Special
|
||||
HiLink bzrRenamed Special
|
||||
HiLink bzrUnchanged Special
|
||||
HiLink bzrUnknown Special
|
||||
hi def link bzrRemoved Constant
|
||||
hi def link bzrAdded Identifier
|
||||
hi def link bzrModified Special
|
||||
hi def link bzrRenamed Special
|
||||
hi def link bzrUnchanged Special
|
||||
hi def link bzrUnknown Special
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "bzr"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user