/README.md

https://github.com/monnoval/dotvim · Markdown · 59 lines · 43 code · 16 blank · 0 comment · 0 complexity · 97e5554b750da99b9b58151a47a1fba1 MD5 · raw file

  1. # Mon's VIM settings
  2. Currently, as of 2021, this vimrc is only tested on KDE neon, Manjaro XFCE and Fedora 34.
  3. ## Requirements
  4. - [neovim](https://github.com/neovim/neovim/wiki/Installing-Neovim#install-from-package)
  5. - [ripgrep](https://github.com/BurntSushi/ripgrep)
  6. - [ctags](https://docs.ctags.io/en/latest/index.html)
  7. ## Installation
  8. ```shell
  9. $ ln -s /custom/dir/dotvim/nvim ~/.config/nvim
  10. $ ln -s /custom/dir/dotvim/vimrc ~/.vimrc
  11. $ ln -s /custom/dir/dotvim/ctags ~/.ctags
  12. # install vim-plug via neovim
  13. $ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
  14. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  15. ```
  16. Open nvim, do :PlugInstall to install plugins.
  17. ## Features
  18. - File browser in left side of screen
  19. - Easy move between multiple windows and tabs
  20. ### Key bindings
  21. #### Basics
  22. - `,` much efficient replacement as leader key
  23. - `;;` switch between normal and insert mode
  24. - `,w` save current file, eq `:w!`
  25. - `,a` save all files open, eq `:wa!`
  26. - `,x` exit current file, eq `:x!`
  27. - `,q` quit current file, eq `:bd!`
  28. - `,ev` edit vimrc
  29. - `,sv` source vimrc
  30. #### Movements
  31. - `,s` split window horizontally, eq `:split`
  32. - `,v` split window vertically, eq `:vplit`
  33. - `,e` split window vertically then open netrw, eq `:vsplit<cr><C-W>l:E`
  34. - `ctrl+alt-h` or `ctrl+alt-l` resize horizontally
  35. - `ctrl+alt-j` or `ctrl+alt-k` resize vertically
  36. - `ctrl+j` move down
  37. - `ctrl+k` move up
  38. - `ctrl+h` move left
  39. - `ctrl+l` move right
  40. #### Plugins
  41. - `,g` to search files
  42. - `,f` find string in all files
  43. - `,n` open file browser, using nerdtree