lin.vim is a highly configured VIM integrated tons of utilities for development running on most operating systems.
- Multiple platform support: UNIX/Linux, Windows and MacOS.
- Code complete, lint and format running in coc.nvim language server for most programming languages.
- Random color schemes and icons.
- File and buffer explorer and better status line.
- Source code search and Fuzzy file search.
- Useful command line utilities support: git, code search, file operation, date/time calculate, ipv4/ipv6 calculate.
- Settings customization.
F1
in normal mode: switch between C/C++ header source file.F2
in normal mode: open/close terminal.F3
in normal mode: change color theme randomly.F5
in normal mode: open/close file explorer.
<leader>y
in visual mode: copy visual-selected text to locale machine cache.<leader>p
in normal mode: paste text saved from local machine cache.
:Ag [text]
or:Rg [text]
in normal mode: search [text].<c-p>
in normal mode: fuzzy search file.
vipga=
in visual mode: align visual-selected paragraph.gaip=
in normal mode: align inner paragraph.
-
<leader>s [char]
: go to [char]. -
<leader>w
: go to [word]. -
<leader>j
: go to [forward line]. -
<leader>k
: go to [backward line]. -
gd
in normal mode: go to definition. -
gy
in normal mode: go to type definition. -
gi
in normal mode: go to implementation. -
gr
in normal mode: go to reference. -
[g
in normal mode: go to previous diagnostic. -
]g
in normal mode: go to next diagnostic. -
<c-o>
in normal mode: go back to previous position.
gcc
in normal mode: comment one line.gc
in visual mode: comment visual selection.
-
ma
in normal mode: create new file/directory. -
mc
in normal mode: copy file/directory. -
md
in normal mode: delete file/directory. -
mm
in normal mode: move file/directory. -
<leader>bn
in normal mode: go to next buffer. -
<leader>bp
in normal mode: go to previous buffer. -
<leader>bd
in normal mode: close current buffer.
- custom your own settings in
~/.vim/user.vim
and~/.vim/coc-settings.json
.
- try
vcmd
to find more.
Please manually install Hack Nerd Font Mono on UNIX/Linux/Mac, install Hack Nerd Font Mono Windows Compatible on Windows.
$ git clone https://github.com/linrongbin16/lin.vim ~/.vim && cd ~/.vim && ./install.sh
- Install Git, enable
git.exe
and other UNIX/Linux commands from Windows Command Line. - Install Python3, add
python3.exe
andpip3.exe
to%PATH%
, thenpip3 install pyOpenSSL pep8 flake8 pylint autopep8 yapf cpplint chardet
. - Install CMake, add
cmake.exe
to%PATH%
. - Install Vim for Windows, add
gvim.exe
to%PATH%
. - Install Visual Studio with:
- .NET Desktop Development.
- Visual C++ Desktop Development.
- Common Windows Platform Development.
- Install LLVM, add
clangd.exe
andclang-format.exe
to%PATH%
. - Install NodeJs, add
node.exe
andnpm.exe
to%PATH%
. - Install the_silver_searcher, add
ag.exe
to%PATH%
. - Install ripgrep, add
rg.exe
to%PATH%
. - Install universal-ctags, add
ctags.exe
to%PATH%
. - Add
%USERPROFILE%\.vim\command
to%PATH%
.
$ git clone https://github.com/linrongbin16/lin.vim %USERPROFILE%\.vim
$ cd %USERPROFILE%\.vim
$ install.bat
All extensions in one:
:CocInstall coc-highlight coc-pairs coc-json coc-python coc-clangd coc-cmake coc-emmet coc-css coc-cssmodules coc-html coc-tsserver coc-eslint coc-yaml