Skip to content

Instantly share code, notes, and snippets.

@manboubird
Created August 12, 2012 09:25
Show Gist options
  • Save manboubird/3330849 to your computer and use it in GitHub Desktop.
Save manboubird/3330849 to your computer and use it in GitHub Desktop.
Personal vim command memo
- Tab
gt : go to next tab
gT : go to previous tab
{i}gt : go to tab in position i
:tab split : copy the current window to a new tab of its own
- FuzzyFinder.vim
:FufFile **/
<C-l> - opens in a previous window.
<C-j> - opens in a split window.
<C-k> - opens in a vertical-split window.
<C-l> - opens in a new tab page. kk
- Tabular.vim
:Tab/:
:Tab/:\zs
- help
Ctrl-] : follow the link (jump to the quickref topic).
Ctrl-T : After browsing the quickref topic, press Ctrl-T to go back to the previous topic.
Ctrl-O :
Ctrl-I : You can also press Ctrl-O to jump to older locations, or Ctrl-I to jump to newer locations.
- fugitive.vim
: Git add % : Gwrite Stage the current file to the index
: Git checkout % : Gread Revert current file to last checked in version
: Git rm % : Gremove Delete the current file and the corresponding Vim buffer
: Git mv % : Gmove Rename the current file and the corresponding Vim buffer
- Gist.vim
:Gist -P : Create a public gist.
:Gist -a: Create a gist anonymously.
:Gist -e: Edit the gist (you need to have opened the gist buffer first). You can update the gist with the ":w" command within the gist buffer.
:Gist -e foo.js : Edit the gist with name 'foo.js' (you need to have opened the gist buffer first).
:Gist XXXXX : Get gist XXXXX.
:Gist -l manboubird :
:Gist -ls : List gists from your starred gists.
Links
Using tab pages - Vim Tips Wiki
http://vim.wikia.com/wiki/Using_tab_pages
Learn to use help - Vim Tips Wiki
http://vim.wikia.com/wiki/Learn_to_use_help
Aligning text with Tabular.vim
http://vimcasts.org/episodes/aligning-text-with-tabular-vim/
FuzzyFinder - buffer/file/command/tag/etc explorer with fuzzy matching : vim online
http://www.vim.org/scripts/script.php?script_id=1984
Fugitive.vim - a complement to command line git
http://vimcasts.org/episodes/fugitive-vim---a-complement-to-command-line-git/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment