Skip to content

Instantly share code, notes, and snippets.

💠
Dr Oktagon

turnspike turnspike

💠
Dr Oktagon
Block or report user

Report or block turnspike

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@turnspike
turnspike / atom-vim-keys.md
Last active Nov 8, 2017
Vim functionality in Atom
View atom-vim-keys.md
View vim-noplugins.vim
" HOW TO DO 90% OF WHAT PLUGINS DO (WITH JUST VIM)
" Max Cantor
" NYC Vim Meetup -- August 3, 2016
View spacemacs-fix-helm-errors.el
(defun dotspacemacs/user-init ()
;; -- only update from stable packages (otherwise can break smacs)
;; workaround for https://github.com/syl20bnr/spacemacs/issues/9549
;; run this after adding: rm -rf ~/.emacs.d/elpa/*
(push '("melpa-stable" . "stable.melpa.org/packages/") configuration-layer--elpa-archives)
(push '(helm . "melpa-stable") package-pinned-packages)
)
@turnspike
turnspike / vim-control-sequences.md
Last active Oct 1, 2017
Vim: reserved control sequences
View vim-control-sequences.md

I would not remap any of these:

<C-@> and <C-A>: Repeat last insert (and automatically escape with <C-@>). These are basically the same as <C-R>.. Indispensable once you get used to them.
<C-D> and <C-T>: Change indent level even if you're not at the beginning of the line. Handy, but I don't use it much.
<C-E> and <C-Y>: Copy character from below/above the cursor. Sort of useful, not terribly. But not having them would drive me nuts.
<C-G>: A prefix key. I don't really care about <C-G>u to split the insert into multiple undo levels. Almost no one uses <C-G>j/<C-G>k to start a new insert a line down/up at the same column the current insert started on, but I'm a huge fan. I wouldn't touch this.
<C-I>: This is literally the same as <Tab>. Don't you dare touch this.
<C-M>: This is literally the same character you get from hitting Enter. Don't you dare touch this.
<C-N> and <C-P>: Basic word completion. Extremely useful. I would never touch this.
@turnspike
turnspike / Linux - Vim: Build Vim8 with Ruby, Lua, Python3
Last active Nov 18, 2016 — forked from techgaun/vim8.x_with_lua
Build Vim8 with Ruby, Lua, Python3 on Ubuntu 16.04 Xenial Xerus
View Linux - Vim: Build Vim8 with Ruby, Lua, Python3
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim-gnome
sudo apt-get install build-essential liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo rm -rf /usr/local/share/vim /usr/bin/vim /usr/local/bin/vim
#sudo mkdir /usr/include/lua5.1/include
#sudo cp /usr/include/lua5.1/*.h /usr/include/lua5.1/include/
cd /tmp
git clone https://github.com/vim/vim.git
cd vim
make distclean
You can’t perform that action at this time.