This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " for Java: makes main signature | |
| iabbrev jmain public static void main (String[] args) | |
| " for Java: output shortcuts | |
| iabbrev Sout System.out.println | |
| iabbrev Serr System.err.println | |
| " for Java: import shortcuts | |
| iabbrev Iawt import java.awt.*; | |
| iabbrev Iswing import javax.swing.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " File: after/plugin/ctrlp.vim | |
| " Description: Custom statusline example | |
| " Make sure ctrlp is installed and loaded | |
| if !exists('g:loaded_ctrlp') || ( exists('g:loaded_ctrlp') && !g:loaded_ctrlp ) | |
| fini | |
| en | |
| " ctrlp only looks for this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| # Script to provide answer for question: | |
| # http://stackoverflow.com/questions/5149872/how-to-git-remote-add-and-track-a-branch-in-the-same-filesystem | |
| echo create origin | |
| mkdir origin | |
| cd origin/ | |
| git init --bare | |
| cd .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // test case for https://vi.stackexchange.com/questions/8718/vim-switch-statement-cindent-options/8722#8722 | |
| { | |
| switch (status) | |
| { | |
| case Status.OK: | |
| return ErrorCode.OK; | |
| case Status.Bad: | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/vim-airline/vim-airline/issues/2029 | |
| To get profile: | |
| > gvim.exe ~/.vim/bundle/airline/autoload/airline/extensions/branch.vim | |
| :profile start ~/airline.vprof | profile func * | Gedit HEAD | |
| " wait for five seconds after buffer shows commit info | |
| :quit | |
| FUNCTION FugitiveExtractGitDir() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| rem Created by idbrii based on script from vim 8.2.314 | |
| rem See also https://github.com/vim/vim/blob/1fa8d2c33d7290eda7dc2a94d4ec6a599a2d61dd/src/dosinst.c#L842-L950 | |
| rem -- Run Vim -- | |
| rem # uninstall key: vim82 # | |
| setlocal | |
| set VIM_EXE_DIR=C:\Users\idbrii\scoop\apps\vim-nightly\current | |
| if exist "%VIM%\vim82\gvim.exe" set VIM_EXE_DIR=%VIM%\vim82 | |
| if exist "%VIMRUNTIME%\gvim.exe" set VIM_EXE_DIR=%VIMRUNTIME% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // TERMS OF USE - EASING EQUATIONS | |
| // | |
| // Open source under the BSD License. | |
| // | |
| // Copyright © 2001 Robert Penner | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
| // | |
| // Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Test file for chained function calls for lua syntax | |
| -- Source: https://love2d.org/forums/viewtopic.php?t=77904 | |
| local flux = require "flux" | |
| local colon_out = self.kitchen | |
| :getContents() | |
| :getCheese() | |
| :enjoyCheese(self | |
| :mouth() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " An extremely rough approximation of vscode's inliner: | |
| " https://www.youtube.com/watch?v=EenznqbW5w8 | |
| " Uses vim's popupwin to show the definition of a tag. Hijacks the arrow keys | |
| " to let you move a cursor inside that window and jump to another tag. | |
| " | |
| " Public domain, CC0. | |
| let g:tagpopper_z = 0 | |
| " Turning this off hides some bugs but then preview window is even more | |
| " superior. Not sure why sometimes popup contents is clobbered. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Public domain/CC0 | |
| -- A pid controller (proportional–integral–derivative controller). | |
| -- Useful to track an entity without overshooting (like a docking spaceship). | |
| -- Could be expanded to control orientation, speed, or other values. | |
| -- Requires tuning values: | |
| -- tuning = { | |
| -- gain = { | |
| -- -- all in [0,1] |
OlderNewer