https://github.com/vimagick/.vim
:monkey: ~/.vim
https://github.com/vimagick/.vim
Last synced: 24 days ago
JSON representation
:monkey: ~/.vim
- Host: GitHub
- URL: https://github.com/vimagick/.vim
- Owner: vimagick
- Created: 2015-05-17T02:53:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-07-04T15:22:21.000Z (over 9 years ago)
- Last Synced: 2025-02-23T22:23:41.841Z (about 1 year ago)
- Language: VimL
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 git@github.com: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