Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

127 Commits

Repository files navigation

vimrc

A shell script to deploy my vim configuration

install

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

keyboard shortcuts overview

Normal

keydescriptionplugin
<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 expandvim-expand-region
<s>s{char} to move to {char}vim-easymotion
<Z>toggle zoom or restore window-
<?>[V]Explain the selected codevim-ai

Ctrl

keydescriptionplugin
<C-w>hjklmoves between Vim viewports-
<C-e>Scroll window [count] lines downwards
Cursor previous
-
vim-visual-multi
<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 CtrlPctrlp.vim
<C-a>Select all contents of the file-
<C-s>Tmux prefix keytmux
<C-d>Scroll window Downwards-
<C-f>Find the current file in the treenerdtree
<C-g>Cursor nextvim-visual-multi
<C-hjkl>moves between Vim viewportsvim and tmux
<C-z>Suspend-
<C-x>Cursor skipvim-visual-multi
<C-c>[V] Copy selected textgvim
<C-v>[N] Switch to [VB] mode
[I] Paste
-
gvim
<C-b>[N] Toggle tagbar
[I] Autocompletion
tagbar
-
<C-n>Toggle Terdtreenerdtree
<C-m><cr>do not edit
<C-;>Show clipboardUbuntu

Leader

keydescriptionplugin
<Leader>qExit-
<Leader>wWrite the current file-
<Leader>eGoDiagnosticsvim-go
<Leader>rBuild and run current main packagevim-go
<Leader>trdebug main packagevim-delve
<Leader>ttdebug non-main packagesvim-delve
<Leader>tbtoggle (add or remove) a breakpointvim-delve
<Leader>tcclear all the breakpoints and tracepointsvim-delve
<Leader>tmenable / disable table modevim-table-mode
<Leader>yChinese copywriting guidelines for better written communicationhotoo/pangu.vim
<Leader>u--
<Leader>iimplementing an interfacevim-go
<Leader>oShow declarations for the current file
Generate table of contents for markdown
vim-go
vim-markdown-toc
<Leader>pShow declarations for the current directory
markdown preview
vim-go
vim-instant-markdown
<Leader>acontinue or start a new conversationvim-ai
<Leader>s[I] run go ai complete
[N] Show the call targets for the type under the cursor
vim-ai
vim-go
<Leader>dGo to symbol/declarationvim-go
<Leader>fShows identifiers that refer to the same objectvim-go
<Leader>gA list of interfaces for the type that implementsvim-go
<Leader>hlTurn to previous/next of quickfix list-
<Leader>kjTurn to previous/next of location list-
<Leader>-=Resize the width of the current window-
<Leader>zread git commit message-
<Leader>x--
<Leader>nGoRemoveTags and GoAddTagsvim-go
<Leader>vGoFillStructvim-go
<Leader>bGit blamevim-fugitive
<Leader>nGoRemoveTags and GoAddTagsvim-go
<Leader>mGoMetaLintervim-go
<Leader>;Open Ackack.vim

Plugin: nerdtree

keydescription
?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
yyyak full path of current node

Plugin: ctrlp.vim

keydescription
<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

contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

license

this repo is released under the MIT License.

About

A shell script to deploy my vim configuration

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages