Code Monkey home page Code Monkey logo

vim-workshop's Introduction

Vim workshop

Warning: Outdated Repository

This workshop is a bit dated, and as such, the instructions might not work as expected. For a modern look at a vim installation, check out my dotfiles.

This repo contains the slides for my vim talk. Additionally, I have provided a starter vimrc and tmux.conf. These may be a good starting point for someone getting into vim and tmux.

Check out the presentation PDF.

Vim setup instructions

  1. Download vim

    Likely, vim is already installed on you machine. If you're on a mac, you can get the latest vim from Homebrew.

    brew install macvim --override-system-vim
  2. Create a vimrc

    Create a vim configuration file in your home directory and a .vim/bundle directory

    cp vimrc ~/.vimrc
    mkdir -p ~/.vim/bundle
  3. Add vundle

    If you'd like to use vundle to manage plugins, you can install it as a git submodule

    git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/vundle

    You will also need to let vim know about vundle by adding it to your ~/.vimrc.

    set rtp+=~/.vim/bundle/vundle/
    call vundle#begin()
    
    " let vundle manage vundle
    Plugin 'gmarik/vundle'
    
    " list all plugins that you'd like to install here
    Plugin 'kien/ctrlp.vim' " fuzzy find files
    Plugin 'scrooloose/nerdtree' " file drawer, open with :NERDTreeToggle
    Plugin 'benmills/vimux'
    Plugin 'tpope/vim-fugitive' " the ultimate git helper
    Plugin 'tpope/vim-commentary' " comment/uncomment lines with gcc or gc in visual mode
    
    call vundle#end()
    filetype plugin indent on
  4. Start vim and install default plugins

    vim +PluginInstall
  5. Install tmux

    tmux can be installed from Homebrew on OSX

    brew install tmux
  6. Add a tmux config

    cp tmux.conf ~/.tmux.conf
  7. Connect to a new tmux session

    tmux new-session -s pasta

Got questions? I'm always excited to talk about vim + tmux!

Trouble Shooting

  1. If your tmux session is closed immediatly and you see the [exited] message in the terminal you are probably missing the reattach-to-user-namespace package to install it simply do

    brew install reattach-to-user-namespace

vim-workshop's People

Contributors

khaledgarbaya avatar nicknisi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-workshop's Issues

Presentation

What did you use to show your Markdown as a presentation ? (like in the video)

getting an error using the .tmux.conf on ubuntu 20.04

When I try to source the .tmux.conf file I get a error saying

.tmux.conf:74: usage: bind-key [-cnr] [-T key-table] key comman[0/0]
guments]

tmux just displays this and there is no other entry mode left at the terminal at that point

Terrible mistake

On page 19 of the pdf, you put h j k l and write under it 'left up down right'. Should be 'left down up right'.

You may have been a driving factor in making me a vim/tmux user, I may use a crippled fork of your dotfiles, but I this cruel joke on newcomers should be rectified!

<3

which key is this?

image

I saw this when I watch your video on youtube, I wonder which key it is on keyboard?

Status Bar

Awesome video, As a Vim newbie, I learned so many cool things.

Any chance you're planning a follow up video on how to get the status bar in Vim like yours?

Many thanks for putting the video on Youtube.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.