Skip to content

Instantly share code, notes, and snippets.

View puremourning's full-sized avatar

Ben Jackson puremourning

View GitHub Profile
@puremourning
puremourning / Vagrantfile
Created June 10, 2017 19:06
Setting up a Vagrant VM for CentOS 7
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "parallels/centos-7.3"
#config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "public_network"
config.vm.provider "parallels" do |v|
@puremourning
puremourning / ycm_pedit.vim
Created February 19, 2022 17:02
YCM: Show definition of symbol under cursor in preview window
function! s:ShowGoToInPreviewWindow( result )
if has_key( a:result, 'error' )
echom a:result.error
return
endif
if type( a:result ) == v:t_list
echom 'Too many definitions'
return
endif
@puremourning
puremourning / vertical_quickfix.vim
Created October 16, 2020 13:01
Vertical QuickFix windows in Vim
let cpo=&cpo
set cpo&vim
function! s:MakeVertical()
let b:ycm_no_resize = 1
wincmd L
endfunction
function! s:EnableVerticalQuickFix() abort
augroup VerticalQuickFix
#!/usr/bin/env bash
# set up the proxy
proxy_port="TODO: Proxy Port"
proxy_host="TODO: Porxy host"
user="TODO: proxy user"
password="TODO: proxy password"
# ---
This file has been truncated, but you can view the full file.
[2019-11-09T14:49:00Z DEBUG rls::server] Language Server starting up. Version: rls 1.38.0 (496c892 2019-08-12)
[2019-11-09T14:49:00Z TRACE rls::server::io] reading: 747 bytes
[2019-11-09T14:49:00Z TRACE rls::server] Read message `{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItem":{"documentationFormat":["plaintext","markdown"]},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"contentFormat":["plaintext","markdown"]},"signatureHelp":{"signatureInformation":{"documentationFormat":["plaintext","markdown"],"parameterInformation":{"labelOffsetSupport":false}}}},"workspace":{"applyEdit":true}},"initializationOptions":{},"processId":32413,"rootPath":"/Users/ben/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/tests/rust/testdata/common","rootUri":"file:///Users/ben/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/tests/rust/testdata/common"}}`
[2019-11-09T14:49:00Z TRACE rls::server] Pars
@puremourning
puremourning / test.md
Created August 11, 2019 21:53
ycm vim tests

Quick Start

## Running the tests

You have to be on MacOS or Linux. Sorry, Windows testing is not supported.

  • Ensure you have at least the Vim vresion in YCM_VIM_VERSION (in azure-pipelines.yml)
  • Ensure ycmd is compiled and clangd is enabled install.py --clangd-completer
@puremourning
puremourning / vimspector.log
Last active August 10, 2019 13:54
MIEngine NullArgument error
Reading from channel output...
2019-08-10 14:53:13,545 - INFO - **** INITIALISING NEW VIMSPECTOR SESSION ****
2019-08-10 14:53:13,545 - INFO - VIMSPECTOR_HOME = /Users/ben/.vim/bundle/vimspector
2019-08-10 14:53:13,553 - INFO - gadgetDir = /Users/ben/.vim/bundle/vimspector/gadgets/macos
2019-08-10 14:53:13,554 - INFO - User requested start debug session with {}
2019-08-10 14:53:13,556 - DEBUG - Starting debugger from stack context: [' File "<string>", line 1, in <module>\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 312, in Continue\n self.Start()\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 165, in Start\n self._StartWithConfiguration( configuration, adapter )\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 213, in _StartWithConfiguration\n start()\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 170, in start\n traceback.form
_3/_regex.so
[100%] Built target _regex
go: golang.org/x/sync@v0.0.0-20190423024810-112230192c58: unrecognized import path "golang.org/x/sync" (https fetch: Get https://golang.org/x/sync?go-get=1: x509: certificate signed by unknown authority)
go: golang.org/x/net@v0.0.0-20190311183353-d8887717615a: unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: x509: certificate signed by unknown authority)
go: error loading module requirements
npm WARN tern_runtime No repository field.
npm WARN tern_runtime No license field.
audited 37 packages in 0.571s
found 0 vulnerabilities
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ auto/configure --prefix=/mma/users/benj/proj/vim/root-6.5-py3 --enable-fail-if-missing --enable-gui=auto --with-features=huge --enable-fontset --enable-multibyte --enable-cscope --enable-xim --enable-python3interp=yes --enable-rubyinterp=dynamic --enable-terminal --enable-autoservername --srcdir=. --cache-file=auto/config.cache
## --------- ##
## Platform. ##
@puremourning
puremourning / rfc.md
Last active February 12, 2019 15:25
RFC: Parameter hints popup menu

TL;DR

This RFC proposes introducing a second popup menu in insert mode to display method argument hints, current parameter, etc. similar to a number of IDEs and editors. The proposal is to allow scripts to control this (such as on insert of ( and ) characters) and for it to be non-interractive and not to interfere with insert-mode completion.

The purpose of the RFC is to guage the appetite from Bram and the community for such a feature, and to discuss the design/functional behaviours prior to