Skip to content

ujnzxw/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ujnzxw's Dot Files

Steven ZHAO's configuration files.

Linux, *nix Installation

The easiest way to install ujnzxw-dotfiles is to use our automatic installer by simply copying and pasting the following line into a terminal. This will install ujnzxw-dotfiles and backup your existing vim configuration.

Requires Git 1.7+ and Vim 7.4.2009+

export APP_PATH=/your/Install/path (Default path is: ~/.ujnzxw-dotfiles)
curl https://raw.githubusercontent.com/ujnzxw/dotfiles/master/install.sh -L > ujnzxw-dotfiles.sh && sh ujnzxw-dotfiles.sh

If you have a bash-compatible shell you can run the script directly:

export APP_PATH=/your/Install/path (Default path is: ~/.ujnzxw-dotfiles)
sh <(curl https://raw.githubusercontent.com/ujnzxw/dotfiles/master/install.sh -L)

Features:

Many features are included in this dotfiles project. In fact, all the dotfiles you concerned can be managed and maintained by dotfiles project. Such as bash dot files(.bashrc, etc), VIM dot files (.vimrc, plugins, etc), TMUX dotfiles, python autoenv scripts, etc.

Here I only list the main features for every part.

Bash

It include bash dot files: .bashrc, .bash_profile, .bashrc.local.

You can add your bash settings into .bashrc.local if you need, and this file is ignored by dotfiles git. The main bash configuration data is included in .bashrc, it include but not limit:

  • Editor defination
  • History settings
  • Language and Time Zone settings
  • Many useful aliases and functions defination, such as function bak() { cp -a "$1" "$1".bak; }
  • PS1 - Command lind prompt string settings

Vim

It include Vim dotfiles: .vimrc and .vimrc.plugins

The main Vim configuration data is included in .vimrc, the features for Vim include but not limit:

  • use Vundle to manage VIM plugins
  • Support Ctags (Hot Key F5 trigger)
  • Support file tree (Hot Key F4 trigger)
  • Support Vim airline
  • Support auto-complete
  • Code auto format for python code (*.py) and Go code (*.go)
  • Exceeding chars highlight (Hot Key F2 trigger highlight and F3 trigger reminder line)
  • Suppot spelling check and auto correcting
  • Ctrl + S to save files (equal to :w)

autoenv

If a directory contains a .env file, it will automatically be executed when you cd into it. For details please refer to kennethreitz/autoenv

Below is the introduction for the plugins installed in Vim:

Vundle

A vim plugin manager, this is the GitHub homepage.

Vim-airline

lean & mean status/tabline for vim that's light as air

  1. Install necessary font in ../font
  2. Set system font: Terminal -> Edit -> Profile Perference
    • Un-check "Use the system fixed width font"
    • Select font "Droid Sans Mono Slashed for Powerline"
    • Set font SIZE to 11
  3. Install vim-airline by Vundle

gmarik/vundle

Plugin Manager

majutsushi/tagbar

Vim plugin that displays tags in a window ordered by scope http://majutsushi.github.com/tagbar/

Shougo/neocomplete.vim

Auto-compete plugin

fatih/vim-go

*requires at least Vim 7.4.2009 *

Go development plugin for Vim https://patreon.com/fatih

License

Copyright (c) 2016 ujnzxw ujnzxw@gmail.com

Distributed under the MIT license. See the LICENSE file for more details.

Fix issues

  1. neocomplete requires Vim 7.3.885 or later with Lua support ("+lua").

    # sudo yum install -y ruby ruby-devel lua lua-devel luajit luajit-devel ctags mercurial python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed ncurses-devel
    # git clone https://github.com/vim/vim.git
    # cd vim
    # ./configure --with-features=huge --enable-multibyte --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-luainterp --enable-gui=gtk2 --enable-cscope --with-tlib=ncurses --prefix=/usr
    # sudo make install
    
  2. update Vim to 8.0 to adapt vim-go plugin. procedure:

Please refer to vim/README.md

Thanks

Author

ujnzxw - Steven ZHAO

Distributed under the MIT license. See the LICENSE file for more details.

Reference

  1. How to Install Pip on Ubuntu 14.04 LTS
  2. tmux - A Great Terminal Multiplexer
  3. How to install tmux