diff --git a/after/syntax/c.vim b/after/syntax/c.vim index ba8b291..0805d66 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -72,7 +72,8 @@ syn keyword cAnsiFunction wcstombs mbstowcs wctomb syn keyword cAnsiFunction mbtowc mblen lldiv syn keyword cAnsiFunction ldiv div llabs syn keyword cAnsiFunction labs abs qsort -syn keyword cAnsiFunction bsearch system getenv +"syn keyword cAnsiFunction bsearch system getenv +syn keyword cAnsiFunction bsearch getenv syn keyword cAnsiFunction exit atexit abort syn keyword cAnsiFunction realloc malloc free syn keyword cAnsiFunction calloc srand rand diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index 6c34fe7..5a0c218 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -134,6 +134,7 @@ syntax keyword cppSTLfunctional binary_negate syntax keyword cppSTLfunctional bit_and syntax keyword cppSTLfunctional bit_not syntax keyword cppSTLfunctional bit_or +syntax keyword cppSTLfunctional bit_xor syntax keyword cppSTLfunctional divides syntax keyword cppSTLfunctional equal_to syntax keyword cppSTLfunctional greater @@ -197,7 +198,7 @@ syntax keyword cppSTLfunction count syntax keyword cppSTLfunction count_if syntax keyword cppSTLfunction c_str syntax keyword cppSTLfunction ctime -syntax keyword cppSTLfunction data +"syntax keyword cppSTLfunction data syntax keyword cppSTLfunction denorm_min syntax keyword cppSTLfunction destroy syntax keyword cppSTLfunction difftime @@ -459,7 +460,7 @@ syntax keyword cppSTLfunction swap_ranges syntax keyword cppSTLfunction swprintf syntax keyword cppSTLfunction swscanf syntax keyword cppSTLfunction sync_with_stdio -syntax keyword cppSTLfunction system +"syntax keyword cppSTLfunction system syntax keyword cppSTLfunction tan syntax keyword cppSTLfunction tanh syntax keyword cppSTLfunction tellg @@ -1053,7 +1054,7 @@ if !exists("cpp_no_cpp11") syntax keyword cppSTLconstant FLT_EVAL_METHOD " complex - syntax keyword cppSTLfunction proj + "syntax keyword cppSTLfunction proj " random syntax keyword cppSTLtype linear_congruential_engine diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim new file mode 100644 index 0000000..62f83a8 --- /dev/null +++ b/after/syntax/yaml.vim @@ -0,0 +1,6 @@ +" Language: Colorful CSS Color Preview +" Author: Aristotle Pagaltzis + +if !( has('gui_running') || &t_Co==256 ) | finish | endif + +call css_color#init('hex', 'extended', 'yamlComment,yamlFlowString,yamlPlainScalar') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index d55b542..932dc34 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1,6 +1,6 @@ au BufRead,BufNewFile *.ino,*.pde set filetype=arduino au BufNewFile,BufRead *.blade.php set filetype=blade -autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn setlocal filetype=clojure +autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc setlocal filetype=clojure autocmd BufNewFile,BufRead *.coffee set filetype=coffee autocmd BufNewFile,BufRead *Cakefile set filetype=coffee autocmd BufNewFile,BufRead *.coffeekup,*.ck set filetype=coffee diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index c8c3946..6040474 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -67,7 +67,7 @@ if !exists('g:ruby_version_paths') let g:ruby_version_paths = {} endif -function! s:query_path(root) +function! s:query_path(root) abort let code = "print $:.join %q{,}" if &shell =~# 'sh' let prefix = 'env PATH='.shellescape($PATH).' ' @@ -92,7 +92,7 @@ function! s:query_path(root) endtry endfunction -function! s:build_path(path) +function! s:build_path(path) abort let path = join(map(copy(a:path), 'v:val ==# "." ? "" : v:val'), ',') if &g:path !~# '\v^\.%(,/%(usr|emx)/include)=,,$' let path = substitute(&g:path,',,$',',','') . ',' . path @@ -146,7 +146,22 @@ let b:undo_ftplugin = "setl fo< inc< inex< sua< def< com< cms< path< tags< kp<" \."| if exists('&ofu') && has('ruby') | setl ofu< | endif" \."| if has('balloon_eval') && exists('+bexpr') | setl bexpr< | endif" +function! s:map(mode, flags, map) abort + let from = matchstr(a:map, '\S\+') + if empty(mapcheck(from, a:mode)) + exe a:mode.'map' ''.(a:0 ? a:1 : '') a:map + let b:undo_ftplugin .= '|sil! '.a:mode.'unmap '.from + endif +endfunction + +cmap