Skip to content

Instantly share code, notes, and snippets.

View turnspike's full-sized avatar
☯️
With our thoughts, we make the world.

turnspike turnspike

☯️
With our thoughts, we make the world.
View GitHub Profile
@turnspike
turnspike / Linux - Vim: Build Vim8 with Ruby, Lua, Python3
Last active November 18, 2016 14:06 — forked from techgaun/vim8.x_with_lua
Build Vim8 with Ruby, Lua, Python3 on Ubuntu 16.04 Xenial Xerus
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
(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-noplugins.vim
Created October 1, 2017 04:35
Vim with no plugins
" HOW TO DO 90% OF WHAT PLUGINS DO (WITH JUST VIM)
" Max Cantor
" NYC Vim Meetup -- August 3, 2016
@turnspike
turnspike / vim-control-sequences.md
Last active October 1, 2017 04:37
Vim: reserved control sequences

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 / atom-vim-keys.md
Last active November 8, 2017 04:59
Vim functionality in Atom
@turnspike
turnspike / Chrome Vimium settings
Created August 9, 2022 23:25
Settings to make the Vimium chrome extension behave
# Insert your preferred key mappings here.
# Warning, these settings override Chrome defaults eg <ctrl-d>.
map <c-d> scrollPageDown
map <c-u> scrollPageUp