Skip to content

DongjunLee/hb-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published