
99

GitHub - mokevnin/dotfiles
source link: https://github.com/mokevnin/dotfiles
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Requirements
- Linux or Mac
- git (for automatic installation)
- make (for automatic installation)
- Nvim (version >= 0.4.4)
Recommendations
Setup
# or https://github.com/asdf-vm/asdf
curl -sL https://deb.nodesource.com/setup_17.x | bash -
git clone [email protected]:mokevnin/dotfiles.git ~/dotfiles
cd dotfiles
# ubuntu
make ubuntu-prepare
# macos
make macos-prepare
# configs
make nvim-install
# install all additional packages for languages (See Makefile for install packages for some language)
make deps
# update
make macos-update
make ubuntu-update
Run :PackerSync
after each pulling (git pull)
- Switch
<ctrl>
and<caps lock>
- Use
<ctrl> + [
instead of<Esc>
<leader>
– Space
Navigation
Moving between visible buffers
<C-h>
– move left or open new left split<C-l>
– move right or open new right split<C-k>
– move up or open new top split<C-j>
– move down or open new bottom split
Lists
<ctrl> n
– next item<ctrl> p
– previous item
File Tree
<leader><leader>
– toggle filetree<C-n>
– locate opened file in the filetreeo
– open directory or file
Searching and Navigation
<leader> sf
– find files<leader> sg
– git grep<leader> sc
– find commits<leader> so
– symbols<leader> sr
– references<leader> b
– show buffer list<leader>S
– search & replace
Code editing and code navigation
gcc
– toggle commentinggf
– open a file corresponding to a word under the cursorgd
– go to definitiong;
– go to the last edited line in the current opened buffergv
– reselect last visual selection]g
and[g
– go through diagnostics]<leader>
and[<leader>
– add empty line above and under cursor<leader>ca
– show code actions
</article
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK