A shell script to deploy my vim configuration
The installation will overwrite your .vimrc
file, be sure to backup your existing vim configuration.
curl -L https://raw.githubusercontent.com/modood/vimrc/master/install.sh | bash
key | description | plugin |
---|---|---|
<esc><esc><esc><esc> | reset all error checking: 1. stop the highlighting 2. close locationlist 3. reset syntastic | - |
:w!! | sudo & write a file | - |
<v> | expand region expand | vim-expand-region |
<s> | s{char} to move to {char} | vim-easymotion |
<Z> | toggle zoom or restore window | - |
key | description | plugin |
---|---|---|
<C-w>hjkl | moves between Vim viewports | - |
<C-e> | Scroll window [count] lines downwards Cursor previous | - vim-multiple-cursors |
<C-r> | Redo changes | - |
<C-t> | New tab | - |
<C-y> | Scroll window [count] lines upwards | - |
<C-u> | Scroll window upwards | - |
<C-i> | <tab> | do not edit |
<C-o> | Jump back to the previous location | - |
<C-p> | Open CtrlP | ctrlp.vim |
<C-a> | Select all contents of the file | - |
<C-s> | Tmux prefix key | tmux |
<C-d> | Scroll window Downwards | - |
<C-f> | Find the current file in the tree | nerdtree |
<C-g> | Cursor next | vim-multiple-cursors |
<C-hjkl> | moves between Vim viewports | vim and tmux |
<C-z> | Suspend | - |
<C-x> | Cursor skip | vim-multiple-cursors |
<C-c> | [V] Copy selected text | gvim |
<C-v> | [N] Switch to [VB] mode [I] Paste | - gvim |
<C-b> | [N] Toggle tagbar [I] Autocompletion | tagbar - |
<C-n> | Toggle Terdtree | nerdtree |
<C-m> | <cr> | do not edit |
<C-;> | Show clipboard | Ubuntu |
key | description | plugin |
---|---|---|
<Leader>q | Exit | - |
<Leader>w | Write the current file | - |
<Leader>e | GoDiagnostics | vim-go |
<Leader>r | Build and run current main package | vim-go |
<Leader>tr | debug main package | vim-delve |
<Leader>tt | debug non-main packages | vim-delve |
<Leader>tb | toggle (add or remove) a breakpoint | vim-delve |
<Leader>tc | clear all the breakpoints and tracepoints | vim-delve |
<Leader>tm | enable / disable table mode | vim-table-mode |
<Leader>y | Chinese copywriting guidelines for better written communication | hotoo/pangu.vim |
<Leader>u | - | - |
<Leader>i | implementing an interface | vim-go |
<Leader>o | Show declarations for the current file Generate table of contents for markdown | vim-go vim-markdown-toc |
<Leader>p | Show declarations for the current directory markdown preview | vim-go vim-instant-markdown |
<Leader>a | - | - |
<Leader>s | Show the call targets for the type under the cursor | vim-go |
<Leader>d | Go to symbol/declaration | vim-go |
<Leader>f | Shows identifiers that refer to the same object | vim-go |
<Leader>g | A list of interfaces for the type that implements | vim-go |
<Leader>hl | Turn to previous/next of quickfix list | - |
<Leader>kj | Turn to previous/next of location list | - |
<Leader>-= | Resize the width of the current window | - |
<Leader>z | read git commit message | - |
<Leader>x | - | - |
<Leader>n | GoRemoveTags and GoAddTags | vim-go |
<Leader>v | GoFillStruct | vim-go |
<Leader>b | Git blame | vim-fugitive |
<Leader>n | GoRemoveTags and GoAddTags | vim-go |
<Leader>m | GoMetaLinter | vim-go |
<Leader>; | Open Ack | ack.vim |
key | description |
---|---|
? | Got help |
<I> | Show hidden files |
<A> | Zoom the nerdtree window |
<s> | Open selected file in a new vsplit |
<s> | Open selected file in a new vsplit |
<i> | Open selected file in a split window |
<O> | Recursively open the selected directory |
<X> | Recursively close all children of the current node |
yy | yak full path of current node |
key | description |
---|---|
<c-fb> | Cycle between modes |
<c-d> | switch to filename only search instead of full path |
<c-r> | switch to regexp mode |
<c-jk> | navigate the result list |
<c-t> | open the selected entry in a new tab |
<c-v> | open the selected entry in a new split |
<c-x> | open the selected entry in a new split |
<c-y> | create a new file and its parent directories |
<c-z> | mark/unmark multiple files and to open them |
<F5> | Refresh the match window and purge the cache for the current directory |
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
this repo is released under the MIT License.