Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ZyX-I's full-sized avatar

Nikolai Aleksandrovich Pavlov ZyX-I

View GitHub Profile
@ZyX-I
ZyX-I / viml-incompatibilities.md
Last active August 22, 2021 07:06
Incompatibilities list from neovim/neovim#387

Here I will list all incompatibilities between old and new VimL implementations. Some may be fixed, so it is also a place for discussion. Please discuss incompatibilities with separate issues in separate issues.

Expressions parser incompatibilities

  • Dot subscripts are not always read correctly (#240).
  • E15 errors are not not just “E15: Invalid expression”: there are (invalid expressions)
  • “E15: expected variable name” (\x80\xFD\x52)
@ZyX-I
ZyX-I / docker-logs.txt
Last active April 23, 2017 19:12
Docker logs when building latex-g7-32
+ set -u
+ PROJECT_ROOT=/doc
+ cd /doc
+ test -x /doc/docker/build.sh
+ /doc/docker/build.sh
+ set -u
+ ARGS_make_pdflatex=LATEX=pdflatex
+ ARGS_make_xelatex=
+ ARGS_cmake_pdflatex=-DPREFER_XELATEX=false
+ ARGS_cmake_xelatex=
@ZyX-I
ZyX-I / report.err
Created April 10, 2017 10:23
PVS-studio reports for Neovim
www.viva64.com/en/w:1:1: error: Help: The documentation for all analyzer warnings is available here: http://www.viva64.com/en/w/.
./src/nvim/api/ui.c:57:1: warning: V618 It's dangerous to call the 'snprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
./src/nvim/api/ui.c:62:1: warning: V618 It's dangerous to call the 'snprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
./src/nvim/api/ui.c:128:1: warning: V618 It's dangerous to call the 'snprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
./src/nvim/api/ui.c:140:1: warning: V618 It's dangerous to call the 'snprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
./src/nvim/api/ui.c:145:1: warni
# -*- coding: utf-8 -*-
"""
Go to Google Bookmarks: https://www.google.com/bookmarks/
On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en
After downloading the html file, run this script on it to generate a KML.
"""
@ZyX-I
ZyX-I / RFC.rst
Last active December 17, 2015 05:58

New python objects

vim.mappings/{buffer}.mappings:

Mapping-like object mapping mode constants to vim.modemappings objects below. Unlike vim.buffers iteration is being done for keys. Mode constants are described below in vim.current.mode object description, but for convenience additional constants are defined:

@ZyX-I
ZyX-I / launch.sh
Created January 6, 2012 05:21
Test of various ways to get buffer contents
#!/bin/sh
FILENAME="$1" \
vim -u NONE -N -S readfile-test.vim --cmd 'let AddFileName=$FILENAME'