https://github.com/houqp/vimrc-houqp
my vim configuration file
https://github.com/houqp/vimrc-houqp
vim vim-configs vim-configuration vim-dotfiles
Last synced: about 1 month ago
JSON representation
my vim configuration file
- Host: GitHub
- URL: https://github.com/houqp/vimrc-houqp
- Owner: houqp
- Created: 2011-05-07T01:15:02.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T06:22:43.000Z (4 months ago)
- Last Synced: 2025-04-15T05:48:51.519Z (about 1 month ago)
- Topics: vim, vim-configs, vim-configuration, vim-dotfiles
- Language: Vim Script
- Homepage:
- Size: 1.1 MB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation
Move the whole repository into your home directory and rename to `.vim`.
Then issue following command in `.vim` directory:
```bash
$ make install
```# Configuration
Plugin specific lua configs are mananaged in `lua/plugins` including treesitter and lspconfig.
Most of the syntax highlights are supported through treesitter.
Plug installed dependencies are managed in `allrc.vim`. Packer installed
dependencies are managed in `nvim/init.lua`. Configs in `lua/plugins` are
manually sourced in `init.lua`.# Usage
### Mappings
`do`: Show error message in popup.`o`: Show symbol outline.
`K`: Show LSP popup, e.g. type info.
``: switch to previous window.
`tl`: toggle TagBar window.
`f`: find files.
`bf`: find buffers.
`r`: show MRU list.
`be`: show buffer lists.
`w`: quick save in normal mode.
`h`: toggle hex mode.
`t`: show tasklist (todo, fix, etc).
`q`: toggle quickfix window.
`[q` & `]q`: previous & next quickfix item.
`s`: quick save in insert mode.
`j`: jump to place holder.
`l`: OmniComplete.
``: issue make command in current directory.
### Commands
`Ag KEYWORD`: search keyword using ag.
`Agc`: search current word under cursor using ag.# Tips for installed plugins
### BufExplorer`:help bufexplorer`
### easymotion
The default leader for easymotion has been changed to to avoid
conflcts. So use `w` to trigger the word motion.### CtrlP
inside the prompt:
* toggle search by filename between by full path: `d`
* selection up: `k`
* selection down: `j`
* exit: `c`, `g`, ``
* toggle regexp search: `r`
* purge cache: ``
* forward: `f`
* backward: `b`
* wipe MRU list: ``
* help page: `?`+``### Tagbar
in Tagbar buffer:
* display help page: ``
* change tags sort order: `s`
* folding: same as Vim's built-in mappings:
* open: `zo`
* close: `zc`
* toggle: `za`
* open all: `zR`
* close all: `zM`
* goto next top level: `N`
* goto previous top level: `P`
* zoom tagbar window: `x`
* display tag protogype: ``### echofunc
next proto: `=`
previous proto: `-`
### Fugitive
find out the author of every line: `Gblame`
add current editing file: `Gwrite`
commit staged changes: `Gcommit`
view revisions for current file: `Glog`
show complete commit logs: `Glog --`
### GitGutter
Toggle GitGutter: `gd` or `:GitGutterToggle`
jump bwteen hunks: `]h`, `[h`
### vim-trailing-whitespace
use `FixWhitespace` command to automatically remove all trailing whitespaces.### tcomment_vim
toggle comment: `gc`