GithubHelp home page GithubHelp logo

hb-nvim's Introduction

hb-nvim: HumanBrain's Neovim Distribution

hb-nvim is a distribution of vim plugins and resources for Vim and Neovim with Oh My ZSH.

Requirements

  • Vim > 7.4, prefer 8.0

Based on

Installation

  1. Install spf13-vim
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
  • move .vimrc and .vimrc.bundles to $HOME path.
mv .vimrc ~/.
mv .vimrc.bundles ~/.
  1. Install or Update Plugins

    vim -> :PluginInstall
    vim -> :PluginUpdate
  2. Install Neovim (Stable)

    $ brew install neovim/neovim/neovim
    • Transitioning from Vim
    mkdir ~/.config
    ln -s ~/.vim ~/.config/nvim
    ln -s ~/.vimrc ~/.config/nvim/init.vim
  3. Install vim-plug (Neovim)

    curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    pip3 install neovim
    • Install or Update Plugs
    nvim -> :PlugInstall
    nvim -> :PlugUpgrade
  4. Install Oh My ZSH!

    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  5. Install requirements.txt

    • for Python (autopep8, flake8)
    pip install -r requirements.txt

Usages

  1. Cursor
key descripton
k 커서를 위로 움직임
j 커서를 아래로 움직임
h 커서를 왼쪽으로 움직임
l 커서를 오른쪽으로 움직임
- 커서를 줄의 처음으로 옮김
e, E 다음단어의 끝으로, 문자단위 이동
w, W 다음단어의 처음으로, 문자단위 이동
$ 줄의 마지막으로
0 줄의 처음으로
^ 줄의 처음으로(공백이 아닌 처음시작되는 문자)
Shift+g 문서의 마지막으로 이동한다.
gg, 1g 문서의 처음으로 이동한다. 1대신 다른 숫자를 입력하면 해당 숫자의 라인으로 이동한다.
), ( 다음, 이전 문장의 처음으로
}, { 다음, 이전문단의 처음으로
]], [[ 다음, 이전 구절의 처음으로

Plugins

" Use neoformat.
" option - replace : replace the file, instead of updating buffer (default: 0)
let g:neoformat_python_autopep8 = {
        \ 'exe': 'autopep8',
        \ 'args': ['--aggressive', '--max-line-length 120'],
        \ 'replace': 1,
        \ }
let g:neoformat_enabled_python = ['autopep8']

Additional Syntaxes

Colorscheme

Git Hooks

  • Python (flake8)
flake8 --install-hook git

" if want prevent commit
git config --bool flake8.strict true

hb-nvim's People

Contributors

dongjunlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.