Action | Key | Package | Notes |
---|---|---|---|
Jump to previous cursor position | alt-- |
last-cursor-position | |
Jump to next cursor position | alt-_ |
last-cursor-position | |
Jump to previous edit | ctrl-i |
goto-last-edit | |
Jump to next edit | ctrl-alt-i |
goto-last-edit | |
Align selection | ctrl-cmd-/ |
aligner | |
Jump to matching block | ctrl-g b |
ruby-block | Not working |
Grep in current project | ctrl-alt-g |
fuzzy-grep | Defaults to Ag |
This file contains 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
# Insert your preferred key mappings here. | |
# Warning, these settings override Chrome defaults eg <ctrl-d>. | |
map <c-d> scrollPageDown | |
map <c-u> scrollPageUp |
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.
This file contains 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
" HOW TO DO 90% OF WHAT PLUGINS DO (WITH JUST VIM) | |
" Max Cantor | |
" NYC Vim Meetup -- August 3, 2016 |
This file contains 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
(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) | |
) |
This file contains 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
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 |