Skip to content

snawbel/dotvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eriks Vim setup

Installing a new plugin

Use vim-plug

  1. Add Plug 'repo/plugin' to .vimrc
  2. Save and source .vimrc :so %
  3. Run :PlugInstall

Installing Vim on another machine

cd ~
git clone http://github.com/snawbel/dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc
cd ~/.vim
mkdir plugged
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Upgrading a plugin bundle

:PlugUpdate pluginname

Remove a plugin

Remove from .vimrc

Vim Dances

Find in all files

:vim /StuffToFind/g ./src/**/*.js

Then use [q and ]q to move between search hits.

Other settings

Remap Capslock to Ctrl/Esc

  • Remap Caps Lock to Control in the Keyboard preference pane.
  • In Karabiner-Elements, enable Change caps_lock to control if pressed with other keys, to escape if pressed alone.

Now, hitting Caps Lock alone will escape while holding it down and hitting another key will act as Control.

Font Stuff

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published