Coder Social home page Coder Social logo

.vim's Introduction

Vim Setup Tutor

This tutor is tested on Debian, it should work on Ubuntu.

install vim (+python)

apt install vim-nox
vim --version | grep +python

create ~/.vim

git clone https://github.com/tpope/vim-pathogen.git ~/.vim
cd ~/.vim
git mv *.markdown autoload

create vimrc

cat >> vimrc << _EOF_
set nu
set et sw=4

execute pathogen#infect()
syntax on
filetype plugin indent on

set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
_EOF_

install plugins

git submodule add https://github.com/tpope/vim-fugitive.git bundle/fugitive
git submodule add https://github.com/tpope/vim-surround.git bundle/surround
git submodule add https://github.com/tpope/vim-repeat.git bundle/repeat
git submodule add https://github.com/tpope/vim-unimpaired.git bundle/unimpaired
git submodule add https://github.com/tpope/vim-sensible.git bundle/sensible
git submodule add https://github.com/powerline/powerline.git bundle/powerline

git config submodule.bundle/vimwiki.ignore dirty

vim -c 'Helptags|q'

vimwiki doesn't ignore tags, we need to tell git to ignore it.

upgrade plugins

git submodule foreach git pull origin master

config fonts

wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p ~/.fonts/ ~/.config/fontconfig/conf.d/
mv PowerlineSymbols.otf ~/.fonts/
fc-cache -vf ~/.fonts/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

push to github

git remote rename origin upstream
git remote add orgin [email protected]:vimagick/.vim.git
git add .
git commit -m 'init commit'
git push -u github master

clone from github

git clone --recursive https://github.com/vimagick/.vim.git ~/.vim

.vim's People

Contributors

dbb avatar graywh avatar jaredatron avatar koalaman avatar leoluz avatar lparry avatar maksimr avatar mattn avatar narfdotpl avatar powerman avatar sejaeger avatar sofaking avatar tpope avatar vimagick avatar

Watchers

 avatar  avatar  avatar

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.