Skip to content
/ vim Public
forked from chenzhiwei/vim

VIM/NVIM Configuration

Notifications You must be signed in to change notification settings

kisy/vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Vim Configuration

Install NeoVIM

brew install neovim

add-apt-repository ppa:neovim-ppa/stable
apt update && apt -y install neovim

Setup

git clone --recurse-submodules https://github.com/chenzhiwei/vim ~/.vim
~/.vim/setup.sh

source ~/.vim/.bashrc

Requirement

apt install -y python3-pip python3-wheel python3-setuptools --no-install-recommends
pip3 install --upgrade pynvim

Commands

  • Ctr + o Jump to previous visited locations
  • Ctr + i Jump forward to the next locations
  • Ctr + g Show the file info that currently edit

Extended commands

  • CTRL + ] switch to defination/declaration.
  • CTRL + T to switch back.
  • :tn switch to next defination/declaration.
  • :tp switch to previous defination/declaration.
  • g] switch between multiple tags.

Extra vim commands

:PlugInstall
:GoInstallBinaries

Settings

  • :windo set wrap Wrap lines in vimdiff window

Debug VIM

Following will generate a myVim.log with debug level 9.

vim -V9myVim.log filename

More

在 bash 里用 vim 打开一些文件时这些文件名不能被自动补全,比如.a.o文件。

$ ls
test.a test.o test.so test.txt
$ vim t[tab][tab]

原因是/usr/share/bash-completion/bash_completion里的这一行:

_install_xspec '*.@(o|so|so.!(conf|*/*)|a|[rs]pm|gif|jp?(e)g|mp3|mp?(e)g|avi|asf|ogg|class)' vi vim gvim rvim view rview rgvim rgview gview emacs xemacs sxemacs kate kwrite

About

VIM/NVIM Configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 92.4%
  • Vim Script 7.6%