code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
" Vim compiler file
" Compiler: onsgmls
" Maintainer: Robert Rowsome <rowsome@wam.umd.edu>
" Last Change: 2004 Mar 27
if exists("current_compiler")
finish
endif
let current_compiler = "onsgmls"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
CompilerSet makeprg=onsgmls\ -s\ %
CompilerSet errorformat=onsgmls:%f:%l:%c:%t:%m,
\onsgmls:%f:%l:%c:%m
let &cpo = s:cpo_save
unlet s:cpo_save
| zyz2011-vim | runtime/compiler/onsgmls.vim | Vim Script | gpl2 | 503 |
" Vim compiler file
" Compiler: xmllint
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/xmllint.vim
" Last Change: 2004 Nov 27
if exists("current_compiler")
finish
endif
let current_compiler = "xmllint"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
CompilerSet makeprg=xmllint\ --valid\ --noout\
CompilerSet errorformat=%E%f:%l:\ error:\ %m,
\%W%f:%l:\ warning:\ %m,
\%E%f:%l:\ validity\ error:\ %m,
\%W%f:%l:\ validity\ warning:\ %m,
\%-Z%p^,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
| zyz2011-vim | runtime/compiler/xmllint.vim | Vim Script | gpl2 | 708 |
"------------------------------------------------------------------------------
" Description: Vim Ada/Dec Ada compiler file
" Language: Ada (Dec Ada)
" $Id: decada.vim 887 2008-07-08 14:29:01Z krischik $
" Copyright: Copyright (C) 2006 Martin Krischik
" Maintainer: Martin Krischik <krischik@users.sourceforge.net>
" $Author: krischik $
" $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
" Version: 4.6
" $Revision: 887 $
" $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/decada.vim $
" History: 21.07.2006 MK New Dec Ada
" 15.10.2006 MK Bram's suggestion for runtime integration
" 08.09.2006 MK Correct double load protection.
" Help Page: compiler-decada
"------------------------------------------------------------------------------
if (exists("current_compiler") && current_compiler == "decada") || version < 700
finish
endif
let s:keepcpo= &cpo
set cpo&vim
let current_compiler = "decada"
if !exists("g:decada")
let g:decada = decada#New ()
call ada#Map_Menu (
\'Dec Ada.Build',
\'<F7>',
\'call decada.Make ()')
call g:decada.Set_Session ()
endif
if exists(":CompilerSet") != 2
"
" plugin loaded by other means then the "compiler" command
"
command -nargs=* CompilerSet setlocal <args>
endif
execute "CompilerSet makeprg=" . escape (g:decada.Make_Command, ' ')
execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ')
let &cpo = s:keepcpo
unlet s:keepcpo
finish " 1}}}
"------------------------------------------------------------------------------
" Copyright (C) 2006 Martin Krischik
"
" Vim is Charityware - see ":help license" or uganda.txt for licence details.
"------------------------------------------------------------------------------
" vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
" vim: foldmethod=marker
| zyz2011-vim | runtime/compiler/decada.vim | Vim Script | gpl2 | 1,946 |
" Vim compiler file
" Language: Test::Unit - Ruby Unit Testing Framework
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2008 Aug 1
" URL: http://vim-ruby.rubyforge.org
" Anon CVS: See above site
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
if exists("current_compiler")
finish
endif
let current_compiler = "rubyunit"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
CompilerSet makeprg=testrb
CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
\%C%m\ [%f:%l]:,
\%E\ %\\+%\\d%\\+)\ Error:,
\%C%m:,
\%C\ \ \ \ %f:%l:%.%#,
\%C%m,
\%Z\ %#,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
| zyz2011-vim | runtime/compiler/rubyunit.vim | Vim Script | gpl2 | 787 |
" Vim compiler file
" Compiler: splint/lclint (C source code checker)
" Maintainer: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
" Splint Home: http://www.splint.org/
" Last Change: 2005 Apr 21
" $Revision: 1.3 $
if exists("current_compiler")
finish
endif
let current_compiler = "splint"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
" adapt this if you want to check more than one file at a time.
" put command line options in .splintrc or ~/.splintrc
CompilerSet makeprg=splint\ %
" Note: when using the new array bounds checking flags: Each warning
" usually has several lines and several references to source code mostly
" within one or two lines (see sample warning below). The easiest way
" not to mess up file name detection and not to jump to all positions is
" to add something like
" -linelen 500 +boundscompacterrormessages
" to your .splintrc and 'set cmdheight=4' or more.
" TODO: reliable way to distinguish file names and constraints.
"
" sample warning (generic):
"
"foo.c:1006:12: Clauses exit with var referencing local storage in one
" case, fresh storage in other case
" foo.c:1003:2: Fresh storage var allocated
"
" sample warning (bounds checking):
"
"bounds.c: (in function updateEnv)
"bounds.c:10:5: Possible out-of-bounds store:
" strcpy(str, tmp)
" Unable to resolve constraint:
" requires maxSet(str @ bounds.c:10:13) >= maxRead(getenv("MYENV") @
" bounds.c:6:9)
" needed to satisfy precondition:
" requires maxSet(str @ bounds.c:10:13) >= maxRead(tmp @ bounds.c:10:18)
" derived from strcpy precondition: requires maxSet(<parameter 1>) >=
" maxRead(<parameter 2>)
" A memory write may write to an address beyond the allocated buffer. (Use
" -boundswrite to inhibit warning)
CompilerSet errorformat=%OLCLint*m,
\%OSplint*m,
\%f(%l\\,%c):\ %m,
\%*[\ ]%f:%l:%c:\ %m,
\%*[\ ]%f:%l:\ %m,
\%*[^\"]\"%f\"%*\\D%l:\ %m,
\\"%f\"%*\\D%l:\ %m,
\%A%f:%l:%c:\ %m,
\%A%f:%l:%m,
\\"%f\"\\,
\\ line\ %l%*\\D%c%*[^\ ]\ %m,
\%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
\%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
\%DMaking\ %*\\a\ in\ %f,
\%C\ %#%m
let &cpo = s:cpo_save
unlet s:cpo_save
| zyz2011-vim | runtime/compiler/splint.vim | Vim Script | gpl2 | 2,269 |
" Vim compiler file
" Language: Ruby
" Function: Syntax check and/or error reporting
" Maintainer: Tim Hammerquist <timh at rubyforge.org>
" Last Change: 2008 Aug 1
" URL: http://vim-ruby.rubyforge.org
" Anon CVS: See above site
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
" ----------------------------------------------------------------------------
"
" Changelog:
" 0.2: script saves and restores 'cpoptions' value to prevent problems with
" line continuations
" 0.1: initial release
"
" Contributors:
" Hugh Sasse <hgs@dmu.ac.uk>
" Doug Kearns <djkea2@gus.gscit.monash.edu.au>
"
" Todo:
" match error type %m
"
" Comments:
" I know this file isn't perfect. If you have any questions, suggestions,
" patches, etc., please don't hesitate to let me know.
"
" This is my first experience with 'errorformat' and compiler plugins and
" I welcome any input from more experienced (or clearer-thinking)
" individuals.
" ----------------------------------------------------------------------------
if exists("current_compiler")
finish
endif
let current_compiler = "ruby"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
" default settings runs script normally
" add '-c' switch to run syntax check only:
"
" CompilerSet makeprg=ruby\ -wc\ $*
"
" or add '-c' at :make command line:
"
" :make -c %<CR>
"
CompilerSet makeprg=ruby\ -w\ $*
CompilerSet errorformat=
\%+E%f:%l:\ parse\ error,
\%W%f:%l:\ warning:\ %m,
\%E%f:%l:in\ %*[^:]:\ %m,
\%E%f:%l:\ %m,
\%-C%\tfrom\ %f:%l:in\ %.%#,
\%-Z%\tfrom\ %f:%l,
\%-Z%p^,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
| zyz2011-vim | runtime/compiler/ruby.vim | Vim Script | gpl2 | 1,769 |
" Vim Compiler File
" Compiler: Jikes
" Maintainer: Dan Sharp <dwsharp at hotmail dot com>
" Last Change: 20 Jan 2009
" URL: http://dwsharp.users.sourceforge.net/vim/compiler
if exists("current_compiler")
finish
endif
let current_compiler = "jikes"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
" Jikes defaults to printing output on stderr
CompilerSet makeprg=jikes\ -Xstdout\ +E\ \"%\"
CompilerSet errorformat=%f:%l:%v:%*\\d:%*\\d:%*\\s%m
| zyz2011-vim | runtime/compiler/jikes.vim | Vim Script | gpl2 | 520 |
" Vim compiler file
" Compiler: GNU C Compiler
" Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2010-10-14
if exists("current_compiler")
finish
endif
let current_compiler = "gcc"
let s:cpo_save = &cpo
set cpo&vim
CompilerSet errorformat=
\%*[^\"]\"%f\"%*\\D%l:%c:\ %m,
\%*[^\"]\"%f\"%*\\D%l:\ %m,
\\"%f\"%*\\D%l:%c:\ %m,
\\"%f\"%*\\D%l:\ %m,
\%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,
\%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
\%f:%l:%c:\ %trror:\ %m,
\%f:%l:%c:\ %tarning:\ %m,
\%f:%l:%c:\ %m,
\%f:%l:\ %trror:\ %m,
\%f:%l:\ %tarning:\ %m,
\%f:%l:\ %m,
\\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
\%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
\%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
\%D%*\\a:\ Entering\ directory\ `%f',
\%X%*\\a:\ Leaving\ directory\ `%f',
\%DMaking\ %*\\a\ in\ %f
if exists('g:compiler_gcc_ignore_unmatched_lines')
CompilerSet errorformat+=%-G%.%#
endif
let &cpo = s:cpo_save
unlet s:cpo_save
| zyz2011-vim | runtime/compiler/gcc.vim | Vim Script | gpl2 | 1,113 |
" Vim compiler file
" Compiler: HTML Tidy
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/tidy.vim
" Last Change: 2004 Nov 27
" NOTE: set 'tidy_compiler_040800' if you are using the 4th August 2000 release
" of HTML Tidy.
if exists("current_compiler")
finish
endif
let current_compiler = "tidy"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
" this is needed to work around a bug in the 04/08/00 release of tidy which
" failed to set the filename if the -quiet option was used
if exists("tidy_compiler_040800")
CompilerSet makeprg=tidy\ -errors\ --gnu-emacs\ yes\ %
else
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
endif
" sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
" sample error: foo.html:9:2: Error: <foobar> is not recognized!
CompilerSet errorformat=%f:%l:%c:\ Error:%m,%f:%l:%c:\ Warning:%m,%-G%.%#
| zyz2011-vim | runtime/compiler/tidy.vim | Vim Script | gpl2 | 1,017 |
" Vim compiler file
" Compiler: SGI IRIX 5.3 cc
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2012 Apr 30
if exists("current_compiler")
finish
endif
let current_compiler = "irix5_c"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet errorformat=\%Ecfe:\ Error:\ %f\\,\ line\ %l:\ %m,
\%Wcfe:\ Warning:\ %n:\ %f\\,\ line\ %l:\ %m,
\%Wcfe:\ Warning\ %n:\ %f\\,\ line\ %l:\ %m,
\%W(%l)\ \ Warning\ %n:\ %m,
\%-Z\ %p^,
\-G\\s%#,
\%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo
| zyz2011-vim | runtime/compiler/irix5_c.vim | Vim Script | gpl2 | 662 |
" Compiler: G95
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.3
" Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3492
" https://bitbucket.org/xuhdev/compiler-g95.vim
" License: Same as Vim
if exists('current_compiler')
finish
endif
let current_compiler = 'g95'
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet errorformat=
\%AIn\ file\ %f:%l,
\%-C%p1,
\%-Z%trror:\ %m,
\%-Z%tarning\ (%n):\ %m,
\%-C%.%#
let &cpo = s:keepcpo
unlet s:keepcpo
| zyz2011-vim | runtime/compiler/g95.vim | Vim Script | gpl2 | 677 |
" Vim compiler file
" Compiler: Compaq Visual Fortran
" Maintainer: Joh.-G. Simon (johann-guenter.simon@linde-le.com)
" Last Change: 11/05/2002
if exists("current_compiler")
finish
endif
let current_compiler = "fortran_cv"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cposet = &cpoptions
set cpoptions-=C
" A workable errorformat for Compaq Visual Fortran
CompilerSet errorformat=
\%E%f(%l)\ :\ Error:%m,
\%W%f(%l)\ :\ Warning:%m,
\%-Z%p%^%.%#,
\%-G%.%#,
" Compiler call
CompilerSet makeprg=df\ /nologo\ /noobj\ /c\ %
" Visual fortran defaults to printing output on stderr
" Adjust option shellpipe accordingly
let &cpoptions = s:cposet
unlet s:cposet
| zyz2011-vim | runtime/compiler/fortran_cv.vim | Vim Script | gpl2 | 747 |
" Vim compiler file
" Language: eRuby
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2008 Aug 1
" URL: http://vim-ruby.rubyforge.org
" Anon CVS: See above site
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
if exists("current_compiler")
finish
endif
let current_compiler = "eruby"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
if exists("eruby_compiler") && eruby_compiler == "eruby"
CompilerSet makeprg=eruby
else
CompilerSet makeprg=erb
endif
CompilerSet errorformat=
\eruby:\ %f:%l:%m,
\%+E%f:%l:\ parse\ error,
\%W%f:%l:\ warning:\ %m,
\%E%f:%l:in\ %*[^:]:\ %m,
\%E%f:%l:\ %m,
\%-C%\tfrom\ %f:%l:in\ %.%#,
\%-Z%\tfrom\ %f:%l,
\%-Z%p^,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
| zyz2011-vim | runtime/compiler/eruby.vim | Vim Script | gpl2 | 907 |
" Compiler: Intel Fortran Compiler
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.1
" Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3497
" https://bitbucket.org/xuhdev/compiler-ifort.vim
" License: Same as Vim
if exists('current_compiler')
finish
endif
let current_compiler = 'ifort'
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet errorformat=
\%A%f(%l):\ %trror\ \#%n:\ %m,
\%A%f(%l):\ %tarning\ \#%n:\ %m,
\%-Z%p^,
\%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo
| zyz2011-vim | runtime/compiler/ifort.vim | Vim Script | gpl2 | 690 |
" Vim Compiler File
" Compiler: xmlwf
" Maintainer: Robert Rowsome <rowsome@wam.umd.edu>
" Last Change: 2004 Mar 27
if exists("current_compiler")
finish
endif
let current_compiler = "xmlwf"
let s:cpo_save = &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet makeprg=xmlwf\ %
CompilerSet errorformat=%f:%l%c:%m
let &cpo = s:cpo_save
unlet s:cpo_save
| zyz2011-vim | runtime/compiler/xmlwf.vim | Vim Script | gpl2 | 454 |
" Vim compiler file
" Compiler: Miscrosoft Visual C
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2005 Nov 30
if exists("current_compiler")
finish
endif
let current_compiler = "msvc"
" The errorformat for MSVC is the default.
CompilerSet errorformat&
CompilerSet makeprg=nmake
| zyz2011-vim | runtime/compiler/msvc.vim | Vim Script | gpl2 | 294 |
" Vim compiler file
" Compiler: Fortran Company/NAGWare F compiler
" URL: http://www.unb.ca/chem/ajit/compiler/fortran_F.vim
" Maintainer: Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/>
" Version: 0.2
" Last Change: 2004 Mar 27
if exists("current_compiler")
finish
endif
let current_compiler = "fortran_F"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cposet=&cpoptions
set cpoptions-=C
CompilerSet errorformat=%trror:\ %f\\,\ line\ %l:%m,
\%tarning:\ %f\\,\ line\ %l:%m,
\%tatal\ Error:\ %f\\,\ line\ %l:%m,
\%-G%.%#
CompilerSet makeprg=F
let &cpoptions=s:cposet
unlet s:cposet
| zyz2011-vim | runtime/compiler/fortran_F.vim | Vim Script | gpl2 | 702 |
" Vim Compiler File
" Compiler: Perl syntax checks (perl -Wc)
" Maintainer: Christian J. Robinson <heptite@gmail.com>
" Last Change: 2006 Aug 13
if exists("current_compiler")
finish
endif
let current_compiler = "perl"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:savecpo = &cpo
set cpo&vim
if exists('g:perl_compiler_force_warnings') && g:perl_compiler_force_warnings == 0
let s:warnopt = 'w'
else
let s:warnopt = 'W'
endif
if getline(1) =~# '-[^ ]*T'
let s:taintopt = 'T'
else
let s:taintopt = ''
endif
exe 'CompilerSet makeprg=perl\ -' . s:warnopt . s:taintopt . 'c\ %'
CompilerSet errorformat=
\%-G%.%#had\ compilation\ errors.,
\%-G%.%#syntax\ OK,
\%m\ at\ %f\ line\ %l.,
\%+A%.%#\ at\ %f\ line\ %l\\,%.%#,
\%+C%.%#
" Explanation:
" %-G%.%#had\ compilation\ errors., - Ignore the obvious.
" %-G%.%#syntax\ OK, - Don't include the 'a-okay' message.
" %m\ at\ %f\ line\ %l., - Most errors...
" %+A%.%#\ at\ %f\ line\ %l\\,%.%#, - As above, including ', near ...'
" %+C%.%# - ... Which can be multi-line.
let &cpo = s:savecpo
unlet s:savecpo
| zyz2011-vim | runtime/compiler/perl.vim | Vim Script | gpl2 | 1,209 |
" Vim compiler file
" Compiler: Unit testing tool for Python
" Maintainer: Max Ischenko <mfi@ukr.net>
" Last Change: 2004 Mar 27
if exists("current_compiler")
finish
endif
let current_compiler = "pyunit"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
| zyz2011-vim | runtime/compiler/pyunit.vim | Vim Script | gpl2 | 407 |
" Vim compiler file
" Compiler: SGI IRIX 6.5 MIPSPro C (c89)
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2012 Apr 30
if exists("current_compiler")
finish
endif
let current_compiler = "mipspro_c89"
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%-Z%p%^,
\%+C\ %\\{10}%m%.,
\%+C\ \ %m,
\%-G\\s%#,
\%-G%.%#
let &cpo = s:keepcpo
unlet s:keepcpo
| zyz2011-vim | runtime/compiler/mipspro_c89.vim | Vim Script | gpl2 | 721 |
" Vim compiler file
" Compiler: Apple Project Builder
" Maintainer: Alexander von Below (public@vonBelow.Com)
" Last Change: 2004 Mar 27
if exists("current_compiler")
finish
endif
let current_compiler = "pbx"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
" The compiler actually is gcc, so the errorformat is unchanged
CompilerSet errorformat&
" default make
CompilerSet makeprg=pbxbuild
| zyz2011-vim | runtime/compiler/pbx.vim | Vim Script | gpl2 | 469 |
" Vim compiler file
" Compiler: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" Last Change: 2010 Aug 09
if exists("current_compiler")
finish
endif
let current_compiler = "cucumber"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
CompilerSet makeprg=cucumber
CompilerSet errorformat=
\%W%m\ (Cucumber::Undefined),
\%E%m\ (%.%#),
\%Z%f:%l,
\%Z%f:%l:%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
| zyz2011-vim | runtime/compiler/cucumber.vim | Vim Script | gpl2 | 559 |
" Vim compiler file
" Compiler: TeX
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
" Last Change: 2012 Apr 30
if exists("current_compiler")
finish
endif
let s:keepcpo= &cpo
set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
" If makefile exists and we are not asked to ignore it, we use standard make
" (do not redefine makeprg)
if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
\(!filereadable('Makefile') && !filereadable('makefile'))
" If buffer-local variable 'tex_flavor' exists, it defines TeX flavor,
" otherwize the same for global variable with same name, else it will be
" LaTeX
if exists("b:tex_flavor")
let current_compiler = b:tex_flavor
elseif exists("g:tex_flavor")
let current_compiler = g:tex_flavor
else
let current_compiler = "latex"
endif
let &l:makeprg=current_compiler.' -interaction=nonstopmode'
else
let current_compiler = 'make'
endif
" Value errorformat are taken from vim help, see :help errorformat-LaTeX, with
" addition from Srinath Avadhanula <srinath@fastmail.fm>
CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
\%E!\ %m,
\%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#,
\%+W%.%#\ at\ lines\ %l--%*\\d,
\%WLaTeX\ %.%#Warning:\ %m,
\%Cl.%l\ %m,
\%+C\ \ %m.,
\%+C%.%#-%.%#,
\%+C%.%#[]%.%#,
\%+C[]%.%#,
\%+C%.%#%[{}\\]%.%#,
\%+C<%.%#>%.%#,
\%C\ \ %m,
\%-GSee\ the\ LaTeX%m,
\%-GType\ \ H\ <return>%m,
\%-G\ ...%.%#,
\%-G%.%#\ (C)\ %.%#,
\%-G(see\ the\ transcript%.%#),
\%-G\\s%#,
\%+O(%*[^()])%r,
\%+O%*[^()](%*[^()])%r,
\%+P(%f%r,
\%+P\ %\\=(%f%r,
\%+P%*[^()](%f%r,
\%+P[%\\d%[^()]%#(%f%r,
\%+Q)%r,
\%+Q%*[^()])%r,
\%+Q[%\\d%*[^()])%r
let &cpo = s:keepcpo
unlet s:keepcpo
| zyz2011-vim | runtime/compiler/tex.vim | Vim Script | gpl2 | 1,756 |
" Vim compiler file
" Compiler: se (SmartEiffel Compiler)
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/se.vim
" Last Change: 2004 Nov 27
if exists("current_compiler")
finish
endif
let current_compiler = "se"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
CompilerSet makeprg=compile\ %
CompilerSet errorformat=%W******\ Warning:\ %m,
\%E******\ Fatal\ Error:\ %m,
\%E******\ Error:\ %m,
\%CLine\ %l\ column\ %c\ in\ %\\w%\\+\ (%f)\ :,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
| zyz2011-vim | runtime/compiler/se.vim | Vim Script | gpl2 | 694 |
" Vim compiler file
" Compiler: ATT neato
" Maintainer: Marcos Macedo <bar4ka@bol.com.br>
" Last Change: 2004 May 16
if exists("current_compiler")
finish
endif
let current_compiler = "neato"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet makeprg=neato\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\"
| zyz2011-vim | runtime/compiler/neato.vim | Vim Script | gpl2 | 378 |
" Vim compiler file
" Compiler: Lahey/Fujitsu Fortran 95
" URL: http://www.unb.ca/chem/ajit/compiler/fortran_lf95.vim
" Maintainer: Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/>
" Version: 0.2
" Last Change: 2004 Mar 27
if exists("current_compiler")
finish
endif
let current_compiler = "fortran_lf95"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cposet=&cpoptions
set cpoptions-=C
CompilerSet errorformat=\ %#%n-%t:\ \"%f\"\\,\ line\ %l:%m,
\Error\ LINK\.%n:%m,
\Warning\ LINK\.%n:%m,
\%-G%.%#
CompilerSet makeprg=lf95
let &cpoptions=s:cposet
unlet s:cposet
| zyz2011-vim | runtime/compiler/fortran_lf95.vim | Vim Script | gpl2 | 683 |
" Vim compiler file
" Compiler: Erlang
" Maintainer: Dmitry Vasiliev <dima at hlabs dot org>
" Last Change: 2012-02-13
if exists("current_compiler")
finish
endif
let current_compiler = "erlang"
CompilerSet makeprg=erlc\ -Wall\ %
CompilerSet errorformat=%f:%l:\ %m
| zyz2011-vim | runtime/compiler/erlang.vim | Vim Script | gpl2 | 273 |
.TH shtags 1 "local Utilities"
.SH NAME
shtags \- Create tags for shell scripts
.SH SYNOPSIS
.B shtags
[\fI-mvw\fP] [\fI-t <file>\fP] [\fI-s <shell>\fP] <files>
.SH DESCRIPTION
\fBshtags\fP creates a \fBvi(1)\fP tags file for shell scripts - which
essentially turns your code into a hypertext document. \fBshtags\fP
attempts to create tags for all function and variable definitions,
although this is a little difficult, because in most shell languages,
variables don't need to be explicitly defined, and as such there is
often no distinct "variable definition". If this is the case,
\fBshtags\fP simply creates a tag for the first instance of a variable
which is being set in a simple way, ie: \fIset x = 5\fP.
.SH OPTIONS
.IP "\fB-t <file>\fP"
Name of tags file to create. (default is 'tags')
.IP "\fB-s <shell>\fP"
The name of the shell used by the script(s). By default,
\fBshtags\fP tries to work out which is the appropriate shell for each
file individually by looking at the first line of each file. This wont
work however, if the script starts as a bourne shell script and tries
to be clever about starting the shell it really wants.
.b
Currently supported shells are:
.RS
.IP \fBsh\fP
Bourne Shell
.IP \fBperl\fP
Perl (versions 4 and 5)
.IP \fBksh\fP
Korn Shell
.IP \fBtclsh\fP
The TCL shell
.IP \fBwish\fP
The TK Windowing shell (same as tclsh)
.RE
.IP \fB-v\fP
Include variable definitions (variables mentioned at the start of a line)
.IP \fB-V\fP
Print version information.
.IP \fB-w\fP
Suppress "duplicate tag" warning messages.
.IP \fB-x\fP
Explicitly create a new tags file. Normally new tags are merged with
the old tags file.
.PP
\fBshtags\fP scans the specified files for subroutines and possibly
variable definitions, and creates a \fBvi\fP style tags file.
.SH FILES
.IP \fBtags\fP
A tags file contains a sorted list of tags, one tag per line. The
format is the same as that used by \fBvi\fP(1)
.SH AUTHOR
Stephen Riehm
.br
sr@pc-plus.de
.SH "SEE ALSO"
ctags(1), etags(1), perl(1), tclsh(1), wish(1), sh(1), ksh(1).
| zyz2011-vim | runtime/tools/shtags.1 | Roff Manpage | gpl2 | 2,036 |
#!/bin/sh
#
# ref - Check spelling of the arguments
#
# Usage: ref word ..
#
# can be used for the K command of Vim
#
spell <<EOF
$*
EOF
| zyz2011-vim | runtime/tools/ref | Shell | gpl2 | 137 |
.TH ccfilter 1 "01-Apr-97"
.SH NAME
ccfilter \- a compiler's output filter for vim quickfix
.SH SYNOPSIS
ccfilter [
.B <options>
]
.SH DESCRIPTION
The ccfilter utility "filters" the output of several compilers
and makers (make/gmake) from several platforms (see NOTES below)
to a standardized format which easily fits in vim's quickfix
feature. For further details, see in vim ":help quickfix".
.PP
ccfilter reads
.B 'stdin'
and outputs to
.B 'stdout'
\.
.PP
The need for ccfilter is clear, as some compilers have irregular
and/or multiple line error messages (with the relevant information on
line 2), which makes it impossible for the errorformat to correctly
display them !
When working on different platforms, and with different compilers,
ccfilter eases the utilization of quickfix, due to it's standardized
output, allowing to have in .vimrc a plain
.br
.B \ \ \ \ :set\ errorformat=%f:%l:%c:%t:%m
.SH USAGE
When using ccfilter, one would include the following lines in .vimrc:
.br
.B \ \ \ \ :set shellpipe=\\\\|&ccfilter\\\\>
.br
.B \ \ \ \ :set errorformat=%f:%l:%c:%t:%m
.SH OPTIONS
.TP 16
-c
Decrement column by one. This may be needed, depending on
the compiler being used.
.TP
-r
Decrement row by one. This may be needed, depending on
the compiler being used.
.TP
-v
Verbose (Outputs also invalid lines).
This option makes ccfilter output also the lines that
couldn't be correctly parsed. This is used mostly for
ccfilter debugging.
.TP
-o <COMPILER>
Treat input as <COMPILER>'s output.
Even when configuring ccfilter to assume a default
COMPILER, sometimes it's helpful to be able to specify
the COMPILER used to generate ccfilter's input.
For example, when cross-compiling on a network from a
single machine.
.TP
-h
Shows a brief help, describing the configured default COMPILER
and the valid parameters for COMPILER.
.SH NOTES
Currently, ccfilter accepts output from several compilers, as
described below:
.TP 10
GCC
GCC compiler
.TP
AIX
AIX's C compiler
.TP
ATT
AT&T/NCR's High Performance C Compiler
.TP
IRIX
IRIX's MIPS/MIPSpro C compiler
.TP
SOLARIS
SOLARIS's SparcWorks C compiler
.TP
HPUX
HPUX's C compiler
.SH AUTHOR
.B ccfilter
was developed by
.B Pablo Ariel Kohan
.BR
.B mailto:pablo@memco.co.il
| zyz2011-vim | runtime/tools/ccfilter.1 | Roff Manpage | gpl2 | 2,228 |
#!/usr/bin/env perl
#
# shtags: create a tags file for perl scripts
#
# Author: Stephen Riehm
# Last Changed: 96/11/27 19:46:06
#
# "@(#) shtags 1.1 by S. Riehm"
#
# obvious... :-)
sub usage
{
print <<_EOUSAGE_ ;
USAGE: $program [-kvwVx] [-t <file>] <files>
-t <file> Name of tags file to create. (default is 'tags')
-s <shell> Name of the shell language in the script
-v Include variable definitions.
(variables mentioned at the start of a line)
-V Print version information.
-w Suppress "duplicate tag" warnings.
-x Explicitly create a new tags file. Normally tags are merged.
<files> List of files to scan for tags.
_EOUSAGE_
exit 0
}
sub version
{
#
# Version information
#
@id = split( ', ', 'scripts/bin/shtags, /usr/local/, LOCAL_SCRIPTS, 1.1, 96/11/27, 19:46:06' );
$id[0] =~ s,.*/,,;
print <<_EOVERS;
$id[0]: $id[3]
Last Modified: @id[4,5]
Component: $id[1]
Release: $id[2]
_EOVERS
exit( 1 );
}
#
# initialisations
#
($program = $0) =~ s,.*/,,;
require 'getopts.pl';
#
# parse command line
#
&Getopts( "t:s:vVwx" ) || &usage();
$tags_file = $opt_t || 'tags';
$explicit = $opt_x;
$variable_tags = $opt_v;
$allow_warnings = ! $opt_w;
&version if $opt_V;
&usage() unless @ARGV != 0;
# slurp up the existing tags. Some will be replaced, the ones that aren't
# will be re-written exactly as they were read
if( ! $explicit && open( TAGS, "< $tags_file" ) )
{
while( <TAGS> )
{
/^\S+/;
$tags{$&} = $_;
}
close( TAGS );
}
#
# for each line of every file listed on the command line, look for a
# 'sub' definition, or, if variables are wanted aswell, look for a
# variable definition at the start of a line
#
while( <> )
{
&check_shell($_), ( $old_file = $ARGV ) if $ARGV ne $old_file;
next unless $shell;
if( $shell eq "sh" )
{
next unless /^\s*(((\w+)))\s*\(\s*\)/
|| ( $variable_tags && /^(((\w+)=))/ );
$match = $3;
}
if( $shell eq "ksh" )
{
# ksh
next unless /^\s*function\s+(((\w+)))/
|| ( $variable_tags && /^(((\w+)=))/ );
$match = $3;
}
if( $shell eq "perl" )
{
# perl
next unless /^\s*sub\s+(\w+('|::))?(\w+)/
|| /^\s*(((\w+))):/
|| ( $variable_tags && /^(([(\s]*[\$\@\%]{1}(\w+).*=))/ );
$match = $3;
}
if( $shell eq "tcl" )
{
next unless /^\s*proc\s+(((\S+)))/
|| ( $variable_tags && /^\s*set\s+(((\w+)\s))/ );
$match = $3;
}
chop;
warn "$match - duplicate ignored\n"
if ( $new{$match}++
|| !( $tags{$match} = sprintf( "%s\t%s\t?^%s\$?\n", $match, $ARGV, $_ ) ) )
&& $allow_warnings;
}
# write the new tags to the tags file - note that the whole file is rewritten
open( TAGS, "> $tags_file" );
foreach( sort( keys %tags ) )
{
print TAGS "$tags{$_}";
}
close( TAGS );
sub check_shell
{
local( $_ ) = @_;
# read the first line of a script, and work out which shell it is,
# unless a shell was specified on the command line
#
# This routine can't handle clever scripts which start sh and then
# use sh to start the shell they really wanted.
if( $opt_s )
{
$shell = $opt_s;
}
else
{
$shell = "sh" if /^:$/ || /^#!.*\/bin\/sh/;
$shell = "ksh" if /^#!.*\/ksh/;
$shell = "perl" if /^#!.*\/perl/;
$shell = "tcl" if /^#!.*\/wish/;
printf "Using $shell for $ARGV\n";
}
}
| zyz2011-vim | runtime/tools/shtags.pl | Perl | gpl2 | 3,343 |
#!/usr/bin/env perl
#
# This program works as a filter that reads from stdin, copies to
# stdout *and* creates an error file that can be read by vim.
#
# This program has only been tested on SGI, Irix5.3.
#
# Written by Ives Aerts in 1996. This little program is not guaranteed
# to do (or not do) anything at all and can be freely used for
# whatever purpose you can think of.
$args = @ARGV;
unless ($args == 1) {
die("Usage: vimccparse <output filename>\n");
}
$filename = @ARGV[0];
open (OUT, ">$filename") || die ("Can't open file: \"$filename\"");
while (<STDIN>) {
print;
if ( (/"(.*)", line (\d+): (e)rror\((\d+)\):/)
|| (/"(.*)", line (\d+): (w)arning\((\d+)\):/) ) {
$file=$1;
$line=$2;
$errortype="\u$3";
$errornr=$4;
chop($errormsg=<STDIN>);
$errormsg =~ s/^\s*//;
$sourceline=<STDIN>;
$column=index(<STDIN>, "^") - 1;
print OUT "$file>$line:$column:$errortype:$errornr:$errormsg\n";
}
}
close(OUT);
exit(0);
| zyz2011-vim | runtime/tools/efm_filter.pl | Perl | gpl2 | 978 |
#!/bin/csh
#
# Shell script for use with UNIX
# Starts up Vim with the terminal in 132 column mode
# Only works on VT-100 terminals and lookalikes
# You need to have a termcap entry "vt100-w". Same as vt100 but 132 columns.
#
set oldterm=$term
echo "[?3h"
setenv TERM vt100-w
vim $*
set term=$oldterm
echo "[?3l"
| zyz2011-vim | runtime/tools/vim132 | Tcsh | gpl2 | 315 |
@rem
@rem To use this with Visual Studio .Net
@rem Tools->External Tools...
@rem Add
@rem Title - Vim
@rem Command - d:\files\util\vim_vs_net.cmd
@rem Arguments - +$(CurLine) $(ItemPath)
@rem Init Dir - Empty
@rem
@rem Coutesy of Brian Sturk
@rem
@rem --remote-silent +%1 is a command +954, move ahead 954 lines
@rem --remote-silent %2 full path to file
@rem In Vim
@rem :h --remote-silent for mor details
@rem
@rem --servername VS_NET
@rem This will create a new instance of vim called VS_NET. So if you
open
@rem multiple files from VS, they will use the same instance of Vim.
@rem This allows you to have multiple copies of Vim running, but you can
@rem control which one has VS files in it.
@rem
start /b gvim.exe --servername VS_NET --remote-silent "%1" "%2"
| zyz2011-vim | runtime/tools/vim_vs_net.cmd | Batchfile | gpl2 | 796 |
/*
* An extremely simple program to make the cursor blink in an xterm.
* This is useful when the cursor is hard to spot in a highlighted file.
* Start in the background: "blink&" Stop by killing it.
* Bram Moolenaar 980109 (based on an idea from John Lange).
*/
#include <stdio.h>
main()
{
while (1)
{
printf("\e[?25h");
fflush(stdout);
usleep(400000); /* on time */
printf("\e[?25l");
fflush(stdout);
usleep(250000); /* off time */
}
}
| zyz2011-vim | runtime/tools/blink.c | C | gpl2 | 464 |
/* ======================================================================= */
/* Project : VIM */
/* Module : ccfilter Version: 02.01.01 */
/* File : ccfilter.c */
/* Purpose : Filter gmake/cc output into a standardized form */
/* ======================================================================= */
/* Created On: 12-Sep-95 20:32 */
/* Last modification: 03-Feb-98 */
/* -e option added by Bernd Feige */
/* ======================================================================= */
/* Copyright : */
/* This source file is copyright (c) to Pablo Ariel Kohan */
/* ======================================================================= */
#define __CCFILTER_C__
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#define LINELENGTH 2048
/* Collector(s) */
char Line[LINELENGTH];
char Line2[LINELENGTH];
/* Components */
char FileName[1024];
char BasePath[1024];
char CWD[1024];
unsigned long Row;
unsigned long Col;
char Severity;
char Reason[LINELENGTH];
#define COMPILER_UNKNOWN 0
#define COMPILER_GCC 1
#define COMPILER_AIX 2
#define COMPILER_ATT 3
#define COMPILER_IRIX 4
#define COMPILER_SOLARIS 5
#define COMPILER_HPUX 6
char *COMPILER_Names[][2] =
{
/* Name Description */
{ "N/A", "" },
{ "GCC", "GCC compiler" },
{ "AIX", "AIX's C compiler" },
{ "ATT", "AT&T/NCR's High Performance C Compiler" },
{ "IRIX", "IRIX's MIPS/MIPSpro C compiler" },
{ "SOLARIS", "SOLARIS's SparcWorks C compiler" },
{ "HPUX", "HPUX's C compiler" }
};
#define COMPILER_QTY (sizeof(COMPILER_Names)/sizeof(COMPILER_Names[0]))
#if defined(_GCC)
# define COMPILER_DEFAULT COMPILER_GCC
#elif defined(_AIX)
# define COMPILER_DEFAULT COMPILER_AIX
#elif defined(_ATT)
# define COMPILER_DEFAULT COMPILER_ATT
#elif defined(_IRIX)
# define COMPILER_DEFAULT COMPILER_IRIX
#elif defined(_SOLARIS)
# define COMPILER_DEFAULT COMPILER_SOLARIS
#elif defined(_HPUX)
# define COMPILER_DEFAULT COMPILER_HPUX
#else
# define COMPILER_DEFAULT COMPILER_UNKNOWN
#endif
const char USAGE[] =
"ccfilter v2.1 (c)1994-1997 by Pablo Ariel Kohan\n"
"Filter Out compiler's output, and converts it to fit VIM\n\n"
"Usage:\n"
" ccfilter [<options>]\n"
"Where: <options> is one or more of:\n"
" -c Decrement column by one\n"
" -r Decrement row by one\n"
" -e Echo stdin to stderr\n"
" -v Verbose (Outputs also invalid lines)\n"
" -o <COMPILER> Treat input as <COMPILER>'s output\n"
" Note: COMPILER may be preceded by an _\n"
" -h This usage.\n";
int ShowUsage( char *szError )
{ int i;
fprintf( stderr, USAGE );
fprintf( stderr, "Current default <COMPILER>: %s\n",
COMPILER_Names[COMPILER_DEFAULT][0] );
fprintf( stderr, "Acceptable parameters for <COMPILER> are:\n" );
for (i=1; i < COMPILER_QTY; i++)
fprintf( stderr, " %-15.15s %s\n",
COMPILER_Names[i][0],
COMPILER_Names[i][1] );
fprintf(stderr, szError);
return 0;
}
char *echogets(char *s, int echo) {
char * const retval=fgets(s, LINELENGTH, stdin);
if (echo!=0 && retval!=NULL) {
fputs(retval, stderr);
}
return retval;
}
int main( int argc, char *argv[] )
{ int rv, i, j, ok;
int stay;
int prefetch;
char *p;
int dec_col = 0; /* Decrement column value by 1 */
int dec_row = 0; /* Decrement row value by 1 */
int echo = 0; /* Echo stdin to stderr */
int verbose = 0; /* Include Bad Formatted Lines */
int CWDlen;
int COMPILER = COMPILER_DEFAULT;
getcwd( CWD, sizeof(CWD) );
CWDlen = strlen(CWD);
for (i=1; i<argc; i++)
{
if (argv[i][0] != '-')
return ShowUsage("");
switch ( argv[i][1] )
{
case 'c':
dec_col = 1;
break;
case 'r':
dec_row = 1;
break;
case 'e':
echo = 1;
break;
case 'v':
verbose = 1;
break;
case 'o':
{
if (i+1 >= argc)
return ShowUsage("Error: Missing parameter for -o\n");
i++;
COMPILER = -1;
for (j=1; j<COMPILER_QTY; j++)
if ( (strcmp(argv[i], COMPILER_Names[j][0]) == 0) ||
( (argv[i][0] == '_') &&
(strcmp(&argv[i][1], COMPILER_Names[j][0]) == 0) ) )
COMPILER = j;
if (COMPILER == -1)
return ShowUsage("Error: Invalid COMPILER specified\n");
}
break;
case 'h':
return ShowUsage("");
default:
return ShowUsage("Error: Invalid option\n");
}
}
if (COMPILER == 0)
return ShowUsage("Error: COMPILER must be specified in this system\n");
stay = ( echogets(Line, echo) != NULL );
prefetch = 0;
while( stay )
{
*FileName = 0;
Row = 0;
Col = 0;
Severity = ' ';
*Reason = 0;
ok = 0;
switch (COMPILER)
{
case COMPILER_GCC:
Severity = 'e';
#ifdef GOTO_FROM_WHERE_INCLUDED
rv = sscanf( Line, "In file included from %[^:]:%u:",
FileName, &Row );
if ( rv == 2 )
{
ok = (echogets(Reason, echo) != NULL);
}
else
#endif
{
if ((rv = sscanf( Line, "%[^:]:%u: warning: %[^\n]",
FileName, &Row, Reason ))==3) {
Severity = 'w';
} else {
rv = sscanf( Line, "%[^:]:%u: %[^\n]",
FileName, &Row, Reason );
}
ok = ( rv == 3 );
}
Col = (dec_col ? 1 : 0 );
break;
case COMPILER_AIX:
rv = sscanf( Line, "\"%[^\"]\", line %u.%u: %*s (%c) %[^\n]",
FileName, &Row, &Col, &Severity, Reason );
ok = ( rv == 5 );
break;
case COMPILER_HPUX:
rv = sscanf( Line, "cc: \"%[^\"]\", line %u: %c%*[^:]: %[^\n]",
FileName, &Row, &Severity, Reason );
ok = ( rv == 4 );
Col = (dec_col ? 1 : 0 );
break;
case COMPILER_SOLARIS:
rv = sscanf( Line, "\"%[^\"]\", line %u: warning: %[^\n]",
FileName, &Row, Reason );
Severity = 'w';
ok = ( rv == 3 );
if ( rv != 3 )
{
rv = sscanf( Line, "\"%[^\"]\", line %u: %[^\n]",
FileName, &Row, Reason );
Severity = 'e';
ok = ( rv == 3 );
}
Col = (dec_col ? 1 : 0 );
break;
case COMPILER_ATT:
rv = sscanf( Line, "%c \"%[^\"]\",L%u/C%u%*[^:]:%[^\n]",
&Severity, FileName, &Row, &Col, Reason );
ok = ( rv == 5 );
if (rv != 5)
{ rv = sscanf( Line, "%c \"%[^\"]\",L%u/C%u: %[^\n]",
&Severity, FileName, &Row, &Col, Reason );
ok = ( rv == 5 );
}
if (rv != 5)
{ rv = sscanf( Line, "%c \"%[^\"]\",L%u: %[^\n]",
&Severity, FileName, &Row, Reason );
ok = ( rv == 4 );
Col = (dec_col ? 1 : 0 );
}
stay = (echogets(Line2, echo) != NULL);
while ( stay && (Line2[0] == '|') )
{ for (p=&Line2[2]; (*p) && (isspace(*p)); p++);
strcat( Reason, ": " );
strcat( Reason, p );
Line2[0] = 0;
stay = (echogets(Line2, echo) != NULL);
}
prefetch = 1;
strcpy( Line, Line2 );
break;
case COMPILER_IRIX:
Col = 1;
prefetch = 0;
rv = 0;
ok = 0;
if ( !strncmp(Line, "cfe: ", 5) )
{ p = &Line[5];
Severity = tolower(*p);
p = strchr( &Line[5], ':' );
if (p == NULL)
{ ok = 0;
}
else
{
rv = sscanf( p+2, "%[^:]: %u: %[^\n]",
FileName, &Row, Reason );
if (rv != 3)
rv = sscanf( p+2, "%[^,], line %u: %[^\n]",
FileName, &Row, Reason );
ok = ( rv == 3 );
}
if (ok)
{ prefetch = 1;
stay = (echogets(Line, echo) != NULL);
if (Line[0] == ' ')
stay = (echogets(Line2, echo) != NULL);
if ( (Line2[0] == ' ') &&
( (Line2[1] == '-') || (Line2[1] == '^') ) )
{ Col = strlen(Line2)-1;
prefetch = 0;
}
else
{ strcat( Line, "\n" );
strcat( Line, Line2 );
}
}
}
break;
}
if (dec_col) Col--;
if (dec_row) Row--;
if (!ok)
{
if ( Line[0] == 'g' )
p = &Line[1];
else
p = &Line[0];
ok = sscanf( p, "make[%*d]: Entering directory `%[^']",
BasePath );
if (verbose)
printf( "[%u]?%s\n", ok, Line );
}
else
{
for (p=Reason; (*p) && (isspace(*p)); p++);
if ( BasePath[CWDlen] == 0 )
printf( "%s:%u:%u:%c:%s\n", FileName, Row, Col, Severity, p );
else
{
printf( "%s/%s:%u:%u:%c:%s\n", &BasePath[CWDlen+1], FileName, Row, Col, Severity, p );
}
}
if (!prefetch)
stay = ( echogets(Line, echo) != NULL );
}
return 0;
}
| zyz2011-vim | runtime/tools/ccfilter.c | C | gpl2 | 8,608 |
#!/usr/bin/env perl
# pltags - create a tags file for Perl code, for use by vi(m)
#
# Distributed with Vim <http://www.vim.org/>, latest version always available
# at <http://www.mscha.com/mscha.html?pltags#tools>
#
# Version 2.3, 28 February 2002
#
# Written by Michael Schaap <pltags@mscha.com>. Suggestions for improvement
# are very welcome!
#
# This script will not work with Perl 4 or below!
#
# Revision history:
# 1.0 1997? Original version, quickly hacked together
# 2.0 1999? Completely rewritten, better structured and documented,
# support for variables, packages, Exuberant Ctags extensions
# 2.1 Jun 2000 Fixed critical bug (typo in comment) ;-)
# Support multiple level packages (e.g. Archive::Zip::Member)
# 2.2 Jul 2001 'Glob' wildcards - especially useful under Windows
# (thanks to Serge Sivkov and Jason King)
# Bug fix: reset package name for each file
# 2.21 Jul 2001 Oops... bug in variable detection (/local../ -> /^local.../)
# 2.3 Feb 2002 Support variables declared with "our"
# (thanks to Lutz Mende)
# Complain about undeclared variables
use strict;
# Used modules
use Getopt::Long;
# Options with their defaults
my $do_subs = 1; # --subs, --nosubs include subs in tags file?
my $do_vars = 1; # --vars, --novars include variables in tags file?
my $do_pkgs = 1; # --pkgs, --nopkgs include packages in tags file?
my $do_exts = 1; # --extensions, --noextensions
# include Exuberant Ctags extensions
# Global variables
my $VERSION = "2.21"; # pltags version
my $status = 0; # GetOptions return value
my $file = ""; # File being processed
my @tags = (); # List of produced tags
my $is_pkg = 0; # Are we tagging a package?
my $has_subs = 0; # Has this file any subs yet?
my $package_name = ""; # Name of current package
my $var_continues = 0; # Variable declaration continues on last line
my $line = ""; # Current line in file
my $stmt = ""; # Current Perl statement
my @vars = (); # List of variables in declaration
my $var = ""; # Variable in declaration
my $tagline = ""; # Tag file line
# Create a tag file line and push it on the list of found tags
sub MakeTag($$$$$)
{
my ($tag, # Tag name
$type, # Type of tag
$is_static, # Is this a static tag?
$file, # File in which tag appears
$line) = @_; # Line in which tag appears
my $tagline = ""; # Created tag line
# Only process tag if not empty
if ($tag)
{
# Get rid of \n, and escape / and \ in line
chomp $line;
$line =~ s/\\/\\\\/g;
$line =~ s/\//\\\//g;
# Create a tag line
$tagline = "$tag\t$file\t/^$line\$/";
# If we're told to do so, add extensions
if ($do_exts)
{
$tagline .= ";\"\t$type"
. ($is_static ? "\tfile:" : "")
. ($package_name ? "\tclass:$package_name" : "");
}
# Push it on the stack
push (@tags, $tagline);
}
}
# Parse package name from statement
sub PackageName($)
{
my ($stmt) = @_; # Statement
# Look for the argument to "package". Return it if found, else return ""
if ($stmt =~ /^package\s+([\w:]+)/)
{
my $pkgname = $1;
# Remove any parent package name(s)
$pkgname =~ s/.*://;
return $pkgname;
}
else
{
return "";
}
}
# Parse sub name from statement
sub SubName($)
{
my ($stmt) = @_; # Statement
# Look for the argument to "sub". Return it if found, else return ""
if ($stmt =~ /^sub\s+([\w:]+)/)
{
my $subname = $1;
# Remove any parent package name(s)
$subname =~ s/.*://;
return $subname;
}
else
{
return "";
}
}
# Parse all variable names from statement
sub VarNames($)
{
my ($stmt) = @_;
# Remove my or local from statement, if present
$stmt =~ s/^(my|our|local)\s+//;
# Remove any assignment piece
$stmt =~ s/\s*=.*//;
# Now find all variable names, i.e. "words" preceded by $, @ or %
@vars = ($stmt =~ /[\$\@\%]([\w:]+)\b/g);
# Remove any parent package name(s)
map(s/.*://, @vars);
return (@vars);
}
############### Start ###############
print "\npltags $VERSION by Michael Schaap <mscha\@mscha.com>\n\n";
# Get options
$status = GetOptions("subs!" => \$do_subs,
"vars!" => \$do_vars,
"pkgs!" => \$do_pkgs,
"extensions!" => \$do_exts);
# Usage if error in options or no arguments given
unless ($status && @ARGV)
{
print "\n" unless ($status);
print " Usage: $0 [options] filename ...\n\n";
print " Where options can be:\n";
print " --subs (--nosubs) (don't) include sub declarations in tag file\n";
print " --vars (--novars) (don't) include variable declarations in tag file\n";
print " --pkgs (--nopkgs) (don't) include package declarations in tag file\n";
print " --extensions (--noextensions)\n";
print " (don't) include Exuberant Ctags / Vim style\n";
print " extensions in tag file\n\n";
print " Default options: ";
print ($do_subs ? "--subs " : "--nosubs ");
print ($do_vars ? "--vars " : "--novars ");
print ($do_pkgs ? "--pkgs " : "--nopkgs ");
print ($do_exts ? "--extensions\n\n" : "--noextensions\n\n");
print " Example: $0 *.pl *.pm ../shared/*.pm\n\n";
exit;
}
# Loop through files on command line - 'glob' any wildcards, since Windows
# doesn't do this for us
foreach $file (map { glob } @ARGV)
{
# Skip if this is not a file we can open. Also skip tags files and backup
# files
next unless ((-f $file) && (-r $file) && ($file !~ /tags$/)
&& ($file !~ /~$/));
print "Tagging file $file...\n";
$is_pkg = 0;
$package_name = "";
$has_subs = 0;
$var_continues = 0;
open (IN, $file) or die "Can't open file '$file': $!";
# Loop through file
foreach $line (<IN>)
{
# Statement is line with comments and whitespace trimmed
($stmt = $line) =~ s/#.*//;
$stmt =~ s/^\s*//;
$stmt =~ s/\s*$//;
# Nothing left? Never mind.
next unless ($stmt);
# This is a variable declaration if one was started on the previous
# line, or if this line starts with my or local
if ($var_continues or ($stmt =~/^my\b/)
or ($stmt =~/^our\b/) or ($stmt =~/^local\b/))
{
# The declaration continues if the line does not end with ;
$var_continues = ($stmt !~ /;$/);
# Loop through all variable names in the declaration
foreach $var (VarNames($stmt))
{
# Make a tag for this variable unless we're told not to. We
# assume that a variable is always static, unless it appears
# in a package before any sub. (Not necessarily true, but
# it's ok for most purposes and Vim works fine even if it is
# incorrect)
if ($do_vars)
{
MakeTag($var, "v", (!$is_pkg or $has_subs), $file, $line);
}
}
}
# This is a package declaration if the line starts with package
elsif ($stmt =~/^package\b/)
{
# Get name of the package
$package_name = PackageName($stmt);
if ($package_name)
{
# Remember that we're doing a package
$is_pkg = 1;
# Make a tag for this package unless we're told not to. A
# package is never static.
if ($do_pkgs)
{
MakeTag($package_name, "p", 0, $file, $line);
}
}
}
# This is a sub declaration if the line starts with sub
elsif ($stmt =~/^sub\b/)
{
# Remember that this file has subs
$has_subs = 1;
# Make a tag for this sub unless we're told not to. We assume
# that a sub is static, unless it appears in a package. (Not
# necessarily true, but it's ok for most purposes and Vim works
# fine even if it is incorrect)
if ($do_subs)
{
MakeTag(SubName($stmt), "s", (!$is_pkg), $file, $line);
}
}
}
close (IN);
}
# Do we have any tags? If so, write them to the tags file
if (@tags)
{
# Add some tag file extensions if we're told to
if ($do_exts)
{
push (@tags, "!_TAG_FILE_FORMAT\t2\t/extended format/");
push (@tags, "!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted/");
push (@tags, "!_TAG_PROGRAM_AUTHOR\tMichael Schaap\t/mscha\@mscha.com/");
push (@tags, "!_TAG_PROGRAM_NAME\tpltags\t//");
push (@tags, "!_TAG_PROGRAM_VERSION\t$VERSION\t/supports multiple tags and extended format/");
}
print "\nWriting tags file.\n";
open (OUT, ">tags") or die "Can't open tags file: $!";
foreach $tagline (sort @tags)
{
print OUT "$tagline\n";
}
close (OUT);
}
else
{
print "\nNo tags found.\n";
}
| zyz2011-vim | runtime/tools/pltags.pl | Perl | gpl2 | 8,425 |
" Script to extract tables from Unicode .txt files, to be used in src/mbyte.c.
" The format of the UnicodeData.txt file is explained here:
" http://www.unicode.org/Public/5.1.0/ucd/UCD.html
" For the other files see the header.
"
" Usage: Vim -S <this-file>
"
" Author: Bram Moolenaar
" Last Update: 2010 Jan 12
" Parse lines of UnicodeData.txt. Creates a list of lists in s:dataprops.
func! ParseDataToProps()
let s:dataprops = []
let lnum = 1
while lnum <= line('$')
let l = split(getline(lnum), '\s*;\s*', 1)
if len(l) != 15
echoerr 'Found ' . len(l) . ' items in line ' . lnum . ', expected 15'
return
endif
call add(s:dataprops, l)
let lnum += 1
endwhile
endfunc
" Parse lines of CaseFolding.txt. Creates a list of lists in s:foldprops.
func! ParseFoldProps()
let s:foldprops = []
let lnum = 1
while lnum <= line('$')
let line = getline(lnum)
if line !~ '^#' && line !~ '^\s*$'
let l = split(line, '\s*;\s*', 1)
if len(l) != 4
echoerr 'Found ' . len(l) . ' items in line ' . lnum . ', expected 4'
return
endif
call add(s:foldprops, l)
endif
let lnum += 1
endwhile
endfunc
" Parse lines of EastAsianWidth.txt. Creates a list of lists in s:widthprops.
func! ParseWidthProps()
let s:widthprops = []
let lnum = 1
while lnum <= line('$')
let line = getline(lnum)
if line !~ '^#' && line !~ '^\s*$'
let l = split(line, '\s*;\s*', 1)
if len(l) != 2
echoerr 'Found ' . len(l) . ' items in line ' . lnum . ', expected 2'
return
endif
call add(s:widthprops, l)
endif
let lnum += 1
endwhile
endfunc
" Build the toLower or toUpper table in a new buffer.
" Uses s:dataprops.
func! BuildCaseTable(name, index)
let start = -1
let end = -1
let step = 0
let add = -1
let ranges = []
for p in s:dataprops
if p[a:index] != ''
let n = ('0x' . p[0]) + 0
let nl = ('0x' . p[a:index]) + 0
if start >= 0 && add == nl - n && (step == 0 || n - end == step)
" continue with same range.
let step = n - end
let end = n
else
if start >= 0
" produce previous range
call Range(ranges, start, end, step, add)
endif
let start = n
let end = n
let step = 0
let add = nl - n
endif
endif
endfor
if start >= 0
call Range(ranges, start, end, step, add)
endif
" New buffer to put the result in.
new
exe "file to" . a:name
call setline(1, "static convertStruct to" . a:name . "[] =")
call setline(2, "{")
call append('$', ranges)
call setline('$', getline('$')[:-2]) " remove last comma
call setline(line('$') + 1, "};")
wincmd p
endfunc
" Build the foldCase table in a new buffer.
" Uses s:foldprops.
func! BuildFoldTable()
let start = -1
let end = -1
let step = 0
let add = -1
let ranges = []
for p in s:foldprops
if p[1] == 'C' || p[1] == 'S'
let n = ('0x' . p[0]) + 0
let nl = ('0x' . p[2]) + 0
if start >= 0 && add == nl - n && (step == 0 || n - end == step)
" continue with same range.
let step = n - end
let end = n
else
if start >= 0
" produce previous range
call Range(ranges, start, end, step, add)
endif
let start = n
let end = n
let step = 0
let add = nl - n
endif
endif
endfor
if start >= 0
call Range(ranges, start, end, step, add)
endif
" New buffer to put the result in.
new
file foldCase
call setline(1, "static convertStruct foldCase[] =")
call setline(2, "{")
call append('$', ranges)
call setline('$', getline('$')[:-2]) " remove last comma
call setline(line('$') + 1, "};")
wincmd p
endfunc
func! Range(ranges, start, end, step, add)
let s = printf("\t{0x%x,0x%x,%d,%d},", a:start, a:end, a:step == 0 ? -1 : a:step, a:add)
call add(a:ranges, s)
endfunc
" Build the combining table.
" Uses s:dataprops.
func! BuildCombiningTable()
let start = -1
let end = -1
let ranges = []
for p in s:dataprops
if p[2] == 'Mn' || p[2] == 'Mc' || p[2] == 'Me'
let n = ('0x' . p[0]) + 0
if start >= 0 && end + 1 == n
" continue with same range.
let end = n
else
if start >= 0
" produce previous range
call add(ranges, printf("\t{0x%04x, 0x%04x},", start, end))
endif
let start = n
let end = n
endif
endif
endfor
if start >= 0
call add(ranges, printf("\t{0x%04x, 0x%04x},", start, end))
endif
" New buffer to put the result in.
new
file combining
call setline(1, " static struct interval combining[] =")
call setline(2, " {")
call append('$', ranges)
call setline('$', getline('$')[:-2]) " remove last comma
call setline(line('$') + 1, " };")
wincmd p
endfunc
" Build the double width or ambiguous width table in a new buffer.
" Uses s:widthprops and s:dataprops.
func! BuildWidthTable(pattern, tableName)
let start = -1
let end = -1
let ranges = []
let dataidx = 0
for p in s:widthprops
if p[1][0] =~ a:pattern
if p[0] =~ '\.\.'
" It is a range. we don't check for composing char then.
let rng = split(p[0], '\.\.')
if len(rng) != 2
echoerr "Cannot parse range: '" . p[0] . "' in width table"
endif
let n = ('0x' . rng[0]) + 0
let n_last = ('0x' . rng[1]) + 0
else
let n = ('0x' . p[0]) + 0
let n_last = n
endif
" Find this char in the data table.
while 1
let dn = ('0x' . s:dataprops[dataidx][0]) + 0
if dn >= n
break
endif
let dataidx += 1
endwhile
if dn != n && n_last == n
echoerr "Cannot find character " . n . " in data table"
endif
" Only use the char when it's not a composing char.
" But use all chars from a range.
let dp = s:dataprops[dataidx]
if n_last > n || (dp[2] != 'Mn' && dp[2] != 'Mc' && dp[2] != 'Me')
if start >= 0 && end + 1 == n
" continue with same range.
else
if start >= 0
" produce previous range
call add(ranges, printf("\t{0x%04x, 0x%04x},", start, end))
endif
let start = n
endif
let end = n_last
endif
endif
endfor
if start >= 0
call add(ranges, printf("\t{0x%04x, 0x%04x},", start, end))
endif
" New buffer to put the result in.
new
exe "file " . a:tableName
call setline(1, " static struct interval " . a:tableName . "[] =")
call setline(2, " {")
call append('$', ranges)
call setline('$', getline('$')[:-2]) " remove last comma
call setline(line('$') + 1, " };")
wincmd p
endfunc
" Edit the Unicode text file. Requires the netrw plugin.
edit http://unicode.org/Public/UNIDATA/UnicodeData.txt
" Parse each line, create a list of lists.
call ParseDataToProps()
" Build the toLower table.
call BuildCaseTable("Lower", 13)
" Build the toUpper table.
call BuildCaseTable("Upper", 12)
" Build the ranges of composing chars.
call BuildCombiningTable()
" Edit the case folding text file. Requires the netrw plugin.
edit http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
" Parse each line, create a list of lists.
call ParseFoldProps()
" Build the foldCase table.
call BuildFoldTable()
" Edit the width text file. Requires the netrw plugin.
edit http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt
" Parse each line, create a list of lists.
call ParseWidthProps()
" Build the double width table.
call BuildWidthTable('[WF]', 'doublewidth')
" Build the ambiguous width table.
call BuildWidthTable('A', 'ambiguous')
| zyz2011-vim | runtime/tools/unicode.vim | Vim Script | gpl2 | 7,349 |
/* vi:set ts=8 sts=4 sw=4:
*
* VIM - Vi IMproved by Bram Moolenaar
* X-Windows communication by Flemming Madsen
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*
* Client for sending commands to an '+xcmdsrv' enabled vim.
* This is mostly a de-Vimified version of if_xcmdsrv.c in vim.
* See that file for a protocol specification.
*
* You can make a test program with a Makefile like:
* xcmdsrv_client: xcmdsrv_client.c
* cc -o $@ -g -DMAIN -I/usr/X11R6/include -L/usr/X11R6/lib $< -lX11
*
*/
#include <stdio.h>
#include <string.h>
#ifdef HAVE_SELECT
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#else
#include <sys/poll.h>
#endif
#include <X11/Intrinsic.h>
#include <X11/Xatom.h>
#define __ARGS(x) x
/* Client API */
char * sendToVim __ARGS((Display *dpy, char *name, char *cmd, int asKeys, int *code));
#ifdef MAIN
/* A sample program */
main(int argc, char **argv)
{
char *res;
int code;
if (argc == 4)
{
if ((res = sendToVim(XOpenDisplay(NULL), argv[2], argv[3],
argv[1][0] != 'e', &code)) != NULL)
{
if (code)
printf("Error code returned: %d\n", code);
puts(res);
}
exit(0);
}
else
fprintf(stderr, "Usage: %s {k|e} <server> <command>", argv[0]);
exit(1);
}
#endif
/*
* Maximum size property that can be read at one time by
* this module:
*/
#define MAX_PROP_WORDS 100000
/*
* Forward declarations for procedures defined later in this file:
*/
static int x_error_check __ARGS((Display *dpy, XErrorEvent *error_event));
static int AppendPropCarefully __ARGS((Display *display,
Window window, Atom property, char *value, int length));
static Window LookupName __ARGS((Display *dpy, char *name,
int delete, char **loose));
static int SendInit __ARGS((Display *dpy));
static char *SendEventProc __ARGS((Display *dpy, XEvent *eventPtr,
int expect, int *code));
static int IsSerialName __ARGS((char *name));
/* Private variables */
static Atom registryProperty = None;
static Atom commProperty = None;
static Window commWindow = None;
static int got_x_error = FALSE;
/*
* sendToVim --
* Send to an instance of Vim via the X display.
*
* Results:
* A string with the result or NULL. Caller must free if non-NULL
*/
char *
sendToVim(dpy, name, cmd, asKeys, code)
Display *dpy; /* Where to send. */
char *name; /* Where to send. */
char *cmd; /* What to send. */
int asKeys; /* Interpret as keystrokes or expr ? */
int *code; /* Return code. 0 => OK */
{
Window w;
Atom *plist;
XErrorHandler old_handler;
#define STATIC_SPACE 500
char *property, staticSpace[STATIC_SPACE];
int length;
int res;
static int serial = 0; /* Running count of sent commands.
* Used to give each command a
* different serial number. */
XEvent event;
XPropertyEvent *e = (XPropertyEvent *)&event;
time_t start;
char *result;
char *loosename = NULL;
if (commProperty == None && dpy != NULL)
{
if (SendInit(dpy) < 0)
return NULL;
}
/*
* Bind the server name to a communication window.
*
* Find any survivor with a serialno attached to the name if the
* original registrant of the wanted name is no longer present.
*
* Delete any lingering names from dead editors.
*/
old_handler = XSetErrorHandler(x_error_check);
while (TRUE)
{
got_x_error = FALSE;
w = LookupName(dpy, name, 0, &loosename);
/* Check that the window is hot */
if (w != None)
{
plist = XListProperties(dpy, w, &res);
XSync(dpy, False);
if (plist != NULL)
XFree(plist);
if (got_x_error)
{
LookupName(dpy, loosename ? loosename : name,
/*DELETE=*/TRUE, NULL);
continue;
}
}
break;
}
if (w == None)
{
fprintf(stderr, "no registered server named %s\n", name);
return NULL;
}
else if (loosename != NULL)
name = loosename;
/*
* Send the command to target interpreter by appending it to the
* comm window in the communication window.
*/
length = strlen(name) + strlen(cmd) + 10;
if (length <= STATIC_SPACE)
property = staticSpace;
else
property = (char *) malloc((unsigned) length);
serial++;
sprintf(property, "%c%c%c-n %s%c-s %s",
0, asKeys ? 'k' : 'c', 0, name, 0, cmd);
if (name == loosename)
free(loosename);
if (!asKeys)
{
/* Add a back reference to our comm window */
sprintf(property + length, "%c-r %x %d", 0, (uint) commWindow, serial);
length += strlen(property + length + 1) + 1;
}
res = AppendPropCarefully(dpy, w, commProperty, property, length + 1);
if (length > STATIC_SPACE)
free(property);
if (res < 0)
{
fprintf(stderr, "Failed to send command to the destination program\n");
return NULL;
}
if (asKeys) /* There is no answer for this - Keys are sent async */
return NULL;
/*
* Enter a loop processing X events & pooling chars until we see the result
*/
#define SEND_MSEC_POLL 50
time(&start);
while ((time((time_t *) 0) - start) < 60)
{
/* Look out for the answer */
#ifndef HAVE_SELECT
struct pollfd fds;
fds.fd = ConnectionNumber(dpy);
fds.events = POLLIN;
if (poll(&fds, 1, SEND_MSEC_POLL) < 0)
break;
#else
fd_set fds;
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = SEND_MSEC_POLL * 1000;
FD_ZERO(&fds);
FD_SET(ConnectionNumber(dpy), &fds);
if (select(ConnectionNumber(dpy) + 1, &fds, NULL, NULL, &tv) < 0)
break;
#endif
while (XEventsQueued(dpy, QueuedAfterReading) > 0)
{
XNextEvent(dpy, &event);
if (event.type == PropertyNotify && e->window == commWindow)
if ((result = SendEventProc(dpy, &event, serial, code)) != NULL)
return result;
}
}
return NULL;
}
/*
* SendInit --
* This procedure is called to initialize the
* communication channels for sending commands and
* receiving results.
*/
static int
SendInit(dpy)
Display *dpy;
{
XErrorHandler old_handler;
/*
* Create the window used for communication, and set up an
* event handler for it.
*/
old_handler = XSetErrorHandler(x_error_check);
got_x_error = FALSE;
commProperty = XInternAtom(dpy, "Comm", False);
/* Change this back to "InterpRegistry" to talk to tk processes */
registryProperty = XInternAtom(dpy, "VimRegistry", False);
if (commWindow == None)
{
commWindow =
XCreateSimpleWindow(dpy, XDefaultRootWindow(dpy),
getpid(), 0, 10, 10, 0,
WhitePixel(dpy, DefaultScreen(dpy)),
WhitePixel(dpy, DefaultScreen(dpy)));
XSelectInput(dpy, commWindow, PropertyChangeMask);
}
XSync(dpy, False);
(void) XSetErrorHandler(old_handler);
return got_x_error ? -1 : 0;
}
/*
* LookupName --
* Given an interpreter name, see if the name exists in
* the interpreter registry for a particular display.
*
* Results:
* If the given name is registered, return the ID of
* the window associated with the name. If the name
* isn't registered, then return 0.
*/
static Window
LookupName(dpy, name, delete, loose)
Display *dpy; /* Display whose registry to check. */
char *name; /* Name of an interpreter. */
int delete; /* If non-zero, delete info about name. */
char **loose; /* Do another search matching -999 if not found
Return result here if a match is found */
{
unsigned char *regProp, *entry;
unsigned char *p;
int result, actualFormat;
unsigned long numItems, bytesAfter;
Atom actualType;
Window returnValue;
/*
* Read the registry property.
*/
regProp = NULL;
result = XGetWindowProperty(dpy, RootWindow(dpy, 0), registryProperty, 0,
MAX_PROP_WORDS, False, XA_STRING, &actualType,
&actualFormat, &numItems, &bytesAfter,
®Prop);
if (actualType == None)
return 0;
/*
* If the property is improperly formed, then delete it.
*/
if ((result != Success) || (actualFormat != 8) || (actualType != XA_STRING))
{
if (regProp != NULL)
XFree(regProp);
XDeleteProperty(dpy, RootWindow(dpy, 0), registryProperty);
return 0;
}
/*
* Scan the property for the desired name.
*/
returnValue = None;
entry = NULL; /* Not needed, but eliminates compiler warning. */
for (p = regProp; (p - regProp) < numItems; )
{
entry = p;
while ((*p != 0) && (!isspace(*p)))
p++;
if ((*p != 0) && (strcasecmp(name, p + 1) == 0))
{
sscanf(entry, "%x", (uint*) &returnValue);
break;
}
while (*p != 0)
p++;
p++;
}
if (loose != NULL && returnValue == None && !IsSerialName(name))
{
for (p = regProp; (p - regProp) < numItems; )
{
entry = p;
while ((*p != 0) && (!isspace(*p)))
p++;
if ((*p != 0) && IsSerialName(p + 1)
&& (strncmp(name, p + 1, strlen(name)) == 0))
{
sscanf(entry, "%x", (uint*) &returnValue);
*loose = strdup(p + 1);
break;
}
while (*p != 0)
p++;
p++;
}
}
/*
* Delete the property, if that is desired (copy down the
* remainder of the registry property to overlay the deleted
* info, then rewrite the property).
*/
if ((delete) && (returnValue != None))
{
int count;
while (*p != 0)
p++;
p++;
count = numItems - (p-regProp);
if (count > 0)
memcpy(entry, p, count);
XChangeProperty(dpy, RootWindow(dpy, 0), registryProperty, XA_STRING,
8, PropModeReplace, regProp,
(int) (numItems - (p-entry)));
XSync(dpy, False);
}
XFree(regProp);
return returnValue;
}
static char *
SendEventProc(dpy, eventPtr, expected, code)
Display *dpy;
XEvent *eventPtr; /* Information about event. */
int expected; /* The one were waiting for */
int *code; /* Return code. 0 => OK */
{
unsigned char *propInfo;
unsigned char *p;
int result, actualFormat;
int retCode;
unsigned long numItems, bytesAfter;
Atom actualType;
if ((eventPtr->xproperty.atom != commProperty)
|| (eventPtr->xproperty.state != PropertyNewValue))
{
return;
}
/*
* Read the comm property and delete it.
*/
propInfo = NULL;
result = XGetWindowProperty(dpy, commWindow, commProperty, 0,
MAX_PROP_WORDS, True, XA_STRING, &actualType,
&actualFormat, &numItems, &bytesAfter,
&propInfo);
/*
* If the property doesn't exist or is improperly formed
* then ignore it.
*/
if ((result != Success) || (actualType != XA_STRING)
|| (actualFormat != 8))
{
if (propInfo != NULL)
{
XFree(propInfo);
}
return;
}
/*
* Several commands and results could arrive in the property at
* one time; each iteration through the outer loop handles a
* single command or result.
*/
for (p = propInfo; (p - propInfo) < numItems; )
{
/*
* Ignore leading NULs; each command or result starts with a
* NUL so that no matter how badly formed a preceding command
* is, we'll be able to tell that a new command/result is
* starting.
*/
if (*p == 0)
{
p++;
continue;
}
if ((*p == 'r') && (p[1] == 0))
{
int serial, gotSerial;
char *res;
/*
* This is a reply to some command that we sent out. Iterate
* over all of its options. Stop when we reach the end of the
* property or something that doesn't look like an option.
*/
p += 2;
gotSerial = 0;
res = "";
retCode = 0;
while (((p-propInfo) < numItems) && (*p == '-'))
{
switch (p[1])
{
case 'r':
if (p[2] == ' ')
res = p + 3;
break;
case 's':
if (sscanf(p + 2, " %d", &serial) == 1)
gotSerial = 1;
break;
case 'c':
if (sscanf(p + 2, " %d", &retCode) != 1)
retCode = 0;
break;
}
while (*p != 0)
p++;
p++;
}
if (!gotSerial)
continue;
if (code != NULL)
*code = retCode;
return serial == expected ? strdup(res) : NULL;
}
else
{
/*
* Didn't recognize this thing. Just skip through the next
* null character and try again.
* Also, throw away commands that we cant process anyway.
*/
while (*p != 0)
p++;
p++;
}
}
XFree(propInfo);
}
/*
* AppendPropCarefully --
*
* Append a given property to a given window, but set up
* an X error handler so that if the append fails this
* procedure can return an error code rather than having
* Xlib panic.
*
* Return:
* 0 on OK - -1 on error
*--------------------------------------------------------------
*/
static int
AppendPropCarefully(dpy, window, property, value, length)
Display *dpy; /* Display on which to operate. */
Window window; /* Window whose property is to
* be modified. */
Atom property; /* Name of property. */
char *value; /* Characters to append to property. */
int length; /* How much to append */
{
XErrorHandler old_handler;
old_handler = XSetErrorHandler(x_error_check);
got_x_error = FALSE;
XChangeProperty(dpy, window, property, XA_STRING, 8,
PropModeAppend, value, length);
XSync(dpy, False);
(void) XSetErrorHandler(old_handler);
return got_x_error ? -1 : 0;
}
/*
* Another X Error handler, just used to check for errors.
*/
/* ARGSUSED */
static int
x_error_check(dpy, error_event)
Display *dpy;
XErrorEvent *error_event;
{
got_x_error = TRUE;
return 0;
}
/*
* Check if "str" looks like it had a serial number appended.
* Actually just checks if the name ends in a digit.
*/
static int
IsSerialName(str)
char *str;
{
int len = strlen(str);
return (len > 1 && isdigit(str[len - 1]));
}
| zyz2011-vim | runtime/tools/xcmdsrv_client.c | C | gpl2 | 13,933 |
#!/bin/sh
# enable DEC locator input model on remote terminal
printf "\033[1;2'z\033[1;3'{\c"
vim "$@"
# disable DEC locator input model on remote terminal
printf "\033[2;4'{\033[0'z\c"
| zyz2011-vim | runtime/tools/vimm | Shell | gpl2 | 188 |
#!/usr/bin/nawk -f
#
# Change "nawk" to "awk" or "gawk" if you get errors.
#
# Make Vim Errors
# Processes errors from cc for use by Vim's quick fix tools
# specifically it translates the ---------^ notation to a
# column number
#
BEGIN { FS="[:,]" }
/^cfe/ { file=$3
msg=$5
split($4,s," ")
line=s[2]
}
# You may have to substitute a tab character for the \t here:
/^[\t-]*\^/ {
p=match($0, ".*\\^" )
col=RLENGTH-2
printf("%s, line %d, col %d : %s\n", file,line,col,msg)
}
| zyz2011-vim | runtime/tools/mve.awk | Awk | gpl2 | 484 |
" System gvimrc file for Mac OS X
" Author: Benji Fisher <benji@member.AMS.org>
" Last Change: Thu Mar 09 09:00 AM 2006 EST
"
" Define Mac-standard keyboard shortcuts.
" We don't change 'cpoptions' here, because it would not be set properly when
" a .vimrc file is found later. Thus don't use line continuation and use
" <special> in mappings.
nnoremap <special> <D-n> :confirm enew<CR>
vmap <special> <D-n> <Esc><D-n>gv
imap <special> <D-n> <C-O><D-n>
cmap <special> <D-n> <C-C><D-n>
omap <special> <D-n> <Esc><D-n>
nnoremap <special> <D-o> :browse confirm e<CR>
vmap <special> <D-o> <Esc><D-o>gv
imap <special> <D-o> <C-O><D-o>
cmap <special> <D-o> <C-C><D-o>
omap <special> <D-o> <Esc><D-o>
nnoremap <silent> <special> <D-w> :if winheight(2) < 0 <Bar> confirm enew <Bar> else <Bar> confirm close <Bar> endif<CR>
vmap <special> <D-w> <Esc><D-w>gv
imap <special> <D-w> <C-O><D-w>
cmap <special> <D-w> <C-C><D-w>
omap <special> <D-w> <Esc><D-w>
nnoremap <silent> <special> <D-s> :if expand("%") == ""<Bar>browse confirm w<Bar> else<Bar>confirm w<Bar>endif<CR>
vmap <special> <D-s> <Esc><D-s>gv
imap <special> <D-s> <C-O><D-s>
cmap <special> <D-s> <C-C><D-s>
omap <special> <D-s> <Esc><D-s>
nnoremap <special> <D-S-s> :browse confirm saveas<CR>
vmap <special> <D-S-s> <Esc><D-s>gv
imap <special> <D-S-s> <C-O><D-s>
cmap <special> <D-S-s> <C-C><D-s>
omap <special> <D-S-s> <Esc><D-s>
" From the Edit menu of SimpleText:
nnoremap <special> <D-z> u
vmap <special> <D-z> <Esc><D-z>gv
imap <special> <D-z> <C-O><D-z>
cmap <special> <D-z> <C-C><D-z>
omap <special> <D-z> <Esc><D-z>
vnoremap <special> <D-x> "+x
vnoremap <special> <D-c> "+y
cnoremap <special> <D-c> <C-Y>
nnoremap <special> <D-v> "+gP
cnoremap <special> <D-v> <C-R>+
execute 'vnoremap <script> <special> <D-v>' paste#paste_cmd['v']
execute 'inoremap <script> <special> <D-v>' paste#paste_cmd['i']
nnoremap <silent> <special> <D-a> :if &slm != ""<Bar>exe ":norm gggH<C-O>G"<Bar> else<Bar>exe ":norm ggVG"<Bar>endif<CR>
vmap <special> <D-a> <Esc><D-a>
imap <special> <D-a> <Esc><D-a>
cmap <special> <D-a> <C-C><D-a>
omap <special> <D-a> <Esc><D-a>
nnoremap <special> <D-f> /
vmap <special> <D-f> <Esc><D-f>
imap <special> <D-f> <Esc><D-f>
cmap <special> <D-f> <C-C><D-f>
omap <special> <D-f> <Esc><D-f>
nnoremap <special> <D-g> n
vmap <special> <D-g> <Esc><D-g>
imap <special> <D-g> <C-O><D-g>
cmap <special> <D-g> <C-C><D-g>
omap <special> <D-g> <Esc><D-g>
| zyz2011-vim | runtime/macmap.vim | Vim Script | gpl2 | 2,430 |
" Vim support file to switch on loading plugins for file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2006 Apr 30
if exists("did_load_ftplugin")
finish
endif
let did_load_ftplugin = 1
augroup filetypeplugin
au FileType * call s:LoadFTPlugin()
func! s:LoadFTPlugin()
if exists("b:undo_ftplugin")
exe b:undo_ftplugin
unlet! b:undo_ftplugin b:did_ftplugin
endif
let s = expand("<amatch>")
if s != ""
if &cpo =~# "S" && exists("b:did_ftplugin")
" In compatible mode options are reset to the global values, need to
" set the local values also when a plugin was already used.
unlet b:did_ftplugin
endif
" When there is a dot it is used to separate filetype names. Thus for
" "aaa.bbb" load "aaa" and then "bbb".
for name in split(s, '\.')
exe 'runtime! ftplugin/' . name . '.vim ftplugin/' . name . '_*.vim ftplugin/' . name . '/*.vim'
endfor
endif
endfunc
augroup END
| zyz2011-vim | runtime/ftplugin.vim | Vim Script | gpl2 | 971 |
" Vim script for Evim key bindings
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2006 Mar 29
" Don't use Vi-compatible mode.
set nocompatible
" Use the mswin.vim script for most mappings
source <sfile>:p:h/mswin.vim
" Vim is in Insert mode by default
set insertmode
" Make a buffer hidden when editing another one
set hidden
" Make cursor keys ignore wrapping
inoremap <silent> <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR>
inoremap <silent> <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR>
" CTRL-F does Find dialog instead of page forward
noremap <silent> <C-F> :promptfind<CR>
vnoremap <silent> <C-F> y:promptfind <C-R>"<CR>
onoremap <silent> <C-F> <C-C>:promptfind<CR>
inoremap <silent> <C-F> <C-O>:promptfind<CR>
cnoremap <silent> <C-F> <C-C>:promptfind<CR>
set backspace=2 " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
if has("vms")
set nobackup " do not keep a backup file, use versions instead
else
set backup " keep a backup file
endif
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set incsearch " do incremental searching
set mouse=a " always use the mouse
" Don't use Ex mode, use Q for formatting
map Q gq
" Switch syntax highlighting on, when the terminal has colors
" Highlight the last used search pattern on the next search command.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
nohlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" For all text files set 'textwidth' to 78 characters.
au FileType text setlocal tw=78
endif " has("autocmd")
" vim: set sw=2 :
| zyz2011-vim | runtime/evim.vim | Vim Script | gpl2 | 1,965 |
" Vim script to fix duplicate words in a .dic file vim: set ft=vim:
"
" Usage: Edit the .dic file and source this script.
let deleted = 0
" Start below the word count.
let lnum = 2
while lnum <= line('$')
let word = getline(lnum)
if word !~ '/'
if search('^' . word . '/', 'w') != 0
let deleted += 1
exe lnum . "d"
continue " don't increment lnum, it's already at the next word
endif
endif
let lnum += 1
endwhile
if deleted == 0
echomsg "No duplicate words found"
elseif deleted == 1
echomsg "Deleted 1 duplicate word"
else
echomsg printf("Deleted %d duplicate words", deleted)
endif
| zyz2011-vim | runtime/spell/fixdup.vim | Vim Script | gpl2 | 629 |
" For Hebrew capitals should not be checked. But only change the
" 'spellcapcheck' option when it is not at its default value.
let s:spc = &l:spc
setlocal spc&
if s:spc == &l:spc
setlocal spc=
else
let &l:spc = s:spc
endif
unlet s:spc
| zyz2011-vim | runtime/spell/he.vim | Vim Script | gpl2 | 240 |
" Script to check if all the locales used in spell files are available.
grep /sys env LANG/ */main.aap
let not_supported = []
for item in getqflist()
let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '')
try
exe 'lang ' . lang
catch /E197/
call add(not_supported, lang)
endtry
endfor
if len(not_supported) > 0
echo "Unsupported languages:"
for l in not_supported
echo l
endfor
else
echo "Everything appears to be OK"
endif
| zyz2011-vim | runtime/spell/check_locales.vim | Vim Script | gpl2 | 463 |
" Vim script to clean the ll.xxxxx.add files of commented out entries
" Author: Antonio Colombo, Bram Moolenaar
" Last Update: 2008 Jun 3
" Time in seconds after last time an ll.xxxxx.add file was updated
" Default is one second.
" If you invoke this script often set it to something bigger, e.g. 60 * 60
" (one hour)
if !exists("g:spell_clean_limit")
let g:spell_clean_limit = 1
endif
" Loop over all the runtime/spell/*.add files.
" Delete all comment lines, except the ones starting with ##.
for s:fname in split(globpath(&rtp, "spell/*.add"), "\n")
if filewritable(s:fname) && localtime() - getftime(s:fname) > g:spell_clean_limit
if exists('*fnameescape')
let s:f = fnameescape(s:fname)
else
let s:f = escape(s:fname, ' \|<')
endif
silent exe "tab split " . s:f
echo "Processing" s:f
silent! g/^#[^#]/d
silent update
close
unlet s:f
endif
endfor
unlet s:fname
echo "Done"
| zyz2011-vim | runtime/spell/cleanadd.vim | Vim Script | gpl2 | 934 |
" For Yiddish capitals should not be checked. But only change the
" 'spellcapcheck' option when it is not at its default value.
let s:spc = &l:spc
setlocal spc&
if s:spc == &l:spc
setlocal spc=
else
let &l:spc = s:spc
endif
unlet s:spc
| zyz2011-vim | runtime/spell/yi.vim | Vim Script | gpl2 | 241 |
" An example for a gvimrc file.
" The commands in this are executed when the GUI is started.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2001 Sep 02
"
" To use it, copy it to
" for Unix and OS/2: ~/.gvimrc
" for Amiga: s:.gvimrc
" for MS-DOS and Win32: $VIM\_gvimrc
" for OpenVMS: sys$login:.gvimrc
" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty
" set the X11 font to use
" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
set ch=2 " Make command line two lines high
set mousehide " Hide the mouse when typing text
" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
" Only do this for Vim version 5.0 and later.
if version >= 500
" I like highlighting strings inside C comments
let c_comment_strings=1
" Switch on syntax highlighting if it wasn't on yet.
if !exists("syntax_on")
syntax on
endif
" Switch on search pattern highlighting.
set hlsearch
" For Win32 version, have "K" lookup the keyword in a help file
"if has("win32")
" let winhelpfile='windows.hlp'
" map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>
"endif
" Set nice colors
" background for normal text is light grey
" Text below the last line is darker grey
" Cursor is green, Cyan when ":lmap" mappings are active
" Constants are not underlined but have a slightly lighter background
highlight Normal guibg=grey90
highlight Cursor guibg=Green guifg=NONE
highlight lCursor guibg=Cyan guifg=NONE
highlight NonText guibg=grey80
highlight Constant gui=NONE guibg=grey95
highlight Special gui=NONE guibg=grey95
endif
| zyz2011-vim | runtime/gvimrc_example.vim | Vim Script | gpl2 | 1,698 |
" Vim support file to switch off detection of file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2001 Jun 11
if exists("did_load_filetypes")
unlet did_load_filetypes
endif
" Remove all autocommands in the filetypedetect group
silent! au! filetypedetect *
| zyz2011-vim | runtime/ftoff.vim | Vim Script | gpl2 | 280 |
" Vim Keymap file for lithuanian characters, phonetic layout 'Baltic'
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Alex Jakushev <Alex.Jakushev@kemek.lt>
" Last Changed: 2002 Apr 12
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "lt"
loadkeymap
! Ą LITHUANIAN CAPITAL A NOSINE
@ Č LITHUANIAN CAPITAL CH
# Ę LITHUANIAN CAPITAL E NOSINE
$ Ė LITHUANIAN CAPITAL E SU TASKU
% Į LITHUANIAN CAPITAL I NOSINE
^ Š LITHUANIAN CAPITAL SH
& Ų LITHUANIAN CAPITAL U NOSINE
* Ū LITHUANIAN CAPITAL U SU BRUKSNIU
+ Ž LITHUANIAN CAPITAL ZH
1 ą LITHUANIAN LOWERCASE A NOSINE
2 č LITHUANIAN LOWERCASE CH
3 ę LITHUANIAN LOWERCASE E NOSINE
4 ė LITHUANIAN LOWERCASE E SU TASKU
5 į LITHUANIAN LOWERCASE I NOSINE
6 š LITHUANIAN LOWERCASE SH
7 ų LITHUANIAN LOWERCASE U NOSINE
8 ū LITHUANIAN LOWERCASE U SU BRUKSNIU
= ž LITHUANIAN LOWERCASE ZH
| zyz2011-vim | runtime/keymap/lithuanian-baltic.vim | Vim Script | gpl2 | 963 |
" Polish letters keymap for iso-8859-2
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" Polish:
" instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz}
" short keymap name for statusline
let b:keymap_name = "PL-slash-ISO"
scriptencoding latin1
loadkeymap
" Polish letters
/a <Char-177> " LATIN SMALL LETTER A WITH OGONEK
/c <Char-230> " LATIN SMALL LETTER C WITH ACUTE
/e <Char-234> " LATIN SMALL LETTER E WITH OGONEK
/l <Char-179> " LATIN SMALL LETTER L WITH STROKE
/n <Char-241> " LATIN SMALL LETTER N WITH ACUTE
/o <Char-243> " LATIN SMALL LETTER O WITH ACUTE
/s <Char-182> " LATIN SMALL LETTER S WITH ACUTE
/x <Char-188> " LATIN SMALL LETTER Z WITH ACUTE
/z <Char-191> " LATIN SMALL LETTER Z WITH DOT ABOVE
/A <Char-161> " LATIN CAPITAL LETTER A WITH OGONEK
/C <Char-198> " LATIN CAPITAL LETTER C WITH ACUTE
/E <Char-202> " LATIN CAPITAL LETTER E WITH OGONEK
/L <Char-163> " LATIN CAPITAL LETTER L WITH STROKE
/N <Char-209> " LATIN CAPITAL LETTER N WITH ACUTE
/O <Char-211> " LATIN CAPITAL LETTER O WITH ACUTE
/S <Char-166> " LATIN CAPITAL LETTER S WITH ACUTE
/X <Char-172> " LATIN CAPITAL LETTER Z WITH ACUTE
/Z <Char-175> " LATIN CAPITAL LETTER Z WITH DOT ABOVE
| zyz2011-vim | runtime/keymap/polish-slash_iso-8859-2.vim | Vim Script | gpl2 | 1,372 |
" Maintainer: Peter Valach <pvalach@gmx.net>
" Last Changed: 2002 Nov 5
" URL: http://www.pv2c.sk/free/sk_vimkeymap/
let b:keymap_name = "sk"
loadkeymap
" Z a Y - ak chcete slovensku qwerty, zakomentujte tieto styri riadky
y z
z y
Y Z
Z Y
" Horny riadok
` ;
1 +
! 1
2 ľ
@ 2
3 š
# 3
4 č
$ 4
5 ť
% 5
6 ž
^ 6
7 ý
& 7
8 á
* 8
9 í
( 9
0 é
) 0
- =
_ %
" Klavesy okolo Enteru :)
[ ú
{ /
] ä
} (
\\ ň
<Bar> )
; ô
: "
' §
\" !
", , ;-)
< ?
". . ;-)
> :
/ -
? _
" Dlzne
=a á
=A Á
=e é
=E É
=i í
=I Í
=l ĺ
=L Ĺ
=o ó
=O Ó
=r ŕ
=R Ŕ
=u ú
=U Ú
=z ý
=Z Ý
" pre pripad omylu :) alebo slovenskej QWERTY
=y ý
=Y Ý
" Makcene
+a ä
+A Ä
+c č
+C Č
+d ď
+D Ď
+l ľ
+L Ľ
+n ň
+N Ň
+o ô
+O Ô
+s š
+S Š
+t ť
+T Ť
+y ž
+Y Ž
" pre pripad omylu :) alebo slovenskej QWERTY
+z ž
+Z Ž
| zyz2011-vim | runtime/keymap/slovak_utf-8.vim | Vim Script | gpl2 | 812 |
" Maintainer: Štěpán Němec <stepnem@gmail.com>
" Last Changed: Fri 25 Jun 2010 22:08:43 CEST
let b:keymap_name = "czech"
loadkey
0 é
9 í
8 á
7 ý
6 ž
5 ř
4 č
3 š
2 ě
1 +
` ;
) 0
( 9
* 8
& 7
^ 6
% 5
$ 4
# 3
@ 2
! 1
] )
} (
[ ú
{ /
' §
\" !
; ů
: "
/ -
? _
> :
< ?
| '
~u ů
~U Ů
\\a ä
\\e ë
\\i ï
\\o ö
\\u ü
\\z ÿ
\\A Ä
\\E Ë
\\I Ï
\\O Ö
\\U Ü
\\Z Ÿ
=a á
=e é
=i í
=o ó
=u ú
=z ý
=A Á
=E É
=I Í
=O Ó
=U Ú
=Z Ý
+c č
+d ď
+e ě
+n ň
+r ř
+s š
+t ť
+y ž
+C Č
+D Ď
+E Ě
+N Ň
+R Ř
+S Š
+T Ť
+Y Ž
y z
Y Z
z y
Z Y
| zyz2011-vim | runtime/keymap/czech_utf-8.vim | Vim Script | gpl2 | 564 |
" Vim Keymap file for russian characters, phonetic layout 'yawerty'
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Igor Goldenberg <igogold@gmail.com>
" Last Changed: 2007 Aug 15
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "ru"
loadkeymap
A А CYRILLIC CAPITAL LETTER A
B Б CYRILLIC CAPITAL LETTER BE
W В CYRILLIC CAPITAL LETTER VE
G Г CYRILLIC CAPITAL LETTER GHE
D Д CYRILLIC CAPITAL LETTER DE
E Е CYRILLIC CAPITAL LETTER IE
$ Ё CYRILLIC CAPITAL LETTER IO
V Ж CYRILLIC CAPITAL LETTER ZHE
Z З CYRILLIC CAPITAL LETTER ZE
I И CYRILLIC CAPITAL LETTER I
J Й CYRILLIC CAPITAL LETTER SHORT I
K К CYRILLIC CAPITAL LETTER KA
L Л CYRILLIC CAPITAL LETTER EL
M М CYRILLIC CAPITAL LETTER EM
N Н CYRILLIC CAPITAL LETTER EN
O О CYRILLIC CAPITAL LETTER O
P П CYRILLIC CAPITAL LETTER PE
R Р CYRILLIC CAPITAL LETTER ER
S С CYRILLIC CAPITAL LETTER ES
T Т CYRILLIC CAPITAL LETTER TE
U У CYRILLIC CAPITAL LETTER U
F Ф CYRILLIC CAPITAL LETTER EF
H Х CYRILLIC CAPITAL LETTER HA
C Ц CYRILLIC CAPITAL LETTER TSE
+ Ч CYRILLIC CAPITAL LETTER CHE
{ Ш CYRILLIC CAPITAL LETTER SHA
} Щ CYRILLIC CAPITAL LETTER SHCHA
^ Ъ CYRILLIC CAPITAL LETTER HARD SIGN
Y Ы CYRILLIC CAPITAL LETTER YERU
X Ь CYRILLIC CAPITAL LETTER SOFT SIGN
| Э CYRILLIC CAPITAL LETTER E
~ Ю CYRILLIC CAPITAL LETTER YU
Q Я CYRILLIC CAPITAL LETTER YA
a а CYRILLIC SMALL LETTER A
b б CYRILLIC SMALL LETTER BE
w в CYRILLIC SMALL LETTER VE
g г CYRILLIC SMALL LETTER GHE
d д CYRILLIC SMALL LETTER DE
e е CYRILLIC SMALL LETTER IE
# ё CYRILLIC SMALL LETTER IO
v ж CYRILLIC SMALL LETTER ZHE
z з CYRILLIC SMALL LETTER ZE
i и CYRILLIC SMALL LETTER I
j й CYRILLIC SMALL LETTER SHORT I
k к CYRILLIC SMALL LETTER KA
l л CYRILLIC SMALL LETTER EL
m м CYRILLIC SMALL LETTER EM
n н CYRILLIC SMALL LETTER EN
o о CYRILLIC SMALL LETTER O
p п CYRILLIC SMALL LETTER PE
r р CYRILLIC SMALL LETTER ER
s с CYRILLIC SMALL LETTER ES
t т CYRILLIC SMALL LETTER TE
u у CYRILLIC SMALL LETTER U
f ф CYRILLIC SMALL LETTER EF
h х CYRILLIC SMALL LETTER HA
c ц CYRILLIC SMALL LETTER TSE
= ч CYRILLIC SMALL LETTER CHE
[ ш CYRILLIC SMALL LETTER SHA
] щ CYRILLIC SMALL LETTER SHCHA
% ъ CYRILLIC SMALL LETTER HARD SIGN
y ы CYRILLIC SMALL LETTER YERU
x ь CYRILLIC SMALL LETTER SOFT SIGN
\\ э CYRILLIC SMALL LETTER E
` ю CYRILLIC SMALL LETTER YU
q я CYRILLIC SMALL LETTER YA
| zyz2011-vim | runtime/keymap/russian-yawerty.vim | Vim Script | gpl2 | 2,463 |
" Vim keymap file for Bulgarian and Russian characters, "phonetic" layout.
" Most of it can be used with both utf-8 and cp1251 file encodings, except
" the accented vowels which can only be stored in utf-8.
" This file itself is in utf-8.
" Maintainer: Boyko Bantchev <boykobb@gmail.com>
" URI: http://www.math.bas.bg/bantchev/vim/bulgarian-phonetic.vim
" Last Changed: 2010 May 4
" This keymap corresponds to what is called "phonetic layout" in Bulgaria:
" Cyrillic letters tend to be mapped to their Latin homophones wherever
" there are ones. Most keys corresponding to punctuation characters are
" left unmapped, so they retain their usual (QWERTY) meanings when typing
" Cyrillic.
"
" In addition to the Bulgarian alphabet, the keymap makes accessible the
" following characters:
" — The letters Ё and ё, Э and э, and Ы and ы (in pairs of capital and
" small). These are the letters in the Russian alphabet that are not
" present in Bulgarian, so using the bulgarian-phonetic keymap one can
" type in Russian, too.
" — The quotation marks „ “ ” ‘ ’ (used in the Bulgarian and English
" quotation styles), as well as « » (Russian quotation style).
" — The characters §, №, – (en-dash), — (em-dash), …, •, ·, ±, °, ¬,
" ¤, €, ‰, †, ‡, and ¶.
"
" The keymap also defines key combinations for grave and acute accents.
" (Grave accent is used in Bulgarian, acute in Russian, but both accents
" apply to other languages as well.)
"
" For details of what key or key combination maps to what character, please
" see below the map itself.
"
" See also http://www.math.bas.bg/bantchev/vim/kbdbul.html (in Bulgarian).
scriptencoding utf-8
let b:keymap_name = "pho"
loadkeymap
A А CYRILLIC CAPITAL LETTER A
B Б CYRILLIC CAPITAL LETTER BE
W В CYRILLIC CAPITAL LETTER VE
G Г CYRILLIC CAPITAL LETTER GHE
D Д CYRILLIC CAPITAL LETTER DE
E Е CYRILLIC CAPITAL LETTER IE
E:: Ё CYRILLIC CAPITAL LETTER IO
V Ж CYRILLIC CAPITAL LETTER ZHE
Z З CYRILLIC CAPITAL LETTER ZE
I И CYRILLIC CAPITAL LETTER I
J Й CYRILLIC CAPITAL LETTER SHORT I
K К CYRILLIC CAPITAL LETTER KA
L Л CYRILLIC CAPITAL LETTER EL
M М CYRILLIC CAPITAL LETTER EM
N Н CYRILLIC CAPITAL LETTER EN
O О CYRILLIC CAPITAL LETTER O
P П CYRILLIC CAPITAL LETTER PE
R Р CYRILLIC CAPITAL LETTER ER
S С CYRILLIC CAPITAL LETTER ES
T Т CYRILLIC CAPITAL LETTER TE
U У CYRILLIC CAPITAL LETTER U
F Ф CYRILLIC CAPITAL LETTER EF
H Х CYRILLIC CAPITAL LETTER HA
C Ц CYRILLIC CAPITAL LETTER TSE
~ Ч CYRILLIC CAPITAL LETTER CHE
{ Ш CYRILLIC CAPITAL LETTER SHA
} Щ CYRILLIC CAPITAL LETTER SHCHA
Y Ъ CYRILLIC CAPITAL LETTER HARD SIGN
YI Ы CYRILLIC CAPITAL LETTER YERU
X Ь CYRILLIC CAPITAL LETTER SOFT SIGN
YE Э CYRILLIC CAPITAL LETTER REVERSED E
| Ю CYRILLIC CAPITAL LETTER YU
Q Я CYRILLIC CAPITAL LETTER YA
a а CYRILLIC SMALL LETTER A
b б CYRILLIC SMALL LETTER BE
w в CYRILLIC SMALL LETTER VE
g г CYRILLIC SMALL LETTER GHE
d д CYRILLIC SMALL LETTER DE
e е CYRILLIC SMALL LETTER IE
e:: ё CYRILLIC SMALL LETTER IO
v ж CYRILLIC SMALL LETTER ZHE
z з CYRILLIC SMALL LETTER ZE
i и CYRILLIC SMALL LETTER I
j й CYRILLIC SMALL LETTER SHORT I
k к CYRILLIC SMALL LETTER KA
l л CYRILLIC SMALL LETTER EL
m м CYRILLIC SMALL LETTER EM
n н CYRILLIC SMALL LETTER EN
o о CYRILLIC SMALL LETTER O
p п CYRILLIC SMALL LETTER PE
r р CYRILLIC SMALL LETTER ER
s с CYRILLIC SMALL LETTER ES
t т CYRILLIC SMALL LETTER TE
u у CYRILLIC SMALL LETTER U
f ф CYRILLIC SMALL LETTER EF
h х CYRILLIC SMALL LETTER HA
c ц CYRILLIC SMALL LETTER TSE
` ч CYRILLIC SMALL LETTER CHE
[ ш CYRILLIC SMALL LETTER SHA
] щ CYRILLIC SMALL LETTER SHCHA
y ъ CYRILLIC SMALL LETTER HARD SIGN
yi ы CYRILLIC SMALL LETTER YERU
x ь CYRILLIC SMALL LETTER SOFT SIGN
ye э CYRILLIC SMALL LETTER REVERSED E
\\ ю CYRILLIC SMALL LETTER YU
q я CYRILLIC SMALL LETTER YA
!! § SECTION SIGN (PARAGRAPH SIGN)
## № NUMERO SIGN
-- – EN DASH
--- — EM DASH
.. … HORIZONTAL ELLIPSIS
`` “ LEFT DOUBLE QUOTATION MARK
'' ” RIGHT DOUBLE QUOTATION MARK
,, „ DOUBLE LOW-9 QUOTATION MARK
`. ‘ LEFT SINGLE QUOTATION MARK
'. ’ RIGHT SINGLE QUOTATION MARK
<< « LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
>> » RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
** • BULLET
,. · MIDDLE DOT
+- ± PLUS-MINUS SIGN
^o ° DEGREE SIGN
~~ ¬ NOT SIGN
@@ ¤ CURRENCY SIGN
$$ € EURO SIGN
%% ‰ PER MILLE SIGN
+| † DAGGER
++ ‡ DOUBLE DAGGER
|| ¶ PILCROW SIGN
" Accented characters cannot map onto cp1251 – use utf-8 file encoding.
" To apply an accent to a letter, type the corresponding key combination
" to the immediate right of that letter.
^` <char-0x300> COMBINING GRAVE ACCENT
^' <char-0x301> COMBINING ACUTE ACCENT
| zyz2011-vim | runtime/keymap/bulgarian-phonetic.vim | Vim Script | gpl2 | 5,806 |
" Vim Keymap file for Persian Standard Keyboard Layout
" Maintainers: Behnam 'ZWNJ' Esfahbod <behnam@zwnj.org>,
" Amir Hedayaty <hedayaty@gmail.com>
" Last Change: 2006 Apr 21
scriptencoding utf-8
" Use this short name in the status line.
let b:keymap_name = "per"
loadkeymap
`
1 ۱
2 ۲
3 ۳
4 ۴
5 ۵
6 ۶
7 ۷
8 ۸
9 ۹
0 ۰
- -
= =
q ض
w ص
e ث
r ق
t ف
y غ
u ع
i ه
o خ
p ح
[ ج
] چ
a ش
s س
d ی
f ب
g ل
h ا
j ت
k ن
l م
; ک
' گ
z ظ
x ط
c ز
v ر
b ذ
n د
m پ
, و
. .
/ /
\\ \\
~ ÷
! !
@ ٬
# ٫
$ ﷼
% ٪
^ ×
& ،
* *
( )
) (
_ ـ
+ +
Q ْ
W ٌ
E ٍ
R ً
T ُ
Y ِ
U َ
I ّ
O ]
P [
{ }
} {
A ؤ
S ئ
D ي
F إ
G أ
H آ
J ة
K »
L «
: :
\" ؛
Z ك
X ٓ
C ژ
V ٰ
B
N ٔ
M ء
< >
> <
? ؟
| |
| zyz2011-vim | runtime/keymap/persian-iranian_utf-8.vim | Vim Script | gpl2 | 752 |
" thaana keymap
" Maintainer: Ibrahim fayaz <p h a y a x at gmail dot com>
" please set enc to utf-8
" thaana phonetic keyboard is used as a reference
" http://www.mcst.gov.mv/News_and_Events/xpfonts.htm
" changelog: 18th Feb 2006 - came up the initial idea of writing the keymap..
" 13th May 2006 - made some few corrections regarding < and >..
let b:keymap_name= "thaana"
" THAANA NORMAL LETTERS
loadkeymap
h <char-0x0780> "letter haa
S <char-0x0781> "shaviani
n <char-0x0782> "noonu
r <char-0x0783> "raa
b <char-0x0784> "baa
L <char-0x0785> "lhaviani
k <char-0x0786> "kaafu
w <char-0x0787> "alifu
v <char-0x0788> "vaavu
m <char-0x0789> "meemu
f <char-0x078A> "faafu
d <char-0x078B> "dhaalu
t <char-0x078C> "thaa
l <char-0x078D> "laamu
g <char-0x078E> "gaafu
N <char-0x078F> "gnaviani
s <char-0x0790> "seenu
D <char-0x0791> "daviani
z <char-0x0792> "zaviani
T <char-0x0793> "taviani
y <char-0x0794> "yaa
p <char-0x0795> "paviani
j <char-0x0796> "javiani
c <char-0x0797> "chaviani
"THAANA DOTTED LETTERS
X <char-0x0798> "TTAA (thaa mathee thin thiki)
H <char-0x0799> "HHAA (haa thiree ehthiki)
K <char-0x079A> "KHAA (haa mathee ehthiki)
J <char-0x079B> "THAALU (dhaa mathee ehthiki)
R <char-0x079C> "ZAA (raa mathee ehthiki)
C <char-0x079D> "SHEENU (seenu mathee thinthiki)
M <char-0x079E> "SAADHU (seenu thiree ehthiki)
B <char-0x079F> "DHAADHU(seenu mathee ehthiki)
Y <char-0x07A0> "TO (thaa thiree ehthiki)
Z <char-0x07A1> "ZO (thaa mathee ehthiki)
W <char-0x07A2> "AINU (alifu thiree ehthiki)
G <char-0x07A3> "GHAINU (alifu mathee ehthiki)
Q <char-0x07A4> "QAAFU (gaafu mathee dhethkiki)
V <char-0x07A5> "VAAVU (vaavu mathee ehthiki)
"THAANA FILI (combining characters)
a <char-0x07A6> "abafili
A <char-0x07A7> "aabaafili
i <char-0x07A8> "ibifili
I <char-0x07A9> "eebeefili
u <char-0x07AA> "ubufili
U <char-0x07AB> "ooboofili
e <char-0x07AC> "ebefili
E <char-0x07AD> "ebeyfili
o <char-0x07AE> "obofili
O <char-0x07AF> "oaboafili
q <char-0x07B0> "sukun
"OTHER THAANA RELATED
F <char-0xFDF2> "arabic ligature allah isolated form
? <char-0x061F> "arabic question mark
"~ <char-0xFDFD> "arabic -bismillah ahrahman araheem- not in phonetic keyboard, thats why commented
[ <char-0x005D> "english open bracket is thaana closing bracket
] <char-0x005B> "english close bracket = thaana open bracket
{ <char-0x007B> "braces reversed
} <char-0x007D>
x <char-0x00D7> " x for multiplication sign..
P <char-0x00F7> " division symbol mapped to 'p'
> <char-0x003C>
< <char-0x003E>
<M-v> <char-0x200D> "zwj - ZERO WIDTH JOINER i dont know how to use these yet..
<M-b> <char-0x200C> "zwnj - ZERO WIDTH NON JOINER
<M-n> <char-0x200E> "lrm - LEFT TO RIGHT MARK
<M-m> <char-0x200F> "rlm - RIGHT TO LEFT MARK
; <char-0x061B> "arabic semicolon
, <char-0x060C> "arabic coma
<M-;> ;
<M-,> ,
| zyz2011-vim | runtime/keymap/thaana-phonetic_utf-8.vim | Vim Script | gpl2 | 2,822 |
let encoding = &enc
if encoding == 'latin1'
if has("unix")
let encoding = 'iso-8859-8'
else
let encoding = 'cp1255'
endif
endif
if encoding == 'utf-8'
source <sfile>:p:h/hebrewp_utf-8.vim
elseif encoding == 'cp1255'
source <sfile>:p:h/hebrewp_cp1255.vim
else
source <sfile>:p:h/hebrewp_iso-8859-8.vim
endif
| zyz2011-vim | runtime/keymap/hebrewp.vim | Vim Script | gpl2 | 325 |
" Maintainer: Ashish SHUKLA <wahjava@members.fsf.org>
" Last Changed: 2009 Jul 04
"
" All characters are ASCII, conversion to another encoding (e.g., UTF-8)
" should work.
let b:keymap_name = "en-dv"
loadkeymap
q '
w ,
e .
r p
t y
y f
u g
i c
o r
p l
[ /
] =
\\ \\
a a
s o
d e
f u
g i
h d
j h
k t
l n
; s
' -
z ;
x q
c j
v k
b x
n b
m m
, w
. v
/ z
Z :
X Q
C J
V K
B X
N B
M M
< W
> V
? Z
A A
S O
D E
F U
G I
H D
J H
K T
L N
: S
\" _
Q "
W <
E >
R P
T Y
Y F
U G
I C
O R
P L
{ ?
} +
| |
- [
_ {
= ]
+ }
| zyz2011-vim | runtime/keymap/dvorak.vim | Vim Script | gpl2 | 507 |
" Vim Keymap file for russian characters, layout 'jcuken', classical variant
" (compatible with XFree86 'ru' keymap)
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
" Last Changed: 2001 Jun 23
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "ru"
loadkeymap
~ Ё CYRILLIC CAPITAL LETTER IO
` ё CYRILLIC SMALL LETTER IO
F А CYRILLIC CAPITAL LETTER A
< Б CYRILLIC CAPITAL LETTER BE
D В CYRILLIC CAPITAL LETTER VE
U Г CYRILLIC CAPITAL LETTER GHE
L Д CYRILLIC CAPITAL LETTER DE
T Е CYRILLIC CAPITAL LETTER IE
: Ж CYRILLIC CAPITAL LETTER ZHE
P З CYRILLIC CAPITAL LETTER ZE
B И CYRILLIC CAPITAL LETTER I
Q Й CYRILLIC CAPITAL LETTER SHORT I
R К CYRILLIC CAPITAL LETTER KA
K Л CYRILLIC CAPITAL LETTER EL
V М CYRILLIC CAPITAL LETTER EM
Y Н CYRILLIC CAPITAL LETTER EN
J О CYRILLIC CAPITAL LETTER O
G П CYRILLIC CAPITAL LETTER PE
H Р CYRILLIC CAPITAL LETTER ER
C С CYRILLIC CAPITAL LETTER ES
N Т CYRILLIC CAPITAL LETTER TE
E У CYRILLIC CAPITAL LETTER U
A Ф CYRILLIC CAPITAL LETTER EF
{ Х CYRILLIC CAPITAL LETTER HA
W Ц CYRILLIC CAPITAL LETTER TSE
X Ч CYRILLIC CAPITAL LETTER CHE
I Ш CYRILLIC CAPITAL LETTER SHA
O Щ CYRILLIC CAPITAL LETTER SHCHA
} Ъ CYRILLIC CAPITAL LETTER HARD SIGN
S Ы CYRILLIC CAPITAL LETTER YERU
M Ь CYRILLIC CAPITAL LETTER SOFT SIGN
\" Э CYRILLIC CAPITAL LETTER E
> Ю CYRILLIC CAPITAL LETTER YU
Z Я CYRILLIC CAPITAL LETTER YA
f а CYRILLIC SMALL LETTER A
, б CYRILLIC SMALL LETTER BE
d в CYRILLIC SMALL LETTER VE
u г CYRILLIC SMALL LETTER GHE
l д CYRILLIC SMALL LETTER DE
t е CYRILLIC SMALL LETTER IE
; ж CYRILLIC SMALL LETTER ZHE
p з CYRILLIC SMALL LETTER ZE
b и CYRILLIC SMALL LETTER I
q й CYRILLIC SMALL LETTER SHORT I
r к CYRILLIC SMALL LETTER KA
k л CYRILLIC SMALL LETTER EL
v м CYRILLIC SMALL LETTER EM
y н CYRILLIC SMALL LETTER EN
j о CYRILLIC SMALL LETTER O
g п CYRILLIC SMALL LETTER PE
h р CYRILLIC SMALL LETTER ER
c с CYRILLIC SMALL LETTER ES
n т CYRILLIC SMALL LETTER TE
e у CYRILLIC SMALL LETTER U
a ф CYRILLIC SMALL LETTER EF
[ х CYRILLIC SMALL LETTER HA
w ц CYRILLIC SMALL LETTER TSE
x ч CYRILLIC SMALL LETTER CHE
i ш CYRILLIC SMALL LETTER SHA
o щ CYRILLIC SMALL LETTER SHCHA
] ъ CYRILLIC SMALL LETTER HARD SIGN
s ы CYRILLIC SMALL LETTER YERU
m ь CYRILLIC SMALL LETTER SOFT SIGN
' э CYRILLIC SMALL LETTER E
. ю CYRILLIC SMALL LETTER YU
z я CYRILLIC SMALL LETTER YA
@ "
# '
$ *
% :
^ ,
& .
* ;
| zyz2011-vim | runtime/keymap/russian-jcuken.vim | Vim Script | gpl2 | 2,535 |
" Maintainer: Laszlo Zavaleta <zavaleta@smartchat.net.au>
" Last Changed: 2003 Aug 08
" it has all the accents and a few of the character alterations
let b:keymap = "magyar"
loadkey
` í
~ Í
! '
@ "
# +
$ !
^ /
& =
* (
( )
0 ö
) Ö
- ü
_ Ü
= ó
+ Ó
\\ ű
| Ű
[ ő
{ Ő
] ú
} Ú
; é
: É
' á
\" Á
/ -
< ?
> :
? _
| zyz2011-vim | runtime/keymap/magyar_utf-8.vim | Vim Script | gpl2 | 326 |
let s:encoding = &enc
if s:encoding == 'latin1'
if has("unix")
let s:encoding = 'iso-8859-2'
else
let s:encoding = 'cp1250'
endif
endif
if s:encoding == 'utf-8'
source <sfile>:p:h/croatian_utf-8.vim
elseif s:encoding == 'cp1250'
source <sfile>:p:h/croatian_cp1250.vim
else
source <sfile>:p:h/croatian_iso-8859-2.vim
endif
| zyz2011-vim | runtime/keymap/croatian.vim | Vim Script | gpl2 | 340 |
source <sfile>:p:h/serbian-latin_utf-8.vim
| zyz2011-vim | runtime/keymap/serbian-latin.vim | Vim Script | gpl2 | 43 |
" Polish letters keymap for utf-8
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" Polish:
" instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz}
" short keymap name for statusline
let b:keymap_name = "PL-slash-UTF"
scriptencoding latin1
loadkeymap
" Polish letters
/a <Char-0x0105> " LATIN SMALL LETTER A WITH OGONEK
/c <Char-0x0107> " LATIN SMALL LETTER C WITH ACUTE
/e <Char-0x0119> " LATIN SMALL LETTER E WITH OGONEK
/l <Char-0x0142> " LATIN SMALL LETTER L WITH STROKE
/n <Char-0x0144> " LATIN SMALL LETTER N WITH ACUTE
/o <Char-0x00f3> " LATIN SMALL LETTER O WITH ACUTE
/s <Char-0x015b> " LATIN SMALL LETTER S WITH ACUTE
/x <Char-0x017a> " LATIN SMALL LETTER Z WITH ACUTE
/z <Char-0x017c> " LATIN SMALL LETTER Z WITH DOT ABOVE
/A <Char-0x0104> " LATIN CAPITAL LETTER A WITH OGONEK
/C <Char-0x0106> " LATIN CAPITAL LETTER C WITH ACUTE
/E <Char-0x0118> " LATIN CAPITAL LETTER E WITH OGONEK
/L <Char-0x0141> " LATIN CAPITAL LETTER L WITH STROKE
/N <Char-0x0143> " LATIN CAPITAL LETTER N WITH ACUTE
/O <Char-0x00d3> " LATIN CAPITAL LETTER O WITH ACUTE
/S <Char-0x015a> " LATIN CAPITAL LETTER S WITH ACUTE
/X <Char-0x0179> " LATIN CAPITAL LETTER Z WITH ACUTE
/Z <Char-0x017b> " LATIN CAPITAL LETTER Z WITH DOT ABOVE
| zyz2011-vim | runtime/keymap/polish-slash_utf-8.vim | Vim Script | gpl2 | 1,425 |
" Vim Keymap file for ukrainian characters, layout 'jcuken', classical variant
" (compatible with XFree86 'uk' keymap)
" Derived from russian-jcuken.vim by Artem Chuprina <ran@ran.pp.ru>
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Anatoli Sakhnik <sakhnik@gmail.com>
" Last Changed: 2007 Nov 11
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "uk"
loadkeymap
~ ~
` '
F А CYRILLIC CAPITAL LETTER A
< Б CYRILLIC CAPITAL LETTER BE
D В CYRILLIC CAPITAL LETTER VE
U Г CYRILLIC CAPITAL LETTER GHE
L Д CYRILLIC CAPITAL LETTER DE
T Е CYRILLIC CAPITAL LETTER IE
: Ж CYRILLIC CAPITAL LETTER ZHE
P З CYRILLIC CAPITAL LETTER ZE
B И CYRILLIC CAPITAL LETTER I
Q Й CYRILLIC CAPITAL LETTER SHORT I
R К CYRILLIC CAPITAL LETTER KA
K Л CYRILLIC CAPITAL LETTER EL
V М CYRILLIC CAPITAL LETTER EM
Y Н CYRILLIC CAPITAL LETTER EN
J О CYRILLIC CAPITAL LETTER O
G П CYRILLIC CAPITAL LETTER PE
H Р CYRILLIC CAPITAL LETTER ER
C С CYRILLIC CAPITAL LETTER ES
N Т CYRILLIC CAPITAL LETTER TE
E У CYRILLIC CAPITAL LETTER U
A Ф CYRILLIC CAPITAL LETTER EF
{ Х CYRILLIC CAPITAL LETTER HA
W Ц CYRILLIC CAPITAL LETTER TSE
X Ч CYRILLIC CAPITAL LETTER CHE
I Ш CYRILLIC CAPITAL LETTER SHA
O Щ CYRILLIC CAPITAL LETTER SHCHA
} Ї CYRILLIC CAPITAL LETTER YI
S І CYRILLIC CAPITAL LETTER BYELORUSSION-UKRAINIAN I
M Ь CYRILLIC CAPITAL LETTER SOFT SIGN
\" Є CYRILLIC CAPITAL LETTER UKRAINIAN IE
> Ю CYRILLIC CAPITAL LETTER YU
Z Я CYRILLIC CAPITAL LETTER YA
| Ґ CYRILLIC CAPITAL LETTER GHE WITH UPTURN
f а CYRILLIC SMALL LETTER A
, б CYRILLIC SMALL LETTER BE
d в CYRILLIC SMALL LETTER VE
u г CYRILLIC SMALL LETTER GHE
l д CYRILLIC SMALL LETTER DE
t е CYRILLIC SMALL LETTER IE
; ж CYRILLIC SMALL LETTER ZHE
p з CYRILLIC SMALL LETTER ZE
b и CYRILLIC SMALL LETTER I
q й CYRILLIC SMALL LETTER SHORT I
r к CYRILLIC SMALL LETTER KA
k л CYRILLIC SMALL LETTER EL
v м CYRILLIC SMALL LETTER EM
y н CYRILLIC SMALL LETTER EN
j о CYRILLIC SMALL LETTER O
g п CYRILLIC SMALL LETTER PE
h р CYRILLIC SMALL LETTER ER
c с CYRILLIC SMALL LETTER ES
n т CYRILLIC SMALL LETTER TE
e у CYRILLIC SMALL LETTER U
a ф CYRILLIC SMALL LETTER EF
[ х CYRILLIC SMALL LETTER HA
w ц CYRILLIC SMALL LETTER TSE
x ч CYRILLIC SMALL LETTER CHE
i ш CYRILLIC SMALL LETTER SHA
o щ CYRILLIC SMALL LETTER SHCHA
] ї CYRILLIC SMALL LETTER YI
s і CYRILLIC SMALL LETTER BYELORUSSION-UKRAINIAN I
m ь CYRILLIC SMALL LETTER SOFT SIGN
' є CYRILLIC SMALL LETTER UKRAINIAN IE
. ю CYRILLIC SMALL LETTER YU
z я CYRILLIC SMALL LETTER YA
\\ ґ CYRILLIC SMALL LETTER GHE WITH UPTURN
@ "
# '
$ *
% :
^ ,
& .
* ;
~ ~
~~ <char-0x301> Stress
| zyz2011-vim | runtime/keymap/ukrainian-jcuken.vim | Vim Script | gpl2 | 2,738 |
" Vim Keymap file for russian characters, layout 'dvorak', MS Windows variant
" Derived from russian-jcuken.vim by Artem Chuprina <ran@ran.pp.ru>
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Serhiy Boiko <cris.kiev@gmail.com>
" Last Changed: 2007 Jun 29
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "ru"
loadkeymap
~ Ё CYRILLIC CAPITAL LETTER IO
` ё CYRILLIC SMALL LETTER IO
U А CYRILLIC CAPITAL LETTER A
W Б CYRILLIC CAPITAL LETTER BE
E В CYRILLIC CAPITAL LETTER VE
G Г CYRILLIC CAPITAL LETTER GHE
N Д CYRILLIC CAPITAL LETTER DE
Y Е CYRILLIC CAPITAL LETTER IE
S Ж CYRILLIC CAPITAL LETTER ZHE
L З CYRILLIC CAPITAL LETTER ZE
X И CYRILLIC CAPITAL LETTER I
\" Й CYRILLIC CAPITAL LETTER SHORT I
P К CYRILLIC CAPITAL LETTER KA
T Л CYRILLIC CAPITAL LETTER EL
K М CYRILLIC CAPITAL LETTER EM
F Н CYRILLIC CAPITAL LETTER EN
H О CYRILLIC CAPITAL LETTER O
I П CYRILLIC CAPITAL LETTER PE
D Р CYRILLIC CAPITAL LETTER ER
J С CYRILLIC CAPITAL LETTER ES
B Т CYRILLIC CAPITAL LETTER TE
> У CYRILLIC CAPITAL LETTER U
A Ф CYRILLIC CAPITAL LETTER EF
? Х CYRILLIC CAPITAL LETTER HA
< Ц CYRILLIC CAPITAL LETTER TSE
Q Ч CYRILLIC CAPITAL LETTER CHE
C Ш CYRILLIC CAPITAL LETTER SHA
R Щ CYRILLIC CAPITAL LETTER SHCHA
+ Ъ CYRILLIC CAPITAL LETTER HARD SIGN
O Ы CYRILLIC CAPITAL LETTER YERU
M Ь CYRILLIC CAPITAL LETTER SOFT SIGN
_ Э CYRILLIC CAPITAL LETTER E
V Ю CYRILLIC CAPITAL LETTER YU
: Я CYRILLIC CAPITAL LETTER YA
u а CYRILLIC SMALL LETTER A
w б CYRILLIC SMALL LETTER BE
e в CYRILLIC SMALL LETTER VE
g г CYRILLIC SMALL LETTER GHE
n д CYRILLIC SMALL LETTER DE
y е CYRILLIC SMALL LETTER IE
s ж CYRILLIC SMALL LETTER ZHE
l з CYRILLIC SMALL LETTER ZE
x и CYRILLIC SMALL LETTER I
' й CYRILLIC SMALL LETTER SHORT I
p к CYRILLIC SMALL LETTER KA
t л CYRILLIC SMALL LETTER EL
k м CYRILLIC SMALL LETTER EM
f н CYRILLIC SMALL LETTER EN
h о CYRILLIC SMALL LETTER O
i п CYRILLIC SMALL LETTER PE
d р CYRILLIC SMALL LETTER ER
j с CYRILLIC SMALL LETTER ES
b т CYRILLIC SMALL LETTER TE
. у CYRILLIC SMALL LETTER U
a ф CYRILLIC SMALL LETTER EF
/ х CYRILLIC SMALL LETTER HA
, ц CYRILLIC SMALL LETTER TSE
q ч CYRILLIC SMALL LETTER CHE
c ш CYRILLIC SMALL LETTER SHA
r щ CYRILLIC SMALL LETTER SHCHA
= ъ CYRILLIC SMALL LETTER HARD SIGN
o ы CYRILLIC SMALL LETTER YERU
m ь CYRILLIC SMALL LETTER SOFT SIGN
- э CYRILLIC SMALL LETTER E
v ю CYRILLIC SMALL LETTER YU
; я CYRILLIC SMALL LETTER YA
@ "
# № NUMERO SIGN
$ ;
^ :
& ?
z .
Z ,
[ -
] =
| zyz2011-vim | runtime/keymap/russian-dvorak.vim | Vim Script | gpl2 | 2,594 |
" Assume 'encoding' is set to "latin1" while actually iso-8859-6 is used
source <sfile>:p:h/arabic_utf-8.vim
| zyz2011-vim | runtime/keymap/arabic.vim | Vim Script | gpl2 | 109 |
" Vim Keymap file for Arabic
" Maintainer : Arabic Support group <support-at-arabeyes.org>
" Created by : Nadim Shaikli <nadim-at-arabeyes.org>
" Last Updated : 2003 Apr 26
" This is for a standard Microsoft Arabic keyboard layout.
" Use this short name in the status line.
let b:keymap_name = "arab"
loadkeymap
q <char-0x0636> " (1590) - DAD
w <char-0x0635> " (1589) - SAD
e <char-0x062b> " (1579) - THEH
r <char-0x0642> " (1602) - QAF
t <char-0x0641> " (1601) - FEH
y <char-0x063a> " (1594) - GHAIN
u <char-0x0639> " (1593) - AIN
i <char-0x0647> " (1607) - HEH
o <char-0x062e> " (1582) - KHAH
p <char-0x062d> " (1581) - HAH
[ <char-0x062c> " (1580) - JEEM
] <char-0x062f> " (1583) - DAL
a <char-0x0634> " (1588) - SHEEN
s <char-0x0633> " (1587) - SEEN
d <char-0x064a> " (1610) - YEH
f <char-0x0628> " (1576) - BEH
g <char-0x0644> " (1604) - LAM
h <char-0x0627> " (1575) - ALEF
j <char-0x062a> " (1578) - TEH
k <char-0x0646> " (1606) - NOON
l <char-0x0645> " (1605) - MEEM
; <char-0x0643> " (1603) - KAF
' <char-0x0637> " (1591) - TAH
z <char-0x0626> " (1574) - YEH with HAMZA ABOVE
x <char-0x0621> " (1569) - HAMZA
c <char-0x0624> " (1572) - WAW with HAMZA ABOVE
v <char-0x0631> " (1585) - REH
b <char-0x0644><char-0x0627> " (1604/1575) - LAA (lam alef)
n <char-0x0649> " (1609) - ALEF MAKSURA
m <char-0x0629> " (1577) - TEH MARBUTA
, <char-0x0648> " (1608) - WAW
. <char-0x0632> " (1586) - ZAIN
/ <char-0x0638> " (1592) - ZAH
0 <char-0x0660> " (1632) - Arabic 0
1 <char-0x0661> " (1633) - Arabic 1
2 <char-0x0662> " (1634) - Arabic 2
3 <char-0x0663> " (1635) - Arabic 3
4 <char-0x0664> " (1636) - Arabic 4
5 <char-0x0665> " (1637) - Arabic 5
6 <char-0x0666> " (1638) - Arabic 6
7 <char-0x0667> " (1639) - Arabic 7
8 <char-0x0668> " (1640) - Arabic 8
9 <char-0x0669> " (1641) - Arabic 9
` <char-0x0630> " (1584) - THAL
~ <char-0x0651> " (1617) - Tanween -- SHADDA
Q <char-0x064e> " (1614) - Tanween -- FATHA
W <char-0x064b> " (1611) - Tanween -- FATHATAN
E <char-0x064f> " (1615) - Tanween -- DAMMA
R <char-0x064c> " (1612) - Tanween -- DAMMATAN
T <char-0x0644><char-0x0625> " (1604/1573) - LAA with HAMZA BELOW
Y <char-0x0625> " (1573) - ALEF with HAMZA BELOW
U <char-0x0060> " (96) - ASCII -- `
I <char-0x00f7> " (247) - ASCII suppl -- div
O <char-0x00d7> " (215) - ASCII suppl -- mul
P <char-0x061b> " (1563) - Arabic Semicolon
{ <char-0x003c> " (60) - ASCII -- <
} <char-0x003e> " (62) - ASCII -- >
A <char-0x0650> " (1616) - Tanween -- KASRA
S <char-0x064d> " (1613) - Tanween -- KASRATAN
D <char-0x005b> " (91) - ASCII -- [
F <char-0x005d> " (93) - ASCII -- ]
G <char-0x0644><char-0x0623> " (1604/1571) - LAA with HAMZA ABOVE
H <char-0x0623> " (1571) - ALEF with HAMZA ABOVE
J <char-0x0640> " (1600) - TATWEEL
K <char-0x060c> " (1548) - Arabic Comma
L <char-0x002f> " (47) - ASCII -- /
Z <char-0x007e> " (126) - ASCII -- ~
X <char-0x0652> " (1618) - Tanween -- SUKUN
C <char-0x007b> " (123) - ASCII -- {
V <char-0x007d> " (125) - ASCII -- }
B <char-0x0644><char-0x0622> " (1604/1570) - LAA with MADDA ABOVE
N <char-0x0622> " (1570) - ALEF with MADDA ABOVE
M <char-0x0027> " (39) - ASCII -- '
< <char-0x002c> " (44) - ASCII -- ,
> <char-0x002e> " (46) - ASCII -- .
? <char-0x061f> " (1567) - Arabic Question Mark
| zyz2011-vim | runtime/keymap/arabic_utf-8.vim | Vim Script | gpl2 | 3,387 |
" Vim Keymap file for ukrainian characters, layout 'dvorak',
" MS Windows variant
" Derived from ukrainian-jcuken.vim by Anatoli Sakhnik <sakhnik@gmail.com>
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Serhiy Boiko <cris.kiev@gmail.com>
" Last Changed: 2007 Jun 29
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "uk"
loadkeymap
~ ~ CYRILLIC CAPITAL LETTER IO
` ' CYRILLIC SMALL LETTER IO
U А CYRILLIC CAPITAL LETTER A
W Б CYRILLIC CAPITAL LETTER BE
E В CYRILLIC CAPITAL LETTER VE
G Г CYRILLIC CAPITAL LETTER GHE
N Д CYRILLIC CAPITAL LETTER DE
Y Е CYRILLIC CAPITAL LETTER IE
S Ж CYRILLIC CAPITAL LETTER ZHE
L З CYRILLIC CAPITAL LETTER ZE
X И CYRILLIC CAPITAL LETTER I
\" Й CYRILLIC CAPITAL LETTER SHORT I
P К CYRILLIC CAPITAL LETTER KA
T Л CYRILLIC CAPITAL LETTER EL
K М CYRILLIC CAPITAL LETTER EM
F Н CYRILLIC CAPITAL LETTER EN
H О CYRILLIC CAPITAL LETTER O
I П CYRILLIC CAPITAL LETTER PE
D Р CYRILLIC CAPITAL LETTER ER
J С CYRILLIC CAPITAL LETTER ES
B Т CYRILLIC CAPITAL LETTER TE
> У CYRILLIC CAPITAL LETTER U
A Ф CYRILLIC CAPITAL LETTER EF
? Х CYRILLIC CAPITAL LETTER HA
< Ц CYRILLIC CAPITAL LETTER TSE
Q Ч CYRILLIC CAPITAL LETTER CHE
C Ш CYRILLIC CAPITAL LETTER SHA
R Щ CYRILLIC CAPITAL LETTER SHCHA
+ Ї CYRILLIC CAPITAL LETTER YI
O І CYRILLIC CAPITAL LETTER BYELORUSSION-UKRAINIAN I
M Ь CYRILLIC CAPITAL LETTER SOFT SIGN
_ Є CYRILLIC CAPITAL LETTER UKRAINIAN IE
V Ю CYRILLIC CAPITAL LETTER YU
: Я CYRILLIC CAPITAL LETTER YA
| Ґ CYRILLIC CAPITAL LETTER GHE WITH UPTURN
u а CYRILLIC SMALL LETTER A
w б CYRILLIC SMALL LETTER BE
e в CYRILLIC SMALL LETTER VE
g г CYRILLIC SMALL LETTER GHE
n д CYRILLIC SMALL LETTER DE
y е CYRILLIC SMALL LETTER IE
s ж CYRILLIC SMALL LETTER ZHE
l з CYRILLIC SMALL LETTER ZE
x и CYRILLIC SMALL LETTER I
' й CYRILLIC SMALL LETTER SHORT I
p к CYRILLIC SMALL LETTER KA
t л CYRILLIC SMALL LETTER EL
k м CYRILLIC SMALL LETTER EM
f н CYRILLIC SMALL LETTER EN
h о CYRILLIC SMALL LETTER O
i п CYRILLIC SMALL LETTER PE
d р CYRILLIC SMALL LETTER ER
j с CYRILLIC SMALL LETTER ES
b т CYRILLIC SMALL LETTER TE
. у CYRILLIC SMALL LETTER U
a ф CYRILLIC SMALL LETTER EF
/ х CYRILLIC SMALL LETTER HA
, ц CYRILLIC SMALL LETTER TSE
q ч CYRILLIC SMALL LETTER CHE
c ш CYRILLIC SMALL LETTER SHA
r щ CYRILLIC SMALL LETTER SHCHA
= ї CYRILLIC SMALL LETTER YI
o і CYRILLIC SMALL LETTER BYELORUSSION-UKRAINIAN I
m ь CYRILLIC SMALL LETTER SOFT SIGN
- є CYRILLIC SMALL LETTER UKRAINIAN IE
v ю CYRILLIC SMALL LETTER YU
; я CYRILLIC SMALL LETTER YA
\\ ґ CYRILLIC SMALL LETTER GHE WITH UPTURN
@ "
# № NUMERO SIGN
$ ;
^ :
& ?
z .
Z ,
[ -
] =
| zyz2011-vim | runtime/keymap/ukrainian-dvorak.vim | Vim Script | gpl2 | 2,740 |
" This script was originally created by Rory McCann <ebelular at gmail dot com>.
" Dan Kenigsberg noticed some deficiencies and suggested this one instead.
"
" Maintainer: Rory McCann <ebelular at gmail dot com>
" Modified by: Edward L. Fox <edyfox at gmail dot com>
" Last Change: 2006 Apr 30
"
"
"
" Kana.kmap (Japanese Phonograms)
"
" Converted from Gaspar Sinai's yudit 2.7.6
" GNU (C) Gaspar Sinai <gsinai@yudit.org>
"
" WARNING
" -------
" This version of Kana.kmap is different from the one that has been used
" with yudit-2.7.2 or earlier. The main difference is that this kmap is
" arranged in such a way that it complies with an authorized Japanese
" transliteration. As a result, backward compatibility is not guaranteed.
"
" NOTE
" ----
" 1. In general, the transliteration is based on Japanese Government's
" Cabinet Notification 1 (Dec. 9, 1954).
"
" Summary:
"
" (1) To transliterate Japanese language, Table 1 should be used
" primarily.
" (2) Table 2 may be used only when existing conventions such as
" international relationship should be respected.
" (3) Other transliteration is acceptable only when neither Table 1
" nor Table 2 gives any specification of the sound in question
"
" For details, refer to
"
" http://xembho.tripod.com/siryo/naikaku_kokuzi.html
"
" 2. The specification instructed by the Cabinet Notification is rather
" inadequate even for daily use. At the present time there are thus
" many unauthorized but widely accepted conventions used together with
" the authorized transliteration. This kmap contains some of them for
" user's convenience (cf. Hiragana 3 and Katakana 3).
"
" 3. For the unicode mapping relevant to this kmap, refer to 3075--30F5 of
"
" http://www.macchiato.com/unicode/charts.html
"
" HISTORY
" -------
" 2005-01-11 <danken@cs.technion.ac.il>
" * Converted to Vim format.
" 2003-01-22 <kazunobu.kuriyama@nifty.com>
"
" * Submitted to gsinai@yudit.org
"
" ============================================================================
scriptencoding utf-8
" ----------------------------------------------------------------------------
" Kigou (Punctuation etc.)
" ----------------------------------------------------------------------------
let b:keymap_name = "kana"
loadkeymap
"0x20 0x3000
, 、
. 。
,, 〃
xx 〆
@ 〇
< 〈
> 〉
<< 《
>> 》
{ 「
} 」
{{ 『
}} 』
[.( 【
).] 】
[ 〔
] 〕
[( 〖
)] 〗
[[ 〚
]] 〛
.. ・
- ー
" ----------------------------------------------------------------------------
" Hiragana 1 --- Table 1, Cabinet Notification No. 1 (Dec. 9, 1954)
" ----------------------------------------------------------------------------
a あ
i い
u う
e え
o お
ka か
ki き
ku く
ke け
ko こ
sa さ
si し
su す
se せ
so そ
ta た
ti ち
tu つ
te て
to と
na な
ni に
nu ぬ
ne ね
no の
ha は
hi ひ
hu ふ
he へ
ho ほ
ma ま
mi み
mu む
me め
mo も
ya や
yu ゆ
yo よ
ra ら
ri り
ru る
re れ
ro ろ
wa わ
ga が
gi ぎ
gu ぐ
ge げ
go ご
za ざ
zi じ
zu ず
ze ぜ
zo ぞ
da だ
de で
do ど
ba ば
bi び
bu ぶ
be べ
bo ぼ
pa ぱ
pi ぴ
pu ぷ
pe ぺ
po ぽ
kya きゃ
kyu きゅ
kyo きょ
sya しゃ
syu しゅ
syo しょ
tya ちゃ
tyu ちゅ
tyo ちょ
nya にゃ
nyu にゅ
nyo にょ
hya ひゃ
hyu ひゅ
hyo ひょ
mya みゃ
myu みゅ
myo みょ
rya りゃ
ryu りゅ
ryo りょ
gya ぎゃ
gyu ぎゅ
gyo ぎょ
zya じゃ
zyu じゅ
zyo じょ
bya びゃ
byu びゅ
byo びょ
pya ぴゃ
pyu ぴゅ
pyo ぴょ
n ん
n' ん
" ----------------------------------------------------------------------------
" Hiragana 2 --- Table 2, Cabinet Notification No. 1 (Dec. 9, 1954)
" ----------------------------------------------------------------------------
sha しゃ
shi し
shu しゅ
sho しょ
tsu つ
cha ちゃ
chi ち
chu ちゅ
cho ちょ
fu ふ
ja じゃ
ji じ
ju じゅ
jo じょ
di ぢ
du づ
dya ぢゃ
dyu ぢゅ
dyo ぢょ
kwa くゎ
gwa ぐゎ
wo を
" ----------------------------------------------------------------------------
" Hiragana 3 --- Conventional transliterations
" ----------------------------------------------------------------------------
" Small Hiragana: The prefix X is never pronounced. It is used as something
" like an escape character.
xa ぁ
xi ぃ
xu ぅ
xe ぇ
xo ぉ
xtu っ
xya ゃ
xyu ゅ
xyo ょ
xwa ゎ
" Historic `wi' and `we'
wi ゐ
we ゑ
" Preceded by a small `tu'
kka っか
kki っき
kku っく
kke っけ
kko っこ
ssa っさ
ssi っし
ssu っす
sse っせ
sso っそ
tta った
tti っち
ttu っつ
tte って
tto っと
hha っは
hhi っひ
hhu っふ
hhe っへ
hho っほ
mma っま
mmi っみ
mmu っむ
mme っめ
mmo っも
yya っや
yyu っゆ
yyo っよ
rra っら
rri っり
rru っる
rre っれ
rro っろ
wwa っわ
gga っが
ggi っぎ
ggu っぐ
gge っげ
ggo っご
zza っざ
zzi っじ
zzu っず
zze っぜ
zzo っぞ
dda っだ
ddi っぢ
ddu っづ
dde っで
ddo っど
bba っば
bbi っび
bbu っぶ
bbe っべ
bbo っぼ
ppa っぱ
ppi っぴ
ppu っぷ
ppe っぺ
ppo っぽ
" Proceded by a small `tu' and followed by a small 'ya', 'yu' or 'yo'
kkya っきゃ
kkyu っきゅ
kkyo っきょ
ssya っしゃ
ssyu っしゅ
ssyo っしょ
ttya っちゃ
ttyu っちゅ
ttyo っちょ
hhya っひゃ
hhyu っひゅ
hhyo っひょ
mmya っみゃ
mmyu っみゅ
mmyo っみょ
rrya っりゃ
rryu っりゅ
rryo っりょ
ggya っぎゃ
ggyu っぎゅ
ggyo っぎょ
zzya っじゃ
zzyu っじゅ
zzyo っじょ
bbya っびゃ
bbyu っびゅ
bbyo っびょ
ppya っぴゃ
ppyu っぴゅ
ppyo っぴょ
" ----------------------------------------------------------------------------
" Katakana 1 --- Table 1, Cabinet Notification No. 1 (Dec. 9, 1954)
" ----------------------------------------------------------------------------
A ア
I イ
U ウ
E エ
O オ
KA カ
KI キ
KU ク
KE ケ
KO コ
SA サ
SI シ
SU ス
SE セ
SO ソ
TA タ
TI チ
TU ツ
TE テ
TO ト
NA ナ
NI ニ
NU ヌ
NE ネ
NO ノ
HA ハ
HI ヒ
HU フ
HE ヘ
HO ホ
MA マ
MI ミ
MU ム
ME メ
MO モ
YA ヤ
YU ユ
YO ヨ
RA ラ
RI リ
RU ル
RE レ
RO ロ
WA ワ
GA ガ
GI ギ
GU グ
GE ゲ
GO ゴ
ZA ザ
ZI ジ
ZU ズ
ZE ゼ
ZO ゾ
DA ダ
DE デ
DO ド
BA バ
BI ビ
BU ブ
BE ベ
BO ボ
PA パ
PI ピ
PU プ
PE ペ
PO ポ
KYA キャ
KYU キュ
KYO キョ
SYA シャ
SYU シュ
SYO ショ
TYA チャ
TYU チュ
TYO チョ
NYA ニャ
NYU ニュ
NYO ニョ
HYA ヒャ
HYU ヒュ
HYO ヒョ
MYA ミャ
MYU ミュ
MYO ミョ
RYA リャ
RYU リュ
RYO リョ
GYA ギャ
GYU ギュ
GYO ギョ
ZYA ジャ
ZYU ジュ
ZYO ジョ
BYA ビャ
BYU ビュ
BYO ビョ
PYA ピャ
PYU ピュ
PYO ピョ
N ン
N' ン
" ----------------------------------------------------------------------------
" Katakana 2 --- Table 2, Cabinet Notification No. 1 (Dec. 9, 1954)
" ----------------------------------------------------------------------------
SHA シャ
SHI シ
SHU シュ
SHO ショ
TSU ツ
CHA チャ
CHI チ
CHU チュ
CHO チョ
FU フ
JA ジャ
JI ジ
JU ジュ
JO ジョ
DI ヂ
DU ヅ
DYA ヂャ
DYU ヂュ
DYO ヂョ
KWA クヮ
GWA グヮ
WO ヲ
" ----------------------------------------------------------------------------
" Katakana 3 --- Conventional transliterations
" ----------------------------------------------------------------------------
" Small Katakana: The prefix X is never pronounced. It is used as something
" like an escape character.
XA ァ
XI ィ
XU ゥ
XE ェ
XO ォ
XTU ッ
XYA ャ
XYU ュ
XYO ョ
XWA ヮ
" Used only for counting someone or something
XKA ヵ
XKE ヶ
" Historic `wi' and `we'
WI ヰ
WE ヱ
" Used for the sound `v' of European languages
VA ヴァ
VI ヴィ
VU ヴ
VE ヴェ
VO ヴォ
VYU ヴュ
" Preceded by a small `tu'
KKA ッカ
KKI ッキ
KKU ック
KKE ッケ
KKO ッコ
SSA ッサ
SSI ッシ
SSU ッス
SSE ッセ
SSO ッソ
TTA ッタ
TTI ッチ
TTU ッツ
TTE ッテ
TTO ット
HHA ッハ
HHI ッヒ
HHU ッフ
HHE ッヘ
HHO ッホ
MMA ッマ
MMI ッミ
MMU ッム
MME ッメ
MMO ッモ
YYA ッヤ
YYU ッユ
YYO ッヨ
RRA ッラ
RRI ッリ
RRU ッル
RRE ッレ
RRO ッロ
WWA ッワ
GGA ッガ
GGI ッギ
GGU ッグ
GGE ッゲ
GGO ッゴ
ZZA ッザ
ZZI ッジ
ZZU ッズ
ZZE ッゼ
ZZO ッゾ
DDA ッダ
DDI ッヂ
DDU ッヅ
DDE ッデ
DDO ッド
BBA ッバ
BBI ッビ
BBU ッブ
BBE ッベ
BBO ッボ
PPA ッパ
PPI ッピ
PPU ップ
PPE ッペ
PPO ッポ
" Proceded by a small `tu' and followed by a small 'ya', 'yu' or 'yo'
KKYA ッキャ
KKYU ッキュ
KKYO ッキョ
SSYA ッシャ
SSYU ッシュ
SSYO ッショ
TTYA ッチャ
TTYU ッチュ
TTYO ッチョ
HHYA ッヒャ
HHYU ッヒュ
HHYO ッヒョ
MMYA ッミャ
MMYU ッミュ
MMYO ッミョ
RRYA ッリャ
RRYU ッリュ
RRYO ッリョ
GGYA ッギャ
GGYU ッギュ
GGYO ッギョ
ZZYA ッジャ
ZZYU ッジュ
ZZYO ッジョ
BBYA ッビャ
BBYU ッビュ
BBYO ッビョ
PPYA ッピャ
PPYU ッピュ
PPYO ッピョ
| zyz2011-vim | runtime/keymap/kana.vim | Vim Script | gpl2 | 9,015 |
let encoding = &enc
if encoding == 'latin1'
if has("unix")
let encoding = 'iso-8859-8'
else
let encoding = 'cp1255'
endif
endif
if encoding == 'utf-8'
source <sfile>:p:h/hebrew_utf-8.vim
elseif encoding == 'cp1255'
source <sfile>:p:h/hebrew_cp1255.vim
else
source <sfile>:p:h/hebrew_iso-8859-8.vim
endif
| zyz2011-vim | runtime/keymap/hebrew.vim | Vim Script | gpl2 | 322 |
" Vim Keymap file for hebrew
" Maintainer : Ron Aaron <ron@ronware.org>
" Last Updated: Sun 10 Feb 2002 11:50:56
" This is my version of a phonetic Hebrew
" Use this short name in the status line.
let b:keymap_name = "hebp"
loadkeymap
K <char-234> " final kaf
M <char-237> " final mem
N <char-239> " final nun
P <char-243> " final pe
T <char-232> " tet
X <char-245> " final tsadi
a <char-224> " alef
b <char-225> " bet
d <char-227> " dalet
g <char-226> " gimel
h <char-228> " he
j <char-231> " het
k <char-235> " kaf
l <char-236> " lamed
m <char-238> " mem
n <char-240> " nun
s <char-241> " samekh
p <char-244> " pe
q <char-247> " qof
r <char-248> " resh
t <char-250> " tav
u <char-242> " ayin
v <char-229> " vav
w <char-249> " shin
x <char-246> " tsadi
y <char-233> " yod
z <char-230> " zayin
| zyz2011-vim | runtime/keymap/hebrewp_iso-8859-8.vim | Vim Script | gpl2 | 797 |
" Vim Keymap file for vietnamese through the usual viqr method
" Maintainer: Samuel Thibault <samuel.thibault@ens-lyon.org>
" Last Change: 2006 Jun 17
scriptencoding utf-8
let b:keymap_name = "vietnamese"
loadkeymap
a a
A A
a` à
A` À
a? ả
A? Ả
a~ ã
A~ Ã
a' á
A' Á
a. ạ
A. Ạ
a( ă
A( Ă
a(` ằ
A(` Ằ
a(? ẳ
A(? Ẳ
a(~ ẵ
A(~ Ẵ
a(' ắ
A(' Ắ
a(. ặ
A(. Ặ
a^ â
A^ Â
a^` ầ
A^` Ầ
a^? ẩ
A^? Ẩ
a^~ ẫ
A^~ Ẫ
a^' ấ
A^' Ấ
a^. ậ
A^. Ậ
d d
D D
dd đ
Dd Đ
DD Đ
e e
E E
e` è
E` È
e? ẻ
E? Ẻ
e~ ẽ
E~ Ẽ
e' é
E' É
e. ẹ
E. Ẹ
e^ ê
E^ Ê
e^` ề
E^` Ề
e^? ể
E^? Ể
e^~ ễ
E^~ Ễ
e^' ế
E^' Ế
e^. ệ
E^. Ệ
i i
I I
i` ì
I` Ì
i? ỉ
I? Ỉ
i~ ĩ
I~ Ĩ
i' í
I' Í
i. ị
I. Ị
o o
O O
o` ò
O` Ò
o? ỏ
O? Ỏ
o~ õ
O~ Õ
o' ó
O' Ó
o. ọ
O. Ọ
o^ ô
O^ Ô
o^` ồ
O^` Ồ
o^? ổ
O^? Ổ
o^~ ỗ
O^~ Ỗ
o^' ố
O^' Ố
o^. ộ
O^. Ộ
o+ ơ
O+ Ơ
o+` ờ
O+` Ờ
o+? ở
O+? Ở
o+~ ỡ
O+~ Ỡ
o+' ớ
O+' Ớ
o+. ợ
O+. Ợ
u u
U U
u` ù
U` Ù
u? ủ
U? Ủ
u~ ũ
U~ Ũ
u' ú
U' Ú
u. ụ
U. Ụ
u+ ư
U+ Ư
u+` ừ
U+` Ừ
u+? ử
U+? Ử
u+~ ữ
U+~ Ữ
u+' ứ
U+' Ứ
u+. ự
U+. Ự
y y
Y Y
y` ỳ
Y` Ỳ
y? ỷ
Y? Ỷ
y~ ỹ
Y~ Ỹ
y' ý
Y' Ý
y. ỵ
Y. Ỵ
\\d d
\\D D
| zyz2011-vim | runtime/keymap/vietnamese-viqr_utf-8.vim | Vim Script | gpl2 | 1,247 |
" Vim Keymap file for Sinhala (Sri Lanka) (2003-11-02)
" Maintainer : Harshula Jayasuriya <harshula@gmail.com>
" Last Updated: 2007-06-30
" This is a phonetic static mapping for a standard US-English keyboard
" (qwerty)
" http://www.nongnu.org/sinhala/doc/keymaps/sinhala-keyboard_3.html
" Copy the keymap to ~/.vim/keymap/
" Start gvim
" Need to disable the menu so that you can use the 'alt' key.
" set guioptions-=m
" Select the new keymap
" set keymap=sinhala-phonetic_utf-8
let b:keymap_name = "sinhala"
loadkeymap
<A-n> <char-0x0d82> " ං - anusvaraya (anusvara)
H <char-0x0d83> " ඃ - visargaya (visarga)
a <char-0x0d85> " අ - ayanna (a)
A <char-0x0d86> " ආ - aayanna (aa)
w <char-0x0d87> " ඇ - aeyanna (ae)
W <char-0x0d88> " ඈ - aeeyanna (aee)
i <char-0x0d89> " ඉ - iyanna (i)
I <char-0x0d8a> " ඊ - iiyanna (ii)
u <char-0x0d8b> " උ - uyanna (u)
U <char-0x0d8c> " ඌ - uuyanna (uu)
q <char-0x0d8d> " ඍ - iruyanna (iru)
Q <char-0x0d8e> " ඎ - iruuyanna (iruu)
<A-k> <char-0x0d8f> " ඏ - iluyanna (ilu)
<A-K> <char-0x0d90> " ඐ - iluuyanna (iluu)
e <char-0x0d91> " එ - eyanna (e)
E <char-0x0d92> " ඒ - eeyanna (ee)
<A-F> <char-0x0d93> " ඓ - aiyanna (ai)
o <char-0x0d94> " ඔ - oyanna (o)
O <char-0x0d95> " ඕ - ooyanna (oo)
<A-H> <char-0x0d96> " ඖ - auyanna (au)
k <char-0x0d9a> " ක - alpapraana kayanna (ka)
K <char-0x0d9b> " ඛ - mahaapraana kayanna (kha)
g <char-0x0d9c> " ග - alpapraana gayanna (ga)
G <char-0x0d9d> " ඝ - mahaapraana gayanna (gha)
<A-N> <char-0x0d9e> " ඞ - kantaja naasikyaya (nga)
<A-g> <char-0x0d9f> " ඟ - sanyaka gayanna (nnga)
c <char-0x0da0> " ච - alpapraana cayanna (ca)
C <char-0x0da1> " ඡ - mahaapraana cayanna (cha)
j <char-0x0da2> " ජ - alpapraana jayanna (ja)
J <char-0x0da3> " ඣ - mahaapraana jayanna (jha)
z <char-0x0da4> " ඤ - taaluja naasikyaya (nya)
Z <char-0x0da5> " ඥ - taaluja sanyooga naasikyaya (jnya)
<A-j> <char-0x0da6> " ඦ - sanyaka jayanna (nyja)
<A-t> <char-0x0da7> " ට - alpapraana ttayanna (tta)
<A-T> <char-0x0da8> " ඨ - mahaapraana ttayanna (ttha)
<A-d> <char-0x0da9> " ඩ - alpapraana ddayanna (dda)
<A-D> <char-0x0daa> " ඪ - mahaapraana ddayanna (ddha)
N <char-0x0dab> " ණ - muurdhaja nayanna (nna)
X <char-0x0dac> " ඬ - sanyaka ddayanna (nndda)
t <char-0x0dad> " ත - alpapraana tayanna (ta)
T <char-0x0dae> " ථ - mahaapraana tayanna (tha)
d <char-0x0daf> " ද - alpapraana dayanna (da)
D <char-0x0db0> " ධ - mahaapraana dayanna (dha)
n <char-0x0db1> " න - dantaja nayanna (na)
x <char-0x0db3> " ඳ - sanyaka dayanna (nda)
p <char-0x0db4> " ප - alpapraana payanna (pa)
P <char-0x0db5> " ඵ - mahaapraana payanna (pha)
b <char-0x0db6> " බ - alpapraana bayanna (ba)
B <char-0x0db7> " භ - mahaapraana bayanna (bha)
m <char-0x0db8> " ම - mayanna (ma)
M <char-0x0db9> " ඹ - amba bayanna (mba)
y <char-0x0dba> " ය - yayanna (ya)
r <char-0x0dbb> " ර - rayanna (ra)
l <char-0x0dbd> " ල - dantaja layanna (la)
v <char-0x0dc0> " ව - vayanna (va)
S <char-0x0dc1> " ශ - taaluja sayanna (sha)
<A-s> <char-0x0dc2> " ෂ - muurdhaja sayanna (ssa)
s <char-0x0dc3> " ස - dantaja sayanna (sa)
h <char-0x0dc4> " හ - hayanna (ha)
L <char-0x0dc5> " ළ - muurdhaja layanna (lla)
f <char-0x0dc6> " ෆ - fayanna (fa)
<A-a> <char-0x0dca> " ් - al-lakuna
<A-A> <char-0x0dcf> " ා - aela-pilla (aa)
<A-w> <char-0x0dd0> " ැ - ketti aeda-pilla (ae)
<A-W> <char-0x0dd1> " ෑ - diga aeda-pilla (aae)
<A-i> <char-0x0dd2> " ි - ketti is-pilla (i)
<A-I> <char-0x0dd3> " ී - diga is-pilla (ii)
<A-u> <char-0x0dd4> " ු - ketti paa-pilla (u)
<A-U> <char-0x0dd6> " ූ - diga paa-pilla (uu)
<A-q> <char-0x0dd8> " ෘ - gaetta-pilla (r)
<A-e> <char-0x0dd9> " ෙ - kombuva (e)
<A-E> <char-0x0dda> " ේ - diga kombuva (ee)
<A-f> <char-0x0ddb> " ෛ - kombu deka (ai)
<A-o> <char-0x0ddc> " ො - kombuva haa aela-pilla (o)
<A-O> <char-0x0ddd> " ෝ - kombuva haa diga aela-pilla (oo)
<A-h> <char-0x0dde> " ෞ - kombuva haa gayanukitta (au)
<A-l> <char-0x0ddf> " ෟ - gayanukitta (l)
<A-Q> <char-0x0df2> " ෲ - diga gaetta-pilla (rr)
<A-L> <char-0x0df3> " ෳ - diga gayanukitta (ll)
<A-.> <char-0x0df4> " ෴ - kunddaliya (punctuation)
R <char-0x0dca><char-0x200d><char-0x0dbb> " ්ර - rakaaranshaya
Y <char-0x0dca><char-0x200d><char-0x0dba> " ්ය - yansaya
<A-r> <char-0x0dbb><char-0x0dca><char-0x200d> " ර් - repaya
<A-,> <char-0x0dca><char-0x200d> " join - conjunct letters cons 0DCA ZWJ cons
<A-/> <char-0x200d><char-0x0dca> " touch - cons ZWJ 0DCA cons
<C-space> <char-0x00a0> " - no-break space. <S-space> didn't work.
<A-space> <char-0x200c> " - ZWNJ. <A-space> doesn't work!
| zyz2011-vim | runtime/keymap/sinhala-phonetic_utf-8.vim | Vim Script | gpl2 | 4,673 |
" Keymap file for the editing Tamil language files in TSCII encoding.
"
" Maintainer: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
" Last updated: 2006 June 17
"
" You will need a fixed width TSCII font to use this encoding. The
" Avarangal TSCII fixed width font (TSC_AvarangalFxd) is used to test
" this keymap.
"
" Visit http://www.tscii.org for more information about the TSCII
" encoding.
"
let b:keymap_name = "tamil_tscii"
loadkeymap
" Uyir (Vowels) letters
a <char-171>
aa <char-172>
A <char-172>
i <char-173>
ii <char-174>
I <char-174>
u <char-175>
uu <char-176>
U <char-176>
e <char-177>
ee <char-178>
E <char-178>
ai <char-179>
o <char-180>
oo <char-181>
O <char-181>
au <char-182>
q <char-183>
" mey (Consonants) letters
k <char-236>
ka <char-184>
kaa <char-184><char-161>
kA <char-184><char-161>
ki <char-184><char-162>
kii <char-184><char-163>
kI <char-184><char-163>
ku <char-204>
kuu <char-220>
kU <char-220>
ke <char-166><char-184>
kee <char-167><char-184>
kE <char-167><char-184>
kai <char-168><char-184>
ko <char-166><char-184><char-161>
koo <char-167><char-184><char-161>
kO <char-167><char-184><char-161>
kau <char-166><char-184><char-199>
g <char-236>
ga <char-184>
gaa <char-184><char-161>
gA <char-184><char-161>
gi <char-184><char-162>
gii <char-184><char-163>
gI <char-184><char-163>
gu <char-204>
guu <char-220>
gU <char-220>
ge <char-166><char-184>
gee <char-167><char-184>
gE <char-167><char-184>
gai <char-168><char-184>
go <char-166><char-184><char-161>
goo <char-167><char-184><char-161>
gO <char-167><char-184><char-161>
gau <char-166><char-184><char-199>
ng <char-237>
nga <char-185>
ngaa <char-185><char-161>
ngA <char-185><char-161>
ngi <char-185><char-162>
ngii <char-185><char-163>
ngI <char-185><char-163>
ngu <char-153>
nguu <char-155>
ngU <char-155>
nge <char-166><char-185>
ngee <char-167><char-185>
ngE <char-167><char-185>
ngai <char-168><char-185>
ngo <char-166><char-185><char-161>
ngoo <char-167><char-185><char-161>
ngO <char-167><char-185><char-161>
ngau <char-166><char-185><char-199>
ch <char-238>
cha <char-186>
chaa <char-186><char-161>
chA <char-186><char-161>
chi <char-186><char-162>
chii <char-186><char-163>
chI <char-186><char-163>
chu <char-204>
chuu <char-221>
chU <char-221>
che <char-166><char-186>
chee <char-167><char-186>
chE <char-167><char-186>
chai <char-168><char-186>
cho <char-166><char-186><char-161>
choo <char-167><char-186><char-161>
chO <char-167><char-186><char-161>
chau <char-166><char-186><char-199>
s <char-238>
sa <char-186>
saa <char-186><char-161>
sA <char-186><char-161>
si <char-186><char-162>
sii <char-186><char-163>
sI <char-186><char-163>
su <char-205>
suu <char-221>
sU <char-221>
se <char-166><char-186>
see <char-167><char-186>
sE <char-167><char-186>
sai <char-168><char-186>
so <char-166><char-186><char-161>
soo <char-167><char-186><char-161>
sO <char-167><char-186><char-161>
sau <char-166><char-186><char-199>
nj <char-239>
nja <char-187>
njaa <char-187><char-161>
njA <char-187><char-161>
nji <char-187><char-162>
njii <char-187><char-163>
njI <char-187><char-163>
nju <char-154>
njuu <char-156>
njU <char-156>
nje <char-166><char-187>
njee <char-167><char-187>
njE <char-167><char-187>
njai <char-168><char-187>
njo <char-166><char-187><char-161>
njoo <char-167><char-187><char-161>
njO <char-167><char-187><char-161>
njau <char-166><char-187><char-199>
t <char-240>
ta <char-188>
taa <char-188><char-161>
tA <char-188><char-161>
ti <char-202>
tii <char-203>
tI <char-203>
tu <char-206>
tuu <char-222>
tU <char-222>
te <char-166><char-188>
tee <char-167><char-188>
tE <char-167><char-188>
tai <char-168><char-188>
to <char-166><char-188><char-161>
too <char-167><char-188><char-161>
tO <char-167><char-188><char-161>
tau <char-166><char-188><char-199>
d <char-240>
da <char-188>
daa <char-188><char-161>
dA <char-188><char-161>
di <char-202>
dii <char-203>
dI <char-203>
du <char-206>
duu <char-222>
dU <char-222>
de <char-166><char-188>
dee <char-167><char-188>
dE <char-167><char-188>
dai <char-168><char-188>
do <char-166><char-188><char-161>
doo <char-167><char-188><char-161>
dO <char-167><char-188><char-161>
dau <char-166><char-188><char-199>
N <char-241>
Na <char-189>
Naa <char-189><char-161>
NA <char-189><char-161>
Ni <char-189><char-162>
Nii <char-189><char-163>
NI <char-189><char-163>
Nu <char-207>
Nuu <char-223>
NU <char-223>
Ne <char-166><char-189>
Nee <char-167><char-189>
NE <char-167><char-189>
Nai <char-168><char-189>
No <char-166><char-189><char-161>
Noo <char-167><char-189><char-161>
NO <char-167><char-189><char-161>
Nau <char-166><char-189><char-199>
th <char-242>
tha <char-190>
thaa <char-190><char-161>
thA <char-190><char-161>
thi <char-190><char-162>
thii <char-190><char-163>
thI <char-190><char-163>
thu <char-208>
thuu <char-224>
thU <char-224>
the <char-166><char-190>
thee <char-167><char-190>
thE <char-167><char-190>
thai <char-168><char-190>
tho <char-166><char-190><char-161>
thoo <char-167><char-190><char-161>
thO <char-167><char-190><char-161>
thau <char-166><char-190><char-199>
w <char-243>
wa <char-191>
waa <char-191><char-161>
wA <char-191><char-161>
wi <char-191><char-162>
wii <char-191><char-163>
wI <char-191><char-163>
wu <char-209>
wuu <char-225>
wU <char-225>
we <char-166><char-191>
wee <char-167><char-191>
wE <char-167><char-191>
wai <char-168><char-191>
wo <char-166><char-191><char-161>
woo <char-167><char-191><char-161>
wO <char-167><char-191><char-161>
wau <char-166><char-191><char-199>
n- <char-243>
n-a <char-191>
n-aa <char-191><char-161>
n-A <char-191><char-161>
n-i <char-191><char-162>
n-ii <char-191><char-163>
n-I <char-191><char-163>
n-u <char-209>
n-uu <char-225>
n-U <char-225>
n-e <char-166><char-191>
n-ee <char-167><char-191>
n-E <char-167><char-191>
n-ai <char-168><char-191>
n-o <char-166><char-191><char-161>
n-oo <char-167><char-191><char-161>
n-O <char-167><char-191><char-161>
n-au <char-166><char-191><char-199>
p <char-244>
pa <char-192>
paa <char-192><char-161>
pA <char-192><char-161>
pi <char-192><char-162>
pii <char-192><char-163>
pI <char-192><char-163>
pu <char-210>
puu <char-226>
pU <char-226>
pe <char-166><char-192>
pee <char-167><char-192>
pE <char-167><char-192>
pai <char-168><char-192>
po <char-166><char-192><char-161>
poo <char-167><char-192><char-161>
pO <char-167><char-192><char-161>
pau <char-166><char-192><char-199>
b <char-244>
ba <char-192>
baa <char-192><char-161>
bA <char-192><char-161>
bi <char-192><char-162>
bii <char-192><char-163>
bI <char-192><char-163>
bu <char-210>
buu <char-226>
bU <char-226>
be <char-166><char-192>
bee <char-167><char-192>
bE <char-167><char-192>
bai <char-168><char-192>
bo <char-166><char-192><char-161>
boo <char-167><char-192><char-161>
bO <char-167><char-192><char-161>
bau <char-166><char-192><char-199>
m <char-245>
ma <char-193>
maa <char-193><char-161>
mA <char-193><char-161>
mi <char-193><char-162>
mii <char-193><char-163>
mI <char-193><char-163>
mu <char-211>
muu <char-227>
mU <char-227>
me <char-166><char-193>
mee <char-167><char-193>
mE <char-167><char-193>
mai <char-168><char-193>
mo <char-166><char-193><char-161>
moo <char-167><char-193><char-161>
mO <char-167><char-193><char-161>
mau <char-166><char-193><char-199>
y <char-246>
ya <char-194>
yaa <char-194><char-161>
yA <char-194><char-161>
yi <char-194><char-162>
yii <char-194><char-163>
yI <char-194><char-163>
yu <char-212>
yuu <char-228>
yU <char-228>
ye <char-166><char-194>
yee <char-167><char-194>
yE <char-167><char-194>
yai <char-168><char-194>
yo <char-166><char-194><char-161>
yoo <char-167><char-194><char-161>
yO <char-167><char-194><char-161>
yau <char-166><char-194><char-199>
r <char-247>
ra <char-195>
raa <char-195><char-161>
rA <char-195><char-161>
ri <char-195><char-162>
rii <char-195><char-163>
rI <char-195><char-163>
ru <char-213>
ruu <char-229>
rU <char-229>
re <char-166><char-195>
ree <char-167><char-195>
rE <char-167><char-195>
rai <char-168><char-195>
ro <char-166><char-195><char-161>
roo <char-167><char-195><char-161>
rO <char-167><char-195><char-161>
rau <char-166><char-195><char-199>
l <char-248>
la <char-196>
laa <char-196><char-161>
lA <char-196><char-161>
li <char-196><char-162>
lii <char-196><char-163>
lI <char-196><char-163>
lu <char-214>
luu <char-230>
lU <char-230>
le <char-166><char-196>
lee <char-167><char-196>
lE <char-167><char-196>
lai <char-168><char-196>
lo <char-166><char-196><char-161>
loo <char-167><char-196><char-161>
lO <char-167><char-196><char-161>
lau <char-166><char-196><char-199>
v <char-249>
va <char-197>
vaa <char-197><char-161>
vA <char-197><char-161>
vi <char-197><char-162>
vii <char-197><char-163>
vI <char-197><char-163>
vu <char-215>
vuu <char-231>
vU <char-231>
ve <char-166><char-197>
vee <char-167><char-197>
vE <char-167><char-197>
vai <char-168><char-197>
vo <char-166><char-197><char-161>
voo <char-167><char-197><char-161>
vO <char-167><char-197><char-161>
vau <char-166><char-197><char-199>
z <char-250>
za <char-198>
zaa <char-198><char-161>
zA <char-198><char-161>
zi <char-198><char-162>
zii <char-198><char-163>
zI <char-198><char-163>
zu <char-216>
zuu <char-232>
zU <char-232>
ze <char-166><char-198>
zee <char-167><char-198>
zE <char-167><char-198>
zai <char-168><char-198>
zo <char-166><char-198><char-161>
zoo <char-167><char-198><char-161>
zO <char-167><char-198><char-161>
zau <char-166><char-198><char-199>
L <char-251>
La <char-199>
Laa <char-199><char-161>
LA <char-199><char-161>
Li <char-199><char-162>
Lii <char-199><char-163>
LI <char-199><char-163>
Lu <char-217>
Luu <char-233>
LU <char-233>
Le <char-166><char-199>
Lee <char-167><char-199>
LE <char-167><char-199>
Lai <char-168><char-199>
Lo <char-166><char-199><char-161>
Loo <char-167><char-199><char-161>
LO <char-167><char-199><char-161>
Lau <char-166><char-199><char-199>
R <char-252>
Ra <char-200>
Raa <char-200><char-161>
RA <char-200><char-161>
Ri <char-200><char-162>
Rii <char-200><char-163>
RI <char-200><char-163>
Ru <char-218>
Ruu <char-234>
RU <char-234>
Re <char-166><char-200>
Ree <char-167><char-200>
RE <char-167><char-200>
Rai <char-168><char-200>
Ro <char-166><char-200><char-161>
Roo <char-167><char-200><char-161>
RO <char-167><char-200><char-161>
Rau <char-166><char-200><char-199>
n <char-253>
na <char-201>
naa <char-201><char-161>
nA <char-201><char-161>
ni <char-201><char-162>
nii <char-201><char-163>
nI <char-201><char-163>
nu <char-219>
nuu <char-235>
nU <char-235>
ne <char-166><char-201>
nee <char-167><char-201>
nE <char-167><char-201>
nai <char-168><char-201>
no <char-166><char-201><char-161>
noo <char-167><char-201><char-161>
nO <char-167><char-201><char-161>
nau <char-166><char-201><char-199>
" Grantha letters
j <char-136>
ja <char-131>
jaa <char-131><char-161>
jA <char-131><char-161>
ji <char-131><char-162>
jii <char-131><char-163>
jI <char-131><char-163>
ju <char-131><char-164>
juu <char-131><char-164>
jU <char-131><char-165>
je <char-166><char-131>
jee <char-167><char-131>
jE <char-167><char-131>
jai <char-168><char-131>
jo <char-166><char-131><char-161>
joo <char-167><char-131><char-161>
jO <char-167><char-131><char-161>
jau <char-166><char-131><char-199>
sh <char-137>
sha <char-132>
shaa <char-132><char-161>
shA <char-132><char-161>
shi <char-132><char-162>
shii <char-132><char-163>
shI <char-132><char-163>
shu <char-131><char-164>
shuu <char-131><char-164>
shU <char-131><char-165>
she <char-166><char-132>
shee <char-167><char-132>
shE <char-167><char-132>
shai <char-168><char-132>
sho <char-166><char-132><char-161>
shoo <char-167><char-132><char-161>
shO <char-167><char-132><char-161>
shau <char-166><char-132><char-199>
S <char-138>
Sa <char-133>
Saa <char-133><char-161>
SA <char-133><char-161>
Si <char-133><char-162>
Sii <char-133><char-163>
SI <char-133><char-163>
Su <char-133><char-164>
Suu <char-133><char-165>
SU <char-133><char-165>
Se <char-166><char-133>
See <char-167><char-133>
SE <char-167><char-133>
Sai <char-168><char-133>
So <char-166><char-133><char-161>
Soo <char-167><char-133><char-161>
SO <char-167><char-133><char-161>
Sau <char-166><char-133><char-199>
h <char-139>
ha <char-134>
haa <char-134><char-161>
hA <char-134><char-161>
hi <char-134><char-162>
hii <char-134><char-163>
hI <char-134><char-163>
hu <char-134><char-164>
huu <char-134><char-165>
hU <char-134><char-165>
he <char-166><char-134>
hee <char-167><char-134>
hE <char-167><char-134>
hai <char-168><char-134>
ho <char-166><char-134><char-161>
hoo <char-167><char-134><char-161>
hO <char-167><char-134><char-161>
hau <char-166><char-134><char-199>
x <char-140>
xa <char-135>
xaa <char-135><char-161>
xA <char-135><char-161>
xi <char-135><char-162>
xii <char-135><char-163>
xI <char-135><char-163>
xu <char-135><char-164>
xuu <char-135><char-165>
xU <char-135><char-165>
xe <char-166><char-135>
xee <char-167><char-135>
xE <char-167><char-135>
xai <char-168><char-135>
xo <char-166><char-135><char-161>
xoo <char-167><char-135><char-161>
xO <char-167><char-135><char-161>
xau <char-166><char-135><char-199>
sri <char-130>
| zyz2011-vim | runtime/keymap/tamil_tscii.vim | Vim Script | gpl2 | 14,811 |
" Polish letters under VIM >= 6
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last changed: 2005 Jan 12
" Current version: 1.0.2
" History:
" 2005.01.12 1.0.2 keymap_name shortened, added Current version, History
" 2005.01.10 1.0.1 un*x line ends for all files
" 2005.01.09 1.0.0 Initial release
let encoding = &enc
if encoding == 'latin1'
if has("unix")
let encoding = 'iso-8859-2'
else
let encoding = 'cp1250'
endif
endif
if encoding == 'utf-8'
source <sfile>:p:h/polish-slash_utf-8.vim
elseif encoding == 'cp1250'
source <sfile>:p:h/polish-slash_cp1250.vim
elseif encoding == 'iso-8859-2'
source <sfile>:p:h/polish-slash_iso-8859-2.vim
else
source <sfile>:p:h/polish-slash_cp852.vim
endif
| zyz2011-vim | runtime/keymap/polish-slash.vim | Vim Script | gpl2 | 709 |
" Vim Keymap file for Hanyu Pinyin tone marks through numbers.
" Maintainer: Fredrik Roubert <roubert@df.lth.se>
" Last Changed: February 15, 2004
" All characters are given literally.
scriptencoding utf-8
" Use this short name in the status line.
let b:keymap_name = "py"
loadkeymap
a0 a
a1 ā
a2 á
a3 ǎ
a4 à
a5 a
e0 e
e1 ē
e2 é
e3 ě
e4 è
e5 e
i0 i
i1 ī
i2 í
i3 ǐ
i4 ì
i5 i
o0 o
o1 ō
o2 ó
o3 ǒ
o4 ò
o5 o
u0 u
u1 ū
u2 ú
u3 ǔ
u4 ù
u5 u
ü0 ü
ü1 ǖ
ü2 ǘ
ü3 ǚ
ü4 ǜ
ü5 ü
v0 ü
v1 ǖ
v2 ǘ
v3 ǚ
v4 ǜ
v5 ü
| zyz2011-vim | runtime/keymap/pinyin.vim | Vim Script | gpl2 | 536 |
" Vim Keymap file for Sinhala (Sri Lanka)
"
source <sfile>:p:h/sinhala-phonetic_utf-8.vim
| zyz2011-vim | runtime/keymap/sinhala.vim | Vim Script | gpl2 | 90 |
if &enc == 'utf-8'
source <sfile>:p:h/thaana-phonetic_utf-8.vim
endif
| zyz2011-vim | runtime/keymap/thaana.vim | Vim Script | gpl2 | 71 |
source <sfile>:p:h/czech_utf-8.vim
| zyz2011-vim | runtime/keymap/czech.vim | Vim Script | gpl2 | 35 |
" Vim Keymap file for Croatian characters, classical variant, UTF-8 encoding
"
" Maintainer: Paul B. Mahol <onemda@gmail.com>
" Last Changed: 2007 Oct 14
scriptencoding UTF-8
let b:keymap_name = "croatian-UTF-8"
" Uncomment line below if you prefer short name
"let b:keymap_name = "hr-UTF-8"
loadkeymap
z y
Z Y
y z
Y Z
[ š
{ Š
] đ
} Đ
; č
: Č
' ć
" Ć
\ ž
| Ž
@ "
^ &
& /
* (
( )
) =
_ ?
+ *
= +
- '
æ [
ç ]
â {
î }
< ;
> :
/ -
? _
ö @
ñ \
÷ |
å €
¬ <
® >
± ~
² ˇ
³ ^
´ ˘
µ °
· `
¹ ´
í §
Û ÷
Ü ¤
Ý ×
§ ß
ì ł
Ì Ł
° ˝
` ¸
½ ¸
¨
| zyz2011-vim | runtime/keymap/croatian_utf-8.vim | Vim Script | gpl2 | 610 |
" Assume 'encoding' is set to "latin1" while actually cp1253 or iso-8859-7 is
" being used
if has("win16") || has("win32") || has("win32unix")
source <sfile>:p:h/greek_cp1253.vim
else
source <sfile>:p:h/greek_iso-8859-7.vim
endif
| zyz2011-vim | runtime/keymap/greek.vim | Vim Script | gpl2 | 234 |
source <sfile>:p:h/esperanto_utf-8.vim
| zyz2011-vim | runtime/keymap/esperanto.vim | Vim Script | gpl2 | 39 |
" Vim Keymap file for Serbian characters, classical variant, UTF-8 encoding
"
" Maintainer: Aleksandar Veselinovic <aleksa@cs.cmu.edu>
" URL: http://www.cs.cmu.edu/~aleksa/personal/vim/keymap/serbian-latin-UTF-8.vim
" Last Changed: 2002 Mar 29
scriptencoding UTF-8
let b:keymap_name = "serbian-UTF-8"
loadkeymap
Y Z
{ Š
} Đ
y z
[ š
] đ
: Č
\" Ć
\| Ž
; č
' ć
\\ ž
"Z Y
"z y
< ;
> :
/ -
_ ?
,, „
'' ”
E$ <char-0x20AC> " EURO SIGN
-- <char-0x2013> " endash
--- <char-0x2014> " emdash
" @ "
" # '
" $ *
" % :
" ^ ,
" & .
" * ;
| zyz2011-vim | runtime/keymap/serbian-latin_utf-8.vim | Vim Script | gpl2 | 556 |
" Vim keymap file for Bulgarian and Russian characters, "bds" layout.
" Most of it can be used with both utf-8 and cp1251 file encodings, except
" the accented characters which can only be stored in utf-8.
" This file itself is in utf-8.
" Maintainer: Boyko Bantchev <boykobb@gmail.com>
" URI: http://www.math.bas.bg/bantchev/vim/bulgarian-bds.vim
" Last Changed: 2010 May 4
" This keymap corresponds to what is called Bulgarian standard typewriter
" keyboard layout, or "БДС".
"
" Note that, in addition to the Bulgarian alphabet, the BDS layout prescribes
" the presence of the following characters:
" — The Russian letters ы (small), and Э and э (capital and small).
" — The latin capital letters I and V – used to type Roman numerals
" without having to leave Cyrillic mode.
"
" Some punctuation characters present in ascii are mapped in BDS to keys
" different from the ones they occupy in the QWERTY layout, because the latter
" keys are used to type other characters.
"
" In this keymap, also defined (besides BDS) are:
" — The Russian letters Ё and ё (capital and small), as well as the
" Russian capital letter Ы (see above for the small counterpart).
" This way, using the bulgarian-bds keymap, one can access both
" the Bulgarian and the Russian alphabets.
" — The quotation marks „ “ ” ‘ ’ (used in the Bulgarian and English
" quotation styles), as well as « » (Russian quotation style).
" — The characters §, №, – (en-dash), — (em-dash), …, •, ·, ±, °, ¬,
" ¤, €, ‰, †, ‡, and ¶.
"
" The keymap also defines key combinations for grave and acute accents.
" (Grave accent is used in Bulgarian, acute in Russian, but both accents
" apply to other languages as well.)
"
" For details of what key or key combination maps to what character, please
" see below the map itself.
"
" See also http://www.math.bas.bg/bantchev/vim/kbdbul.html (in Bulgarian).
scriptencoding utf-8
let b:keymap_name = "bds"
loadkeymap
D А CYRILLIC CAPITAL LETTER A
? Б CYRILLIC CAPITAL LETTER BE
L В CYRILLIC CAPITAL LETTER VE
H Г CYRILLIC CAPITAL LETTER GHE
O Д CYRILLIC CAPITAL LETTER DE
E Е CYRILLIC CAPITAL LETTER IE
E:: Ё CYRILLIC CAPITAL LETTER IO
G Ж CYRILLIC CAPITAL LETTER ZHE
P З CYRILLIC CAPITAL LETTER ZE
R И CYRILLIC CAPITAL LETTER I
X Й CYRILLIC CAPITAL LETTER SHORT I
U К CYRILLIC CAPITAL LETTER KA
> Л CYRILLIC CAPITAL LETTER EL
: М CYRILLIC CAPITAL LETTER EM
K Н CYRILLIC CAPITAL LETTER EN
F О CYRILLIC CAPITAL LETTER O
M П CYRILLIC CAPITAL LETTER PE
< Р CYRILLIC CAPITAL LETTER ER
I С CYRILLIC CAPITAL LETTER ES
J Т CYRILLIC CAPITAL LETTER TE
W У CYRILLIC CAPITAL LETTER U
B Ф CYRILLIC CAPITAL LETTER EF
N Х CYRILLIC CAPITAL LETTER HA
{ Ц CYRILLIC CAPITAL LETTER TSE
\" Ч CYRILLIC CAPITAL LETTER CHE
T Ш CYRILLIC CAPITAL LETTER SHA
Y Щ CYRILLIC CAPITAL LETTER SHCHA
C Ъ CYRILLIC CAPITAL LETTER HARD SIGN
CX Ы CYRILLIC CAPITAL LETTER YERU
A Ь CYRILLIC CAPITAL LETTER SOFT SIGN
V Э CYRILLIC CAPITAL LETTER REVERSED E
Z Ю CYRILLIC CAPITAL LETTER YU
S Я CYRILLIC CAPITAL LETTER YA
d а CYRILLIC SMALL LETTER A
\/ б CYRILLIC SMALL LETTER BE
l в CYRILLIC SMALL LETTER VE
h г CYRILLIC SMALL LETTER GHE
o д CYRILLIC SMALL LETTER DE
e е CYRILLIC SMALL LETTER IE
e:: ё CYRILLIC SMALL LETTER IO
g ж CYRILLIC SMALL LETTER ZHE
p з CYRILLIC SMALL LETTER ZE
r и CYRILLIC SMALL LETTER I
x й CYRILLIC SMALL LETTER SHORT I
u к CYRILLIC SMALL LETTER KA
\. л CYRILLIC SMALL LETTER EL
; м CYRILLIC SMALL LETTER EM
k н CYRILLIC SMALL LETTER EN
f о CYRILLIC SMALL LETTER O
m п CYRILLIC SMALL LETTER PE
, р CYRILLIC SMALL LETTER ER
i с CYRILLIC SMALL LETTER ES
j т CYRILLIC SMALL LETTER TE
w у CYRILLIC SMALL LETTER U
b ф CYRILLIC SMALL LETTER EF
n х CYRILLIC SMALL LETTER HA
[ ц CYRILLIC SMALL LETTER TSE
' ч CYRILLIC SMALL LETTER CHE
t ш CYRILLIC SMALL LETTER SHA
y щ CYRILLIC SMALL LETTER SHCHA
c ъ CYRILLIC SMALL LETTER HARD SIGN
Q ы CYRILLIC SMALL LETTER YERU
a ь CYRILLIC SMALL LETTER SOFT SIGN
v э CYRILLIC SMALL LETTER REVERSED E
z ю CYRILLIC SMALL LETTER YU
s я CYRILLIC SMALL LETTER YA
_ I LATIN CAPITAL LETTER I
+ V LATIN CAPITAL LETTER V
$ " QUOTATION MARK
\\ ( LEFT PARENTHESIS
| ) RIGHT PARENTHESIS
# + PLUS SIGN
q , COMMA
( - HYPHEN-MINUS
= . FULL STOP (PERIOD)
* / SOLIDUS (SLASH)
& : COLON
] ; SEMICOLON
^ = EQUALS SIGN
@ ? QUESTION MARK
} § SECTION SIGN (PARAGRAPH SIGN)
) № NUMERO SIGN
-- – EN DASH
--- — EM DASH
.. … HORIZONTAL ELLIPSIS
`` “ LEFT DOUBLE QUOTATION MARK
'' ” RIGHT DOUBLE QUOTATION MARK
,, „ DOUBLE LOW-9 QUOTATION MARK
`. ‘ LEFT SINGLE QUOTATION MARK
'. ’ RIGHT SINGLE QUOTATION MARK
<< « LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
>> » RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
** • BULLET
,. · MIDDLE DOT
+- ± PLUS-MINUS SIGN
^o ° DEGREE SIGN
~~ ¬ NOT SIGN
@@ ¤ CURRENCY SIGN
$$ € EURO SIGN
%% ‰ PER MILLE SIGN
+| † DAGGER
++ ‡ DOUBLE DAGGER
|| ¶ PILCROW SIGN
" Accented characters cannot map onto cp1251 – use utf-8 file encoding.
" To apply an accent to a letter, type the corresponding key combination
" to the immediate right of that letter.
^` <char-0x300> COMBINING GRAVE ACCENT
^' <char-0x301> COMBINING ACUTE ACCENT
| zyz2011-vim | runtime/keymap/bulgarian-bds.vim | Vim Script | gpl2 | 6,501 |
" Vim Keymap file for hebrew
" Maintainer : Ron Aaron <ron@ronware.org>
" Last Updated: Wed 28 Feb 2001 21:28:51
" This is the standard Israeli keyboard layout with (my nonstandard locations
" for) niqud, for utf:
" Use this short name in the status line.
let b:keymap_name = "heb"
loadkeymap
a <char-0x5e9> " ש - shin
b <char-0x5e0> " נ - nun
c <char-0x5d1> " ב - bet
d <char-0x5d2> " ג - gimel
e <char-0x5e7> " ק - qof
f <char-0x5db> " כ - kaf
g <char-0x5e2> " ע - ayin
h <char-0x5d9> " י - yod
i <char-0x5df> " ן - final nun
j <char-0x5d7> " ח - het
k <char-0x5dc> " ל - lamed
l <char-0x5da> " ך - final kaf
m <char-0x5e6> " צ - tsadi
n <char-0x5de> " מ - mem
o <char-0x5dd> " ם - final mem
p <char-0x5e4> " פ - pe
q / " / - slash
r <char-0x5e8> " ר - resh
s <char-0x5d3> " ד - dalet
t <char-0x5d0> " א - alef
u <char-0x5d5> " ו - vav
v <char-0x5d4> " ה - he
w ' " ' - single-quote
x <char-0x5e1> " ס - samekh
y <char-0x5d8> " ט - tet
z <char-0x5d6> " ז - zayin
, <char-0x5ea> " ת - tav
. <char-0x5e5> " ץ - final tsadi
; <char-0x5e3> " ף - final pe
' , " , - comma
/ . " . - period
` ; " ; - semicolon
A: <Char-0x5b0> " sheva
HE <Char-0x5b1> " hataf segol
HA <Char-0x5b2> " hataf patah
HO <Char-0x5b3> " hataf qamats
I <Char-0x5b4> " hiriq
AY <Char-0x5b5> " tsere
E <Char-0x5b6> " segol
AA <Char-0x5b7> " patah
AO <Char-0x5b8> " qamats
O <Char-0x5b9> " holam
U <Char-0x5bb> " qubuts
D <Char-0x5bc> " dagesh
]T <Char-0x5bd> " meteg
]Q <Char-0x5be> " maqaf
]R <Char-0x5bf> " rafe
]p <Char-0x5c0> " paseq
SR <Char-0x5c1> " shin-dot
SL <Char-0x5c2> " sin-dot
]P <Char-0x5c3> " sof-pasuq
VV <Char-0x5f0> " double-vav
VY <Char-0x5f1> " vav-yod
YY <Char-0x5f2> " yod-yod
" cantillation:
C: <Char-0x591> " etnahta
Cs <Char-0x592> " segol
CS <Char-0x593> " shalshelet
Cz <Char-0x594> " zaqef qatan
CZ <Char-0x595> " zaqef gadol
Ct <Char-0x596> " tipeha
Cr <Char-0x597> " revia
Cq <Char-0x598> " zarqa
Cp <Char-0x599> " pashta
C! <Char-0x59a> " yetiv
Cv <Char-0x59b> " tevir
Cg <Char-0x59c> " geresh
C* <Char-0x59d> " geresh qadim
CG <Char-0x59e> " gershayim
CP <Char-0x59f> " qarnei-parah
Cy <Char-0x5aa> " yerach-ben-yomo
Co <Char-0x5ab> " ole
Ci <Char-0x5ac> " iluy
Cd <Char-0x5ad> " dehi
Cn <Char-0x5ae> " zinor
CC <Char-0x5af> " masora circle
X` <Char-0xfb20> " Alternative `ayin
X' <Char-0xfb21> " Alternative 'alef
X-d <Char-0xfb22> " Alternative dalet
X-h <Char-0xfb23> " Alternative he
X-k <Char-0xfb24> " Alternative kaf
X-l <Char-0xfb25> " Alternative lamed
X-m <Char-0xfb26> " Alternative mem-sofit
X-r <Char-0xfb27> " Alternative resh
X-t <Char-0xfb28> " Alternative tav
X-+ <Char-0xfb29> " Alternative plus
XW <Char-0xfb2a> " shin+shin-dot
Xw <Char-0xfb2b> " shin+sin-dot
X..W <Char-0xfb2c> " shin+shin-dot+dagesh
X..w <Char-0xfb2d> " shin+sin-dot+dagesh
XA <Char-0xfb2e> " alef+patah
XO <Char-0xfb2f> " alef+qamats
XI <Char-0xfb30> " alef+hiriq (mapiq)
X.b <Char-0xfb31> " bet+dagesh
X.g <Char-0xfb32> " gimel+dagesh
X.d <Char-0xfb33> " dalet+dagesh
X.h <Char-0xfb34> " he+dagesh
Xu <Char-0xfb35> " vav+dagesh
X.z <Char-0xfb36> " zayin+dagesh
X.T <Char-0xfb38> " tet+dagesh
X.y <Char-0xfb39> " yud+dagesh
X.K <Char-0xfb3a> " kaf sofit+dagesh
X.k <Char-0xfb3b> " kaf+dagesh
X.l <Char-0xfb3c> " lamed+dagesh
X.m <Char-0xfb3e> " mem+dagesh
X.n <Char-0xfb40> " nun+dagesh
X.s <Char-0xfb41> " samech+dagesh
X.P <Char-0xfb43> " pe sofit+dagesh
X.p <Char-0xfb44> " pe+dagesh
X.x <Char-0xfb46> " tsadi+dagesh
X.q <Char-0xfb47> " qof+dagesh
X.r <Char-0xfb48> " resh+dagesh
X.w <Char-0xfb49> " shin+dagesh
X.t <Char-0xfb4a> " tav+dagesh
Xo <Char-0xfb4b> " vav+holam
XRb <Char-0xfb4c> " bet+rafe
XRk <Char-0xfb4d> " kaf+rafe
XRp <Char-0xfb4e> " pe+rafe
Xal <Char-0xfb4f> " alef-lamed
| zyz2011-vim | runtime/keymap/hebrew_utf-8.vim | Vim Script | gpl2 | 3,816 |
" Polish letters keymap for cp852
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" Polish:
" instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz}
" short keymap name for statusline
let b:keymap_name = "PL-slash-DOS"
scriptencoding latin1
loadkeymap
" Polish letters
/a <Char-165> " LATIN SMALL LETTER A WITH OGONEK
/c <Char-134> " LATIN SMALL LETTER C WITH ACUTE
/e <Char-169> " LATIN SMALL LETTER E WITH OGONEK
/l <Char-136> " LATIN SMALL LETTER L WITH STROKE
/n <Char-228> " LATIN SMALL LETTER N WITH ACUTE
/o <Char-162> " LATIN SMALL LETTER O WITH ACUTE
/s <Char-152> " LATIN SMALL LETTER S WITH ACUTE
/x <Char-171> " LATIN SMALL LETTER Z WITH ACUTE
/z <Char-190> " LATIN SMALL LETTER Z WITH DOT ABOVE
/A <Char-164> " LATIN CAPITAL LETTER A WITH OGONEK
/C <Char-143> " LATIN CAPITAL LETTER C WITH ACUTE
/E <Char-168> " LATIN CAPITAL LETTER E WITH OGONEK
/L <Char-157> " LATIN CAPITAL LETTER L WITH STROKE
/N <Char-227> " LATIN CAPITAL LETTER N WITH ACUTE
/O <Char-224> " LATIN CAPITAL LETTER O WITH ACUTE
/S <Char-151> " LATIN CAPITAL LETTER S WITH ACUTE
/X <Char-141> " LATIN CAPITAL LETTER Z WITH ACUTE
/Z <Char-189> " LATIN CAPITAL LETTER Z WITH DOT ABOVE
| zyz2011-vim | runtime/keymap/polish-slash_cp852.vim | Vim Script | gpl2 | 1,371 |
" Vim Keymap file for russian characters, layout 'jcuken', MS Windows variant
" (slightly incompatible with XFree86 'ru' keymap - makes use of NUMERO SIGN)
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
" Last Changed: 2001 Jun 23
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "ru"
loadkeymap
~ Ё CYRILLIC CAPITAL LETTER IO
` ё CYRILLIC SMALL LETTER IO
F А CYRILLIC CAPITAL LETTER A
< Б CYRILLIC CAPITAL LETTER BE
D В CYRILLIC CAPITAL LETTER VE
U Г CYRILLIC CAPITAL LETTER GHE
L Д CYRILLIC CAPITAL LETTER DE
T Е CYRILLIC CAPITAL LETTER IE
: Ж CYRILLIC CAPITAL LETTER ZHE
P З CYRILLIC CAPITAL LETTER ZE
B И CYRILLIC CAPITAL LETTER I
Q Й CYRILLIC CAPITAL LETTER SHORT I
R К CYRILLIC CAPITAL LETTER KA
K Л CYRILLIC CAPITAL LETTER EL
V М CYRILLIC CAPITAL LETTER EM
Y Н CYRILLIC CAPITAL LETTER EN
J О CYRILLIC CAPITAL LETTER O
G П CYRILLIC CAPITAL LETTER PE
H Р CYRILLIC CAPITAL LETTER ER
C С CYRILLIC CAPITAL LETTER ES
N Т CYRILLIC CAPITAL LETTER TE
E У CYRILLIC CAPITAL LETTER U
A Ф CYRILLIC CAPITAL LETTER EF
{ Х CYRILLIC CAPITAL LETTER HA
W Ц CYRILLIC CAPITAL LETTER TSE
X Ч CYRILLIC CAPITAL LETTER CHE
I Ш CYRILLIC CAPITAL LETTER SHA
O Щ CYRILLIC CAPITAL LETTER SHCHA
} Ъ CYRILLIC CAPITAL LETTER HARD SIGN
S Ы CYRILLIC CAPITAL LETTER YERU
M Ь CYRILLIC CAPITAL LETTER SOFT SIGN
\" Э CYRILLIC CAPITAL LETTER E
> Ю CYRILLIC CAPITAL LETTER YU
Z Я CYRILLIC CAPITAL LETTER YA
f а CYRILLIC SMALL LETTER A
, б CYRILLIC SMALL LETTER BE
d в CYRILLIC SMALL LETTER VE
u г CYRILLIC SMALL LETTER GHE
l д CYRILLIC SMALL LETTER DE
t е CYRILLIC SMALL LETTER IE
; ж CYRILLIC SMALL LETTER ZHE
p з CYRILLIC SMALL LETTER ZE
b и CYRILLIC SMALL LETTER I
q й CYRILLIC SMALL LETTER SHORT I
r к CYRILLIC SMALL LETTER KA
k л CYRILLIC SMALL LETTER EL
v м CYRILLIC SMALL LETTER EM
y н CYRILLIC SMALL LETTER EN
j о CYRILLIC SMALL LETTER O
g п CYRILLIC SMALL LETTER PE
h р CYRILLIC SMALL LETTER ER
c с CYRILLIC SMALL LETTER ES
n т CYRILLIC SMALL LETTER TE
e у CYRILLIC SMALL LETTER U
a ф CYRILLIC SMALL LETTER EF
[ х CYRILLIC SMALL LETTER HA
w ц CYRILLIC SMALL LETTER TSE
x ч CYRILLIC SMALL LETTER CHE
i ш CYRILLIC SMALL LETTER SHA
o щ CYRILLIC SMALL LETTER SHCHA
] ъ CYRILLIC SMALL LETTER HARD SIGN
s ы CYRILLIC SMALL LETTER YERU
m ь CYRILLIC SMALL LETTER SOFT SIGN
' э CYRILLIC SMALL LETTER E
. ю CYRILLIC SMALL LETTER YU
z я CYRILLIC SMALL LETTER YA
@ "
# № NUMERO SIGN
$ ;
^ :
& ?
/ .
? ,
| zyz2011-vim | runtime/keymap/russian-jcukenwin.vim | Vim Script | gpl2 | 2,588 |
" add in the vowel points, known as 'niqud', which are present in
" CP1255: Note: there are several 'standards' for placement of the vowel
" points, and I ignored all of them. Since we can input English by simply
" pressing Ctrl-^ and eliminating this map, I saw no reason to try to use
" exotic key locations. If you don't like it, that's just too bad :-)
let b:keymap_name = "heb"
loadkeymap
a <char-249> " ש - shin
b <char-240> " נ - nun
c <char-225> " ב - bet
d <char-226> " ג - gimel
e <char-247> " ק - qof
f <char-235> " כ - kaf
g <char-242> " ע - ayin
h <char-233> " י - yod
i <char-239> " ן - final nun
j <char-231> " ח - het
k <char-236> " ל - lamed
l <char-234> " ך - final kaf
m <char-246> " צ - tsadi
n <char-238> " מ - mem
o <char-237> " ם - final mem
p <char-244> " פ - pe
q / " / - slash
r <char-248> " ר - resh
s <char-227> " ד - dalet
t <char-224> " א - alef
u <char-229> " ו - vav
v <char-228> " ה - he
w ' " ' - single-quote
x <char-241> " ס - samekh
y <char-232> " ט - tet
z <char-230> " ז - zayin
, <char-250> " ת - tav
. <char-245> " ץ - final tsadi
; <char-243> " ף - final pe
' , " , - comma
/ . " . - period
` ; " ; - semicolon
" vowels:
A: <Char-192> " sheva
HE <Char-193> " hataf segol
HA <Char-194> " hataf patah
HO <Char-195> " hataf qamats
I <Char-196> " hiriq
AY <Char-197> " tsere
E <Char-198> " segol
AA <Char-199> " patah
AO <Char-200> " qamats
O <Char-201> " holam
U <Char-203> " qubuts
D <Char-204> " dagesh
]T <Char-205> " meteg
]Q <Char-206> " maqaf
]R <ּChar-207> " rafe
]p <Char-208> " paseq
SR <Char-209> " shin-dot
SL <Char-210> " sin-dot
]P <Char-211> " sof-pasuq
VV <Char-212> " double-vav
VY <Char-213> " vav-yod
YY <Char-214> " yod-yod
| zyz2011-vim | runtime/keymap/hebrew_cp1255.vim | Vim Script | gpl2 | 1,741 |
let encoding = &enc
if encoding == ''
let encoding = 'utf-8'
endif
if encoding == 'utf-8'
source <sfile>:p:h/persian-iranian_utf-8.vim
endif
| zyz2011-vim | runtime/keymap/persian.vim | Vim Script | gpl2 | 144 |
" Polish letters keymap for cp1250
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" Polish:
" instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz}
" short keymap name for statusline
let b:keymap_name = "PL-slash-WIN"
scriptencoding latin1
loadkeymap
" Polish letters
/a <Char-185> " LATIN SMALL LETTER A WITH OGONEK
/c <Char-230> " LATIN SMALL LETTER C WITH ACUTE
/e <Char-234> " LATIN SMALL LETTER E WITH OGONEK
/l <Char-179> " LATIN SMALL LETTER L WITH STROKE
/n <Char-241> " LATIN SMALL LETTER N WITH ACUTE
/o <Char-243> " LATIN SMALL LETTER O WITH ACUTE
/s <Char-156> " LATIN SMALL LETTER S WITH ACUTE
/x <Char-159> " LATIN SMALL LETTER Z WITH ACUTE
/z <Char-191> " LATIN SMALL LETTER Z WITH DOT ABOVE
/A <Char-165> " LATIN CAPITAL LETTER A WITH OGONEK
/C <Char-198> " LATIN CAPITAL LETTER C WITH ACUTE
/E <Char-202> " LATIN CAPITAL LETTER E WITH OGONEK
/L <Char-163> " LATIN CAPITAL LETTER L WITH STROKE
/N <Char-209> " LATIN CAPITAL LETTER N WITH ACUTE
/O <Char-211> " LATIN CAPITAL LETTER O WITH ACUTE
/S <Char-140> " LATIN CAPITAL LETTER S WITH ACUTE
/X <Char-143> " LATIN CAPITAL LETTER Z WITH ACUTE
/Z <Char-175> " LATIN CAPITAL LETTER Z WITH DOT ABOVE
| zyz2011-vim | runtime/keymap/polish-slash_cp1250.vim | Vim Script | gpl2 | 1,372 |
let encoding = &enc
if encoding == 'latin1'
if has("unix")
let encoding = 'iso-8859-2'
else
let encoding = 'cp1250'
endif
endif
if encoding == 'utf-8'
source <sfile>:p:h/serbian_utf-8.vim
elseif encoding == 'cp1250'
source <sfile>:p:h/serbian_cp1250.vim
elseif encoding == 'cp1251'
source <sfile>:p:h/serbian_cp1251.vim
elseif encoding == 'iso-8859-2'
source <sfile>:p:h/serbian_iso-8859-2.vim
else
source <sfile>:p:h/serbian_iso-8859-5.vim
endif
| zyz2011-vim | runtime/keymap/serbian.vim | Vim Script | gpl2 | 467 |
" Maintainer: Natsagdorj Shagdar <natsag2000@yahoo.com>
" Last Changed: 2007 Jun 26
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
scriptencoding utf-8
let b:keymap_name = "mn"
loadkeymap
C Ё CYRILLIC CAPITAL LETTER IO
c ё CYRILLIC SMALL LETTER IO
G А CYRILLIC CAPITAL LETTER A
D Б CYRILLIC CAPITAL LETTER BE
> В CYRILLIC CAPITAL LETTER VE
U Г CYRILLIC CAPITAL LETTER GHE
: Д CYRILLIC CAPITAL LETTER DE
_ Е CYRILLIC CAPITAL LETTER IE
R Ж CYRILLIC CAPITAL LETTER ZHE
P З CYRILLIC CAPITAL LETTER ZE
N И CYRILLIC CAPITAL LETTER I
A Й CYRILLIC CAPITAL LETTER SHORT I
{ К CYRILLIC CAPITAL LETTER KA
L Л CYRILLIC CAPITAL LETTER EL
B М CYRILLIC CAPITAL LETTER EM
Y Н CYRILLIC CAPITAL LETTER EN
K О CYRILLIC CAPITAL LETTER O
\" П CYRILLIC CAPITAL LETTER PE
J Р CYRILLIC CAPITAL LETTER ER
V С CYRILLIC CAPITAL LETTER ES
M Т CYRILLIC CAPITAL LETTER TE
E У CYRILLIC CAPITAL LETTER U
Q Ф CYRILLIC CAPITAL LETTER EF
H Х CYRILLIC CAPITAL LETTER HA
W Ц CYRILLIC CAPITAL LETTER TSE
X Ч CYRILLIC CAPITAL LETTER CHE
I Ш CYRILLIC CAPITAL LETTER SHA
+ Щ CYRILLIC CAPITAL LETTER SHCHA
} Ъ CYRILLIC CAPITAL LETTER HARD SIGN
S Ы CYRILLIC CAPITAL LETTER YERU
< Ь CYRILLIC CAPITAL LETTER SOFT SIGN
T Э CYRILLIC CAPITAL LETTER E
? Ю CYRILLIC CAPITAL LETTER YU
Z Я CYRILLIC CAPITAL LETTER YA
g а CYRILLIC SMALL LETTER A
d б CYRILLIC SMALL LETTER BE
. в CYRILLIC SMALL LETTER VE
u г CYRILLIC SMALL LETTER GHE
; д CYRILLIC SMALL LETTER DE
- е CYRILLIC SMALL LETTER IE
r ж CYRILLIC SMALL LETTER ZHE
p з CYRILLIC SMALL LETTER ZE
n и CYRILLIC SMALL LETTER I
a й CYRILLIC SMALL LETTER SHORT I
[ к CYRILLIC SMALL LETTER KA
l л CYRILLIC SMALL LETTER EL
b м CYRILLIC SMALL LETTER EM
y н CYRILLIC SMALL LETTER EN
k о CYRILLIC SMALL LETTER O
' п CYRILLIC SMALL LETTER PE
j р CYRILLIC SMALL LETTER ER
v с CYRILLIC SMALL LETTER ES
m т CYRILLIC SMALL LETTER TE
e у CYRILLIC SMALL LETTER U
q ф CYRILLIC SMALL LETTER EF
h х CYRILLIC SMALL LETTER HA
w ц CYRILLIC SMALL LETTER TSE
x ч CYRILLIC SMALL LETTER CHE
i ш CYRILLIC SMALL LETTER SHA
= щ CYRILLIC SMALL LETTER SHCHA
] ъ CYRILLIC SMALL LETTER HARD SIGN
s ы CYRILLIC SMALL LETTER YERU
, ь CYRILLIC SMALL LETTER SOFT SIGN
t э CYRILLIC SMALL LETTER E
/ ю CYRILLIC SMALL LETTER YU
z я CYRILLIC SMALL LETTER YA
f ө CYRILLIC SMALL LETTER Oе
F Ө CYRILLIC SMALL LETTER Oе
o ү CYRILLIC SMALL LETTER Ге
O Ү CYRILLIC SMALL LETTER Oе
` =
1 № NUMERO SIGN
2 -
3 "
4 T
5 :
7 ?
6 .
8 ,
9 (
0 )
! 1
@ 2
# 3
$ 4
% 5
^ 6
& 7
* 8
( 9
) 0
| zyz2011-vim | runtime/keymap/mongolian_utf-8.vim | Vim Script | gpl2 | 2,562 |
let encoding = &enc
if encoding == 'latin1'
if has("unix")
let encoding = 'iso-8859-2'
else
let encoding = 'cp1250'
endif
endif
if encoding == 'utf-8'
source <sfile>:p:h/slovak_utf-8.vim
elseif encoding == 'cp1250'
source <sfile>:p:h/slovak_cp1250.vim
else
source <sfile>:p:h/slovak_iso-8859-2.vim
endif
| zyz2011-vim | runtime/keymap/slovak.vim | Vim Script | gpl2 | 322 |
" Vim Keymap file for Serbian characters, classical variant, UTF-8 encoding
"
" Maintainer: Aleksandar Veselinovic <aleksa@cs.cmu.edu>
" URL: http://www.cs.cmu.edu/~aleksa/personal/vim/keymap/serbian-UTF-8.vim
" Last Changed: 2002 Mar 29
scriptencoding UTF-8
let b:keymap_name = "serbian-UTF-8"
loadkeymap
Q Љ
W Њ
E Е
R Р
T Т
Y З
U У
I И
O О
P П
{ Ш
} Ђ
q љ
w њ
e е
r р
t т
y з
u у
i и
o о
p п
[ ш
] ђ
A А
S С
D Д
F Ф
G Г
H Х
J Ј
K К
L Л
: Ч
\" Ћ
\| Ж
a а
s с
d д
f ф
g г
h х
j ј
k к
l л
; ч
' ћ
\\ ж
"Z З
X Џ
C Ц
V В
B Б
N Н
M М
"z з
x џ
c ц
v в
b б
n н
m м
< ;
> :
/ -
_ ?
,, „
'' ”
E$ <char-0x20AC> " EURO SIGN
-- <char-0x2013> " endash
--- <char-0x2014> " emdash
" @ "
" # '
" $ *
" % :
" ^ ,
" & .
" * ;
| zyz2011-vim | runtime/keymap/serbian_utf-8.vim | Vim Script | gpl2 | 793 |
" ---------------------------------------------------------------------
" getscript.vim
" Author: Charles E. Campbell, Jr.
" Date: Jan 17, 2012
" Version: 34
" Installing: :help glvs-install
" Usage: :help glvs
"
" GetLatestVimScripts: 642 1 :AutoInstall: getscript.vim
"redraw!|call inputsave()|call input("Press <cr> to continue")|call inputrestore()
" ---------------------------------------------------------------------
" Initialization: {{{1
" if you're sourcing this file, surely you can't be
" expecting vim to be in its vi-compatible mode!
if exists("g:loaded_getscript")
finish
endif
let g:loaded_getscript= "v34"
if &cp
echoerr "GetLatestVimScripts is not vi-compatible; not loaded (you need to set nocp)"
finish
endif
if v:version < 702
echohl WarningMsg
echo "***warning*** this version of getscript needs vim 7.2"
echohl Normal
finish
endif
let s:keepcpo = &cpo
set cpo&vim
"DechoTabOn
" ---------------------------
" Global Variables: {{{1
" ---------------------------
" Cygwin Detection ------- {{{2
if !exists("g:getscript_cygwin")
if has("win32") || has("win95") || has("win64") || has("win16")
if &shell =~ '\%(\<bash\>\|\<zsh\>\)\%(\.exe\)\=$'
let g:getscript_cygwin= 1
else
let g:getscript_cygwin= 0
endif
else
let g:getscript_cygwin= 0
endif
endif
" wget vs curl {{{2
if !exists("g:GetLatestVimScripts_wget")
if executable("wget")
let g:GetLatestVimScripts_wget= "wget"
elseif executable("curl")
let g:GetLatestVimScripts_wget= "curl"
else
let g:GetLatestVimScripts_wget = 'echo "GetLatestVimScripts needs wget or curl"'
let g:GetLatestVimScripts_options = ""
endif
endif
" options that wget and curl require:
if !exists("g:GetLatestVimScripts_options")
if g:GetLatestVimScripts_wget == "wget"
let g:GetLatestVimScripts_options= "-q -O"
elseif g:GetLatestVimScripts_wget == "curl"
let g:GetLatestVimScripts_options= "-s -O"
else
let g:GetLatestVimScripts_options= ""
endif
endif
" by default, allow autoinstall lines to work
if !exists("g:GetLatestVimScripts_allowautoinstall")
let g:GetLatestVimScripts_allowautoinstall= 1
endif
"" For debugging:
"let g:GetLatestVimScripts_wget = "echo"
"let g:GetLatestVimScripts_options = "options"
" ---------------------------------------------------------------------
" Check If AutoInstall Capable: {{{1
let s:autoinstall= ""
if g:GetLatestVimScripts_allowautoinstall
if (has("win32") || has("gui_win32") || has("gui_win32s") || has("win16") || has("win64") || has("win32unix") || has("win95")) && &shell != "bash"
" windows (but not cygwin/bash)
let s:dotvim= "vimfiles"
if !exists("g:GetLatestVimScripts_mv")
let g:GetLatestVimScripts_mv= "ren"
endif
else
" unix
let s:dotvim= ".vim"
if !exists("g:GetLatestVimScripts_mv")
let g:GetLatestVimScripts_mv= "mv"
endif
endif
if exists("g:GetLatestVimScripts_autoinstalldir") && isdirectory(g:GetLatestVimScripts_autoinstalldir)
let s:autoinstall= g:GetLatestVimScripts_autoinstalldir"
elseif exists('$HOME') && isdirectory(expand("$HOME")."/".s:dotvim)
let s:autoinstall= $HOME."/".s:dotvim
endif
" call Decho("s:autoinstall<".s:autoinstall.">")
"else "Decho
" call Decho("g:GetLatestVimScripts_allowautoinstall=".g:GetLatestVimScripts_allowautoinstall.": :AutoInstall: disabled")
endif
" ---------------------------------------------------------------------
" Public Interface: {{{1
com! -nargs=0 GetLatestVimScripts call getscript#GetLatestVimScripts()
com! -nargs=0 GetScript call getscript#GetLatestVimScripts()
silent! com -nargs=0 GLVS call getscript#GetLatestVimScripts()
" ---------------------------------------------------------------------
" GetLatestVimScripts: this function gets the latest versions of {{{1
" scripts based on the list in
" (first dir in runtimepath)/GetLatest/GetLatestVimScripts.dat
fun! getscript#GetLatestVimScripts()
" call Dfunc("GetLatestVimScripts() autoinstall<".s:autoinstall.">")
" insure that wget is executable
if executable(g:GetLatestVimScripts_wget) != 1
echoerr "GetLatestVimScripts needs ".g:GetLatestVimScripts_wget." which apparently is not available on your system"
" call Dret("GetLatestVimScripts : wget not executable/availble")
return
endif
" insure that fnameescape() is available
if !exists("*fnameescape")
echoerr "GetLatestVimScripts needs fnameescape() (provided by 7.1.299 or later)"
return
endif
" Find the .../GetLatest subdirectory under the runtimepath
for datadir in split(&rtp,',') + ['']
if isdirectory(datadir."/GetLatest")
" call Decho("found directory<".datadir.">")
let datadir= datadir . "/GetLatest"
break
endif
if filereadable(datadir."GetLatestVimScripts.dat")
" call Decho("found ".datadir."/GetLatestVimScripts.dat")
break
endif
endfor
" Sanity checks: readability and writability
if datadir == ""
echoerr 'Missing "GetLatest/" on your runtimepath - see :help glvs-dist-install'
" call Dret("GetLatestVimScripts : unable to find a GetLatest subdirectory")
return
endif
if filewritable(datadir) != 2
echoerr "(getLatestVimScripts) Your ".datadir." isn't writable"
" call Dret("GetLatestVimScripts : non-writable directory<".datadir.">")
return
endif
let datafile= datadir."/GetLatestVimScripts.dat"
if !filereadable(datafile)
echoerr "Your data file<".datafile."> isn't readable"
" call Dret("GetLatestVimScripts : non-readable datafile<".datafile.">")
return
endif
if !filewritable(datafile)
echoerr "Your data file<".datafile."> isn't writable"
" call Dret("GetLatestVimScripts : non-writable datafile<".datafile.">")
return
endif
" --------------------
" Passed sanity checks
" --------------------
" call Decho("datadir <".datadir.">")
" call Decho("datafile <".datafile.">")
" don't let any event handlers interfere (like winmanager's, taglist's, etc)
let eikeep = &ei
let hlskeep = &hls
let acdkeep = &acd
set ei=all hls&vim noacd
" Edit the datafile (ie. GetLatestVimScripts.dat):
" 1. record current directory (origdir),
" 2. change directory to datadir,
" 3. split window
" 4. edit datafile
let origdir= getcwd()
" call Decho("exe cd ".fnameescape(substitute(datadir,'\','/','ge')))
exe "cd ".fnameescape(substitute(datadir,'\','/','ge'))
split
" call Decho("exe e ".fnameescape(substitute(datafile,'\','/','ge')))
exe "e ".fnameescape(substitute(datafile,'\','/','ge'))
res 1000
let s:downloads = 0
let s:downerrors= 0
" Check on dependencies mentioned in plugins
" call Decho(" ")
" call Decho("searching plugins for GetLatestVimScripts dependencies")
let lastline = line("$")
" call Decho("lastline#".lastline)
let firstdir = substitute(&rtp,',.*$','','')
let plugins = split(globpath(firstdir,"plugin/*.vim"),'\n')
let plugins = plugins + split(globpath(firstdir,"AsNeeded/*.vim"),'\n')
let foundscript = 0
" this loop updates the GetLatestVimScripts.dat file
" with dependencies explicitly mentioned in the plugins
" via GetLatestVimScripts: ... lines
" It reads the plugin script at the end of the GetLatestVimScripts.dat
" file, examines it, and then removes it.
for plugin in plugins
" call Decho(" ")
" call Decho("plugin<".plugin.">")
" read plugin in
" evidently a :r creates a new buffer (the "#" buffer) that is subsequently unused -- bwiping it
$
" call Decho(".dependency checking<".plugin."> line$=".line("$"))
" call Decho("..exe silent r ".fnameescape(plugin))
exe "silent r ".fnameescape(plugin)
exe "silent bwipe ".bufnr("#")
while search('^"\s\+GetLatestVimScripts:\s\+\d\+\s\+\d\+','W') != 0
let depscript = substitute(getline("."),'^"\s\+GetLatestVimScripts:\s\+\d\+\s\+\d\+\s\+\(.*\)$','\1','e')
let depscriptid = substitute(getline("."),'^"\s\+GetLatestVimScripts:\s\+\(\d\+\)\s\+.*$','\1','')
let llp1 = lastline+1
" call Decho("..depscript<".depscript.">")
" found a "GetLatestVimScripts: # #" line in the script;
" check if its already in the datafile by searching backwards from llp1,
" the (prior to reading in the plugin script) last line plus one of the GetLatestVimScripts.dat file,
" for the script-id with no wrapping allowed.
let curline = line(".")
let noai_script = substitute(depscript,'\s*:AutoInstall:\s*','','e')
exe llp1
let srchline = search('^\s*'.depscriptid.'\s\+\d\+\s\+.*$','bW')
if srchline == 0
" this second search is taken when, for example, a 0 0 scriptname is to be skipped over
let srchline= search('\<'.noai_script.'\>','bW')
endif
" call Decho("..noai_script<".noai_script."> depscriptid#".depscriptid." srchline#".srchline." curline#".line(".")." lastline#".lastline)
if srchline == 0
" found a new script to permanently include in the datafile
let keep_rega = @a
let @a = substitute(getline(curline),'^"\s\+GetLatestVimScripts:\s\+','','')
echomsg "Appending <".@a."> to ".datafile." for ".depscript
" call Decho("..Appending <".@a."> to ".datafile." for ".depscript)
exe lastline."put a"
let @a = keep_rega
let lastline = llp1
let curline = curline + 1
let foundscript = foundscript + 1
" else " Decho
" call Decho("..found <".noai_script."> (already in datafile at line#".srchline.")")
endif
let curline = curline + 1
exe curline
endwhile
" llp1: last line plus one
let llp1= lastline + 1
" call Decho(".deleting lines: ".llp1.",$d")
exe "silent! ".llp1.",$d"
endfor
" call Decho("--- end dependency checking loop --- foundscript=".foundscript)
" call Decho(" ")
" call Dredir("BUFFER TEST (GetLatestVimScripts 1)","ls!")
if foundscript == 0
setlocal nomod
endif
" --------------------------------------------------------------------
" Check on out-of-date scripts using GetLatest/GetLatestVimScripts.dat
" --------------------------------------------------------------------
" call Decho("begin: checking out-of-date scripts using datafile<".datafile.">")
setlocal lz
1
" /^-----/,$g/^\s*\d/call Decho(getline("."))
1
/^-----/,$g/^\s*\d/call s:GetOneScript()
" call Decho("--- end out-of-date checking --- ")
" Final report (an echomsg)
try
silent! ?^-------?
catch /^Vim\%((\a\+)\)\=:E114/
" call Dret("GetLatestVimScripts : nothing done!")
return
endtry
exe "norm! kz\<CR>"
redraw!
let s:msg = ""
if s:downloads == 1
let s:msg = "Downloaded one updated script to <".datadir.">"
elseif s:downloads == 2
let s:msg= "Downloaded two updated scripts to <".datadir.">"
elseif s:downloads > 1
let s:msg= "Downloaded ".s:downloads." updated scripts to <".datadir.">"
else
let s:msg= "Everything was already current"
endif
if s:downerrors > 0
let s:msg= s:msg." (".s:downerrors." downloading errors)"
endif
echomsg s:msg
" save the file
if &mod
silent! w!
endif
q
" restore events and current directory
exe "cd ".fnameescape(substitute(origdir,'\','/','ge'))
let &ei = eikeep
let &hls = hlskeep
let &acd = acdkeep
setlocal nolz
" call Dredir("BUFFER TEST (GetLatestVimScripts 2)","ls!")
" call Dret("GetLatestVimScripts : did ".s:downloads." downloads")
endfun
" ---------------------------------------------------------------------
" GetOneScript: (Get Latest Vim Script) this function operates {{{1
" on the current line, interpreting two numbers and text as
" ScriptID, SourceID, and Filename.
" It downloads any scripts that have newer versions from vim.sourceforge.net.
fun! s:GetOneScript(...)
" call Dfunc("GetOneScript()")
" set options to allow progress to be shown on screen
let rega= @a
let t_ti= &t_ti
let t_te= &t_te
let rs = &rs
set t_ti= t_te= nors
" put current line on top-of-screen and interpret it into
" a script identifer : used to obtain webpage
" source identifier : used to identify current version
" and an associated comment: used to report on what's being considered
if a:0 >= 3
let scriptid = a:1
let srcid = a:2
let fname = a:3
let cmmnt = ""
" call Decho("scriptid<".scriptid.">")
" call Decho("srcid <".srcid.">")
" call Decho("fname <".fname.">")
else
let curline = getline(".")
if curline =~ '^\s*#'
let @a= rega
" call Dret("GetOneScript : skipping a pure comment line")
return
endif
let parsepat = '^\s*\(\d\+\)\s\+\(\d\+\)\s\+\(.\{-}\)\(\s*#.*\)\=$'
try
let scriptid = substitute(curline,parsepat,'\1','e')
catch /^Vim\%((\a\+)\)\=:E486/
let scriptid= 0
endtry
try
let srcid = substitute(curline,parsepat,'\2','e')
catch /^Vim\%((\a\+)\)\=:E486/
let srcid= 0
endtry
try
let fname= substitute(curline,parsepat,'\3','e')
catch /^Vim\%((\a\+)\)\=:E486/
let fname= ""
endtry
try
let cmmnt= substitute(curline,parsepat,'\4','e')
catch /^Vim\%((\a\+)\)\=:E486/
let cmmnt= ""
endtry
" call Decho("curline <".curline.">")
" call Decho("parsepat<".parsepat.">")
" call Decho("scriptid<".scriptid.">")
" call Decho("srcid <".srcid.">")
" call Decho("fname <".fname.">")
endif
" plugin author protection from downloading his/her own scripts atop their latest work
if scriptid == 0 || srcid == 0
" When looking for :AutoInstall: lines, skip scripts that have 0 0 scriptname
let @a= rega
" call Dret("GetOneScript : skipping a scriptid==srcid==0 line")
return
endif
let doautoinstall= 0
if fname =~ ":AutoInstall:"
" call Decho("case AutoInstall: fname<".fname.">")
let aicmmnt= substitute(fname,'\s\+:AutoInstall:\s\+',' ','')
" call Decho("aicmmnt<".aicmmnt."> s:autoinstall=".s:autoinstall)
if s:autoinstall != ""
let doautoinstall = g:GetLatestVimScripts_allowautoinstall
endif
else
let aicmmnt= fname
endif
" call Decho("aicmmnt<".aicmmnt.">: doautoinstall=".doautoinstall)
exe "norm z\<CR>"
redraw!
" call Decho('considering <'.aicmmnt.'> scriptid='.scriptid.' srcid='.srcid)
echo 'considering <'.aicmmnt.'> scriptid='.scriptid.' srcid='.srcid
" grab a copy of the plugin's vim.sourceforge.net webpage
let scriptaddr = 'http://vim.sourceforge.net/script.php?script_id='.scriptid
let tmpfile = tempname()
let v:errmsg = ""
" make up to three tries at downloading the description
let itry= 1
while itry <= 3
" call Decho(".try#".itry." to download description of <".aicmmnt."> with addr=".scriptaddr)
if has("win32") || has("win16") || has("win95")
" call Decho(".new|exe silent r!".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(tmpfile).' '.shellescape(scriptaddr)."|bw!")
new|exe "silent r!".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(tmpfile).' '.shellescape(scriptaddr)|bw!
else
" call Decho(".exe silent !".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(tmpfile)." ".shellescape(scriptaddr))
exe "silent !".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(tmpfile)." ".shellescape(scriptaddr)
endif
if itry == 1
exe "silent vsplit ".fnameescape(tmpfile)
else
silent! e %
endif
setlocal bh=wipe
" find the latest source-id in the plugin's webpage
silent! 1
let findpkg= search('Click on the package to download','W')
if findpkg > 0
break
endif
let itry= itry + 1
endwhile
" call Decho(" --- end downloading tries while loop --- itry=".itry)
" testing: did finding "Click on the package..." fail?
if findpkg == 0 || itry >= 4
silent q!
call delete(tmpfile)
" restore options
let &t_ti = t_ti
let &t_te = t_te
let &rs = rs
let s:downerrors = s:downerrors + 1
" call Decho("***warning*** couldn'".'t find "Click on the package..." in description page for <'.aicmmnt.">")
echomsg "***warning*** couldn'".'t find "Click on the package..." in description page for <'.aicmmnt.">"
" call Dret("GetOneScript : srch for /Click on the package/ failed")
let @a= rega
return
endif
" call Decho('found "Click on the package to download"')
let findsrcid= search('src_id=','W')
if findsrcid == 0
silent q!
call delete(tmpfile)
" restore options
let &t_ti = t_ti
let &t_te = t_te
let &rs = rs
let s:downerrors = s:downerrors + 1
" call Decho("***warning*** couldn'".'t find "src_id=" in description page for <'.aicmmnt.">")
echomsg "***warning*** couldn'".'t find "src_id=" in description page for <'.aicmmnt.">"
let @a= rega
" call Dret("GetOneScript : srch for /src_id/ failed")
return
endif
" call Decho('found "src_id=" in description page')
let srcidpat = '^\s*<td class.*src_id=\(\d\+\)">\([^<]\+\)<.*$'
let latestsrcid= substitute(getline("."),srcidpat,'\1','')
let sname = substitute(getline("."),srcidpat,'\2','') " script name actually downloaded
" call Decho("srcidpat<".srcidpat."> latestsrcid<".latestsrcid."> sname<".sname.">")
silent q!
call delete(tmpfile)
" convert the strings-of-numbers into numbers
let srcid = srcid + 0
let latestsrcid = latestsrcid + 0
" call Decho("srcid=".srcid." latestsrcid=".latestsrcid." sname<".sname.">")
" has the plugin's most-recent srcid increased, which indicates that it has been updated
if latestsrcid > srcid
" call Decho("[latestsrcid=".latestsrcid."] <= [srcid=".srcid."]: need to update <".sname.">")
let s:downloads= s:downloads + 1
if sname == bufname("%")
" GetLatestVimScript has to be careful about downloading itself
let sname= "NEW_".sname
endif
" -----------------------------------------------------------------------------
" the plugin has been updated since we last obtained it, so download a new copy
" -----------------------------------------------------------------------------
" call Decho(".downloading new <".sname.">")
echomsg ".downloading new <".sname.">"
if has("win32") || has("win16") || has("win95")
" call Decho(".new|exe silent r!".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(sname)." ".shellescape('http://vim.sourceforge.net/scripts/download_script.php?src_id='.latestsrcid)."|q")
new|exe "silent r!".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(sname)." ".shellescape('http://vim.sourceforge.net/scripts/download_script.php?src_id='.latestsrcid)|q
else
" call Decho(".exe silent !".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(sname)." ".shellescape('http://vim.sourceforge.net/scripts/download_script.php?src_id='))
exe "silent !".g:GetLatestVimScripts_wget." ".g:GetLatestVimScripts_options." ".shellescape(sname)." ".shellescape('http://vim.sourceforge.net/scripts/download_script.php?src_id=').latestsrcid
endif
" --------------------------------------------------------------------------
" AutoInstall: only if doautoinstall has been requested by the plugin itself
" --------------------------------------------------------------------------
" call Decho("checking if plugin requested autoinstall: doautoinstall=".doautoinstall)
if doautoinstall
" call Decho(" ")
" call Decho("Autoinstall: getcwd<".getcwd()."> filereadable(".sname.")=".filereadable(sname))
if filereadable(sname)
" call Decho("<".sname."> is readable")
" call Decho("exe silent !".g:GetLatestVimScripts_mv." ".shellescape(sname)." ".shellescape(s:autoinstall))
exe "silent !".g:GetLatestVimScripts_mv." ".shellescape(sname)." ".shellescape(s:autoinstall)
let curdir = fnameescape(substitute(getcwd(),'\','/','ge'))
let installdir= curdir."/Installed"
if !isdirectory(installdir)
call mkdir(installdir)
endif
" call Decho("curdir<".curdir."> installdir<".installdir.">")
" call Decho("exe cd ".fnameescape(s:autoinstall))
exe "cd ".fnameescape(s:autoinstall)
" determine target directory for moves
let firstdir= substitute(&rtp,',.*$','','')
let pname = substitute(sname,'\..*','.vim','')
" call Decho("determine tgtdir: is <".firstdir.'/AsNeeded/'.pname." readable?")
if filereadable(firstdir.'/AsNeeded/'.pname)
let tgtdir= "AsNeeded"
else
let tgtdir= "plugin"
endif
" call Decho("tgtdir<".tgtdir."> pname<".pname.">")
" decompress
if sname =~ '\.bz2$'
" call Decho("decompress: attempt to bunzip2 ".sname)
exe "sil !bunzip2 ".shellescape(sname)
let sname= substitute(sname,'\.bz2$','','')
" call Decho("decompress: new sname<".sname."> after bunzip2")
elseif sname =~ '\.gz$'
" call Decho("decompress: attempt to gunzip ".sname)
exe "sil !gunzip ".shellescape(sname)
let sname= substitute(sname,'\.gz$','','')
" call Decho("decompress: new sname<".sname."> after gunzip")
elseif sname =~ '\.xz$'
" call Decho("decompress: attempt to unxz ".sname)
exe "sil !unxz ".shellescape(sname)
let sname= substitute(sname,'\.xz$','','')
" call Decho("decompress: new sname<".sname."> after unxz")
else
" call Decho("no decompression needed")
endif
" distribute archive(.zip, .tar, .vba, ...) contents
if sname =~ '\.zip$'
" call Decho("dearchive: attempt to unzip ".sname)
exe "silent !unzip -o ".shellescape(sname)
elseif sname =~ '\.tar$'
" call Decho("dearchive: attempt to untar ".sname)
exe "silent !tar -xvf ".shellescape(sname)
elseif sname =~ '\.tgz$'
" call Decho("dearchive: attempt to untar+gunzip ".sname)
exe "silent !tar -zxvf ".shellescape(sname)
elseif sname =~ '\.taz$'
" call Decho("dearchive: attempt to untar+uncompress ".sname)
exe "silent !tar -Zxvf ".shellescape(sname)
elseif sname =~ '\.tbz$'
" call Decho("dearchive: attempt to untar+bunzip2 ".sname)
exe "silent !tar -jxvf ".shellescape(sname)
elseif sname =~ '\.txz$'
" call Decho("dearchive: attempt to untar+xz ".sname)
exe "silent !tar -Jxvf ".shellescape(sname)
elseif sname =~ '\.vba$'
" call Decho("dearchive: attempt to handle a vimball: ".sname)
silent 1split
if exists("g:vimball_home")
let oldvimballhome= g:vimball_home
endif
let g:vimball_home= s:autoinstall
exe "silent e ".fnameescape(sname)
silent so %
silent q
if exists("oldvimballhome")
let g:vimball_home= oldvimballhome
else
unlet g:vimball_home
endif
else
" call Decho("no dearchiving needed")
endif
" ---------------------------------------------
" move plugin to plugin/ or AsNeeded/ directory
" ---------------------------------------------
if sname =~ '.vim$'
" call Decho("dearchive: attempt to simply move ".sname." to ".tgtdir)
exe "silent !".g:GetLatestVimScripts_mv." ".shellescape(sname)." ".tgtdir
else
" call Decho("dearchive: move <".sname."> to installdir<".installdir.">")
exe "silent !".g:GetLatestVimScripts_mv." ".shellescape(sname)." ".installdir
endif
if tgtdir != "plugin"
" call Decho("exe silent !".g:GetLatestVimScripts_mv." plugin/".shellescape(pname)." ".tgtdir)
exe "silent !".g:GetLatestVimScripts_mv." plugin/".shellescape(pname)." ".tgtdir
endif
" helptags step
let docdir= substitute(&rtp,',.*','','e')."/doc"
" call Decho("helptags: docdir<".docdir.">")
exe "helptags ".fnameescape(docdir)
exe "cd ".fnameescape(curdir)
endif
if fname !~ ':AutoInstall:'
let modline=scriptid." ".latestsrcid." :AutoInstall: ".fname.cmmnt
else
let modline=scriptid." ".latestsrcid." ".fname.cmmnt
endif
else
let modline=scriptid." ".latestsrcid." ".fname.cmmnt
endif
" update the data in the <GetLatestVimScripts.dat> file
call setline(line("."),modline)
" call Decho("update data in ".expand("%")."#".line(".").": modline<".modline.">")
" else " Decho
" call Decho("[latestsrcid=".latestsrcid."] <= [srcid=".srcid."], no need to update")
endif
" restore options
let &t_ti = t_ti
let &t_te = t_te
let &rs = rs
let @a = rega
" call Dredir("BUFFER TEST (GetOneScript)","ls!")
" call Dret("GetOneScript")
endfun
" ---------------------------------------------------------------------
" Restore Options: {{{1
let &cpo= s:keepcpo
unlet s:keepcpo
" ---------------------------------------------------------------------
" Modelines: {{{1
" vim: ts=8 sts=2 fdm=marker nowrap
| zyz2011-vim | runtime/autoload/getscript.vim | Vim Script | gpl2 | 24,699 |
" Vim script to download a missing spell file
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2012 Jan 08
if !exists('g:spellfile_URL')
" Prefer using http:// when netrw should be able to use it, since
" more firewalls let this through.
if executable("curl") || executable("wget") || executable("fetch")
let g:spellfile_URL = 'http://ftp.vim.org/pub/vim/runtime/spell'
else
let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
endif
endif
let s:spellfile_URL = '' " Start with nothing so that s:donedict is reset.
" This function is used for the spellfile plugin.
function! spellfile#LoadFile(lang)
" If the netrw plugin isn't loaded we silently skip everything.
if !exists(":Nread")
if &verbose
echomsg 'spellfile#LoadFile(): Nread command is not available.'
endif
return
endif
" If the URL changes we try all files again.
if s:spellfile_URL != g:spellfile_URL
let s:donedict = {}
let s:spellfile_URL = g:spellfile_URL
endif
" I will say this only once!
if has_key(s:donedict, a:lang . &enc)
if &verbose
echomsg 'spellfile#LoadFile(): Tried this language/encoding before.'
endif
return
endif
let s:donedict[a:lang . &enc] = 1
" Find spell directories we can write in.
let [dirlist, dirchoices] = spellfile#GetDirChoices()
if len(dirlist) == 0
let dir_to_create = spellfile#WritableSpellDir()
if &verbose || dir_to_create != ''
echomsg 'spellfile#LoadFile(): There is no writable spell directory.'
endif
if dir_to_create != ''
if confirm("Shall I create " . dir_to_create, "&Yes\n&No", 2) == 1
" After creating the directory it should show up in the list.
call mkdir(dir_to_create, "p")
let [dirlist, dirchoices] = spellfile#GetDirChoices()
endif
endif
if len(dirlist) == 0
return
endif
endif
let msg = 'Cannot find spell file for "' . a:lang . '" in ' . &enc
let msg .= "\nDo you want me to try downloading it?"
if confirm(msg, "&Yes\n&No", 2) == 1
let enc = &encoding
if enc == 'iso-8859-15'
let enc = 'latin1'
endif
let fname = a:lang . '.' . enc . '.spl'
" Split the window, read the file into a new buffer.
" Remember the buffer number, we check it below.
new
let newbufnr = winbufnr(0)
setlocal bin fenc=
echo 'Downloading ' . fname . '...'
call spellfile#Nread(fname)
if getline(2) !~ 'VIMspell'
" Didn't work, perhaps there is an ASCII one.
" Careful: Nread() may have opened a new window for the error message,
" we need to go back to our own buffer and window.
if newbufnr != winbufnr(0)
let winnr = bufwinnr(newbufnr)
if winnr == -1
" Our buffer has vanished!? Open a new window.
echomsg "download buffer disappeared, opening a new one"
new
setlocal bin fenc=
else
exe winnr . "wincmd w"
endif
endif
if newbufnr == winbufnr(0)
" We are back the old buffer, remove any (half-finished) download.
g/^/d
else
let newbufnr = winbufnr(0)
endif
let fname = a:lang . '.ascii.spl'
echo 'Could not find it, trying ' . fname . '...'
call spellfile#Nread(fname)
if getline(2) !~ 'VIMspell'
echo 'Sorry, downloading failed'
exe newbufnr . "bwipe!"
return
endif
endif
" Delete the empty first line and mark the file unmodified.
1d
set nomod
let msg = "In which directory do you want to write the file:"
for i in range(len(dirlist))
let msg .= "\n" . (i + 1) . '. ' . dirlist[i]
endfor
let dirchoice = confirm(msg, dirchoices) - 2
if dirchoice >= 0
if exists('*fnameescape')
let dirname = fnameescape(dirlist[dirchoice])
else
let dirname = escape(dirlist[dirchoice], ' ')
endif
setlocal fenc=
exe "write " . dirname . '/' . fname
" Also download the .sug file, if the user wants to.
let msg = "Do you want me to try getting the .sug file?\n"
let msg .= "This will improve making suggestions for spelling mistakes,\n"
let msg .= "but it uses quite a bit of memory."
if confirm(msg, "&No\n&Yes") == 2
g/^/d
let fname = substitute(fname, '\.spl$', '.sug', '')
echo 'Downloading ' . fname . '...'
call spellfile#Nread(fname)
if getline(2) =~ 'VIMsug'
1d
exe "write " . dirname . '/' . fname
set nomod
else
echo 'Sorry, downloading failed'
" Go back to our own buffer/window, Nread() may have taken us to
" another window.
if newbufnr != winbufnr(0)
let winnr = bufwinnr(newbufnr)
if winnr != -1
exe winnr . "wincmd w"
endif
endif
if newbufnr == winbufnr(0)
set nomod
endif
endif
endif
endif
" Wipe out the buffer we used.
exe newbufnr . "bwipe"
endif
endfunc
" Read "fname" from the server.
function! spellfile#Nread(fname)
" We do our own error handling, don't want a window for it.
if exists("g:netrw_use_errorwindow")
let save_ew = g:netrw_use_errorwindow
endif
let g:netrw_use_errorwindow=0
if g:spellfile_URL =~ '^ftp://'
" for an ftp server use a default login and password to avoid a prompt
let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
else
exe 'Nread ' g:spellfile_URL . '/' . a:fname
endif
if exists("save_ew")
let g:netrw_use_errorwindow = save_ew
else
unlet g:netrw_use_errorwindow
endif
endfunc
" Get a list of writable spell directories and choices for confirm().
function! spellfile#GetDirChoices()
let dirlist = []
let dirchoices = '&Cancel'
for dir in split(globpath(&rtp, 'spell'), "\n")
if filewritable(dir) == 2
call add(dirlist, dir)
let dirchoices .= "\n&" . len(dirlist)
endif
endfor
return [dirlist, dirchoices]
endfunc
function! spellfile#WritableSpellDir()
if has("unix")
" For Unix always use the $HOME/.vim directory
return $HOME . "/.vim/spell"
endif
for dir in split(&rtp, ',')
if filewritable(dir) == 2
return dir . "/spell"
endif
endfor
return ''
endfunction
| zyz2011-vim | runtime/autoload/spellfile.vim | Vim Script | gpl2 | 6,217 |
" zip.vim: Handles browsing zipfiles
" AUTOLOAD PORTION
" Date: Jan 17, 2012
" Version: 25
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
" License: Vim License (see vim's :help license)
" Copyright: Copyright (C) 2005-2012 Charles E. Campbell, Jr. {{{1
" Permission is hereby granted to use and distribute this code,
" with or without modifications, provided that this copyright
" notice is copied with it. Like anything else that's free,
" zip.vim and zipPlugin.vim are provided *as is* and comes with
" no warranty of any kind, either expressed or implied. By using
" this plugin, you agree that in no event will the copyright
" holder be liable for any damages resulting from the use
" of this software.
" ---------------------------------------------------------------------
" Load Once: {{{1
if &cp || exists("g:loaded_zip")
finish
endif
let g:loaded_zip= "v25"
if v:version < 702
echohl WarningMsg
echo "***warning*** this version of zip needs vim 7.2"
echohl Normal
finish
endif
let s:keepcpo= &cpo
set cpo&vim
let s:zipfile_escape = ' ?&;\'
let s:ERROR = 2
let s:WARNING = 1
let s:NOTE = 0
" ---------------------------------------------------------------------
" Global Values: {{{1
if !exists("g:zip_shq")
if &shq != ""
let g:zip_shq= &shq
elseif has("unix")
let g:zip_shq= "'"
else
let g:zip_shq= '"'
endif
endif
if !exists("g:zip_zipcmd")
let g:zip_zipcmd= "zip"
endif
if !exists("g:zip_unzipcmd")
let g:zip_unzipcmd= "unzip"
endif
" ----------------
" Functions: {{{1
" ----------------
" ---------------------------------------------------------------------
" zip#Browse: {{{2
fun! zip#Browse(zipfile)
" call Dfunc("zip#Browse(zipfile<".a:zipfile.">)")
let repkeep= &report
set report=10
" sanity checks
if !exists("*fnameescape")
if &verbose > 1
echoerr "the zip plugin is not available (your vim doens't support fnameescape())"
endif
return
endif
if !executable(g:zip_unzipcmd)
redraw!
echohl Error | echo "***error*** (zip#Browse) unzip not available on your system"
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
let &report= repkeep
" call Dret("zip#Browse")
return
endif
if !filereadable(a:zipfile)
if a:zipfile !~# '^\a\+://'
" if its an url, don't complain, let url-handlers such as vim do its thing
redraw!
echohl Error | echo "***error*** (zip#Browse) File not readable<".a:zipfile.">" | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
endif
let &report= repkeep
" call Dret("zip#Browse : file<".a:zipfile."> not readable")
return
endif
" call Decho("passed sanity checks")
if &ma != 1
set ma
endif
let b:zipfile= a:zipfile
setlocal noswapfile
setlocal buftype=nofile
setlocal bufhidden=hide
setlocal nobuflisted
setlocal nowrap
set ft=tar
" give header
call append(0, ['" zip.vim version '.g:loaded_zip,
\ '" Browsing zipfile '.a:zipfile,
\ '" Select a file with cursor and press ENTER'])
keepj $
" call Decho("exe silent r! ".g:zip_unzipcmd." -l -- ".s:Escape(a:zipfile,1))
exe "keepj sil! r! ".g:zip_unzipcmd." -Z -1 -- ".s:Escape(a:zipfile,1)
if v:shell_error != 0
redraw!
echohl WarningMsg | echo "***warning*** (zip#Browse) ".fnameescape(a:zipfile)." is not a zip file" | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
keepj sil! %d
let eikeep= &ei
set ei=BufReadCmd,FileReadCmd
exe "keepj r ".fnameescape(a:zipfile)
let &ei= eikeep
keepj 1d
" call Dret("zip#Browse")
return
endif
setlocal noma nomod ro
noremap <silent> <buffer> <cr> :call <SID>ZipBrowseSelect()<cr>
let &report= repkeep
" call Dret("zip#Browse")
endfun
" ---------------------------------------------------------------------
" ZipBrowseSelect: {{{2
fun! s:ZipBrowseSelect()
" call Dfunc("ZipBrowseSelect() zipfile<".b:zipfile."> curfile<".expand("%").">")
let repkeep= &report
set report=10
let fname= getline(".")
" sanity check
if fname =~ '^"'
let &report= repkeep
" call Dret("ZipBrowseSelect")
return
endif
if fname =~ '/$'
redraw!
echohl Error | echo "***error*** (zip#Browse) Please specify a file, not a directory" | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
let &report= repkeep
" call Dret("ZipBrowseSelect")
return
endif
" call Decho("fname<".fname.">")
" get zipfile to the new-window
let zipfile = b:zipfile
let curfile= expand("%")
" call Decho("zipfile<".zipfile.">")
" call Decho("curfile<".curfile.">")
new
if !exists("g:zip_nomax") || g:zip_nomax == 0
wincmd _
endif
let s:zipfile_{winnr()}= curfile
" call Decho("exe e ".fnameescape("zipfile:".zipfile.'::'.fname))
exe "e ".fnameescape("zipfile:".zipfile.'::'.fname)
filetype detect
let &report= repkeep
" call Dret("ZipBrowseSelect : s:zipfile_".winnr()."<".s:zipfile_{winnr()}.">")
endfun
" ---------------------------------------------------------------------
" zip#Read: {{{2
fun! zip#Read(fname,mode)
" call Dfunc("zip#Read(fname<".a:fname.">,mode=".a:mode.")")
let repkeep= &report
set report=10
if has("unix")
let zipfile = substitute(a:fname,'zipfile:\(.\{-}\)::[^\\].*$','\1','')
let fname = substitute(a:fname,'zipfile:.\{-}::\([^\\].*\)$','\1','')
else
let zipfile = substitute(a:fname,'^.\{-}zipfile:\(.\{-}\)::[^\\].*$','\1','')
let fname = substitute(a:fname,'^.\{-}zipfile:.\{-}::\([^\\].*\)$','\1','')
let fname = substitute(fname, '[', '[[]', 'g')
endif
" call Decho("zipfile<".zipfile.">")
" call Decho("fname <".fname.">")
" call Decho("exe r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1))
exe "keepj sil! r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
filetype detect
" cleanup
keepj 0d
set nomod
let &report= repkeep
" call Dret("zip#Read")
endfun
" ---------------------------------------------------------------------
" zip#Write: {{{2
fun! zip#Write(fname)
" call Dfunc("zip#Write(fname<".a:fname.">) zipfile_".winnr()."<".s:zipfile_{winnr()}.">")
let repkeep= &report
set report=10
" sanity checks
if !executable(g:zip_zipcmd)
redraw!
echohl Error | echo "***error*** (zip#Write) sorry, your system doesn't appear to have the zip pgm" | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
let &report= repkeep
" call Dret("zip#Write")
return
endif
if !exists("*mkdir")
redraw!
echohl Error | echo "***error*** (zip#Write) sorry, mkdir() doesn't work on your system" | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
let &report= repkeep
" call Dret("zip#Write")
return
endif
let curdir= getcwd()
let tmpdir= tempname()
" call Decho("orig tempname<".tmpdir.">")
if tmpdir =~ '\.'
let tmpdir= substitute(tmpdir,'\.[^.]*$','','e')
endif
" call Decho("tmpdir<".tmpdir.">")
call mkdir(tmpdir,"p")
" attempt to change to the indicated directory
if s:ChgDir(tmpdir,s:ERROR,"(zip#Write) cannot cd to temporary directory")
let &report= repkeep
" call Dret("zip#Write")
return
endif
" call Decho("current directory now: ".getcwd())
" place temporary files under .../_ZIPVIM_/
if isdirectory("_ZIPVIM_")
call s:Rmdir("_ZIPVIM_")
endif
call mkdir("_ZIPVIM_")
cd _ZIPVIM_
" call Decho("current directory now: ".getcwd())
if has("unix")
let zipfile = substitute(a:fname,'zipfile:\(.\{-}\)::[^\\].*$','\1','')
let fname = substitute(a:fname,'zipfile:.\{-}::\([^\\].*\)$','\1','')
else
let zipfile = substitute(a:fname,'^.\{-}zipfile:\(.\{-}\)::[^\\].*$','\1','')
let fname = substitute(a:fname,'^.\{-}zipfile:.\{-}::\([^\\].*\)$','\1','')
endif
" call Decho("zipfile<".zipfile.">")
" call Decho("fname <".fname.">")
if fname =~ '/'
let dirpath = substitute(fname,'/[^/]\+$','','e')
if executable("cygpath")
let dirpath = substitute(system("cygpath ".s:Escape(dirpath,0)),'\n','','e')
endif
" call Decho("mkdir(dirpath<".dirpath.">,p)")
call mkdir(dirpath,"p")
endif
if zipfile !~ '/'
let zipfile= curdir.'/'.zipfile
endif
" call Decho("zipfile<".zipfile."> fname<".fname.">")
exe "w! ".fnameescape(fname)
if executable("cygpath")
let zipfile = substitute(system("cygpath ".s:Escape(zipfile,0)),'\n','','e')
endif
if (has("win32") || has("win95") || has("win64") || has("win16")) && &shell !~? 'sh$'
let fname = substitute(fname, '[', '[[]', 'g')
endif
" call Decho(g:zip_zipcmd." -u ".s:Escape(fnamemodify(zipfile,":p"),0)." ".s:Escape(fname,0))
call system(g:zip_zipcmd." -u ".s:Escape(fnamemodify(zipfile,":p"),0)." ".s:Escape(fname,0))
if v:shell_error != 0
redraw!
echohl Error | echo "***error*** (zip#Write) sorry, unable to update ".zipfile." with ".fname | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
elseif s:zipfile_{winnr()} =~ '^\a\+://'
" support writing zipfiles across a network
let netzipfile= s:zipfile_{winnr()}
" call Decho("handle writing <".zipfile."> across network as <".netzipfile.">")
1split|enew
let binkeep= &binary
let eikeep = &ei
set binary ei=all
exe "e! ".fnameescape(zipfile)
call netrw#NetWrite(netzipfile)
let &ei = eikeep
let &binary = binkeep
q!
unlet s:zipfile_{winnr()}
endif
" cleanup and restore current directory
cd ..
call s:Rmdir("_ZIPVIM_")
call s:ChgDir(curdir,s:WARNING,"(zip#Write) unable to return to ".curdir."!")
call s:Rmdir(tmpdir)
setlocal nomod
let &report= repkeep
" call Dret("zip#Write")
endfun
" ---------------------------------------------------------------------
" s:Escape: {{{2
fun! s:Escape(fname,isfilt)
" call Dfunc("QuoteFileDir(fname<".a:fname."> isfilt=".a:isfilt.")")
if exists("*shellescape")
if a:isfilt
let qnameq= shellescape(a:fname,1)
else
let qnameq= shellescape(a:fname)
endif
else
let qnameq= g:zip_shq.escape(a:fname,g:zip_shq).g:zip_shq
endif
" call Dret("QuoteFileDir <".qnameq.">")
return qnameq
endfun
" ---------------------------------------------------------------------
" ChgDir: {{{2
fun! s:ChgDir(newdir,errlvl,errmsg)
" call Dfunc("ChgDir(newdir<".a:newdir."> errlvl=".a:errlvl." errmsg<".a:errmsg.">)")
try
exe "cd ".fnameescape(a:newdir)
catch /^Vim\%((\a\+)\)\=:E344/
redraw!
if a:errlvl == s:NOTE
echo "***note*** ".a:errmsg
elseif a:errlvl == s:WARNING
echohl WarningMsg | echo "***warning*** ".a:errmsg | echohl NONE
elseif a:errlvl == s:ERROR
echohl Error | echo "***error*** ".a:errmsg | echohl NONE
endif
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
" call Dret("ChgDir 1")
return 1
endtry
" call Dret("ChgDir 0")
return 0
endfun
" ---------------------------------------------------------------------
" s:Rmdir: {{{2
fun! s:Rmdir(fname)
" call Dfunc("Rmdir(fname<".a:fname.">)")
if (has("win32") || has("win95") || has("win64") || has("win16")) && &shell !~? 'sh$'
call system("rmdir /S/Q ".s:Escape(a:fname,0))
else
call system("/bin/rm -rf ".s:Escape(a:fname,0))
endif
" call Dret("Rmdir")
endfun
" ------------------------------------------------------------------------
" Modelines And Restoration: {{{1
let &cpo= s:keepcpo
unlet s:keepcpo
" vim:ts=8 fdm=marker
| zyz2011-vim | runtime/autoload/zip.vim | Vim Script | gpl2 | 11,703 |