Vim Notes

Setup

  • vim-plug
    • .
      curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
      https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    • :PlugInstall
  • .vimrc
    • check out my .vimrc out here
      • git clone git@bitbucket.org:chris_linn/my-vimrc.git
  • Powerline fonts
    # clone
    git clone https://github.com/powerline/fonts.git
    # install
    cd fonts
    ./install.sh
    # clean-up a bit
    cd ..
    rm -rf fonts
    • Ubuntu Mono derivative Powerline
    • Nerd-fonts?
      • Hack (nerd) font?
        • kubuntu's default font
      • I think I should use UbuntuMono Nerd Mono

Shortcuts

  • To Shell
    • To suspend your running Vim
      • Ctrl+Z
      • fg
    • To start a new shell
      • :sh
      • Ctrl+D

Buffer

  • :Buffers or :buffers
  • bd

ag

:Ag

vim-go

  • :GoDef
  • Ctrl+x, Ctrl+o

Commands

  • macro
qa...q
reg@a
@a[times]
let @a=''