Skip to content

Instantly share code, notes, and snippets.

@skywind3000
skywind3000 / vimtweak2.vim
Last active June 17, 2023 02:13
Pure python + vimscript implementation of vimtweak (set gvim window transparency on windows)
#include <stdio.h>
@skywind3000
skywind3000 / console-bs.diff
Last active January 23, 2018 07:20
Patch to fix Backspace for Windows Console Vim
diff --git a/src/os_win32.c b/src/os_win32.c
index f2fd808e9..323bdcd7c 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -807,6 +807,7 @@ static const struct
{ VK_NEXT, TRUE, 'Q', '\322', 'v', '\323', }, /*PgDn*/
{ VK_INSERT,TRUE, 'R', '\324', '\325', '\326', },
{ VK_DELETE,TRUE, 'S', '\327', '\330', '\331', },
+ { VK_BACK, TRUE, '\x7f', 0, 0, 0, },
@skywind3000
skywind3000 / readme.txt
Last active November 29, 2021 18:48
Vim default gist
heihei
test your
@skywind3000
skywind3000 / vinegar.vim
Last active March 21, 2018 14:15
vinegar fork to support dirvish / nerdtree / netrw
"======================================================================
"
" vinegar.vim - Vinegar & Oil (fork from tpope/vim-vinegar)
"
" Created by skywind on 2017/06/30
" Last Modified: 2018/03/16 22:33
"
" Split windows and the project drawer go together like oil and
" vinegar. I don't mean to say that you can combine them to create a
" delicious salad dressing. I mean that they don't mix well!
@skywind3000
skywind3000 / argtextobj.vim
Last active May 8, 2019 15:54
argtextobj.vim #vim #textobj
"=============================================================================
" argtextobj.vim - Text-Object like motion for arguments
"=============================================================================
"
" Author: Takahiro SUZUKI <[email protected]>
" Version: 1.1.1 (Vim 7.1, 2009), forked and patched by inkarkat (2010-2014)
" https://github.com/inkarkat/argtextobj.vim
"
" Licence: MIT Licence
"
@skywind3000
skywind3000 / baidu_statistic.js
Last active May 8, 2019 16:03
[javascript] async load script #js #async
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?430525c455fa119f047f66ba9aa5e3b1";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
@skywind3000
skywind3000 / tasks-new-terminal.json
Created May 9, 2019 01:49
[vscode] task tricks #new #terminal
// open new terminal
// https://stackoverflow.com/questions/47993595/launch-vscode-task-in-external-terminal-via-tasks-2-0-0
{
"label": "%name%",
"type": "shell",
"command": "Start-Process -FilePath \"%path to bat%\"",
"presentation": {
"reveal": "never"
},
"problemMatcher": [],
@skywind3000
skywind3000 / test.py
Created May 9, 2019 08:51
[python] test1
import sys
@skywind3000
skywind3000 / settings.py
Created May 9, 2019 08:52
[python] settings #1234 #4571234 #1234
import sys
@skywind3000
skywind3000 / test.xml
Last active November 29, 2021 18:44
我就是不告诉你我要写什么 #tag1 #tag2 #tag3
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<FileZilla3>
<Servers>
<Server>
<Host>ftp.cocosx.com</Host>
<Port>21</Port>
<Protocol>0</Protocol>
<Type>0</Type>
<User>[email protected]</User>
<Logontype>2</Logontype>