Created
November 20, 2013 18:34
-
-
Save miripiruni/7568505 to your computer and use it in GitHub Desktop.
Vim links & tips.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://fatroom.blogspot.com/2007/02/vim.html | |
http://www.prolinux.nm.ru/pub/vim/cook_book.html | |
http://konishchevdmitry.blogspot.com/2008/07/howto-vim.html | |
http://jenyay.net/Programming/Vim | |
http://ru.wikibooks.org/wiki/Vim | |
http://ethanschoonover.com/solarized | |
http://stackoverflow.com/questions/235839/how-do-i-indent-multiple-lines-quickly-in-vi | |
http://stackoverflow.com/questions/73319/duplicate-a-whole-line-in-vim | |
http://vim.wikia.com/wiki/Quick_tab_navigation_and_opening | |
http://vim.wikia.com/wiki/Open_file_under_cursor | |
http://media.vimcasts.org/videos/1/show_invisibles.m4v | |
http://vimcasts.org/episodes/indentation-commands/ | |
http://stevelosh.com/blog/2010/09/coming-home-to-vim/ | |
https://twitter.com/jjjahson/status/92865248754802688 | |
http://habrahabr.ru/blogs/vim/116523/#habracut | |
http://habrahabr.ru/blogs/vim/114813/#habracut | |
http://habrahabr.ru/blogs/vim/98393/ | |
http://freesource.info/wiki/Stat%27i/KratkoOboVsjom/VIM | |
http://ru.wikibooks.org/wiki/Vim | |
http://vim.wikia.com/wiki/Find_in_files_within_Vim#Mappings | |
http://vim.wikia.com/wiki/Did_you_know | |
http://programming34m0.blogspot.com/2011/04/nerd-tree-file-explorer-with-mac-vim.html | |
Learn the many ways to enter insert mode | |
• cw will delete the rest of the word from your cursor and enter insert mode (good for replace a word) | |
• C will delete the rest of the line from your cursor and enter insert mode | |
• A will take you to the end of the line and insert insert mode | |
• I will take you to the beginning of the line | |
• This list goes on for a while… | |
alias gvim='/Applications/MacVim.app/Contents/MacOS/Vim -g' | |
There are essentially two ways to start MacVim from Terminal: either call the | |
Vim binary with the -g switch > | |
/Applications/MacVim.app/Contents/MacOS/Vim -g file ... | |
or use the "open" command (this method can not be used to pass parameters to | |
Vim) > | |
open -a MacVim file ... | |
The advantage of using the latter method is that the settings relating to file | |
opening in the preferences panel are respected, and files open instantly if | |
|Quickstart| is enabled. | |
To save yourself from having to type the entire path to the Vim binary each | |
time you start MacVim, you could create an alias such as > | |
alias gvim='/Applications/MacVim.app/Contents/MacOS/Vim -g' | |
and add that to "~/.profile". | |
http://ru.wikipedia.org/wiki/Vim | |
http://wiki.yandex-team.ru/AntonVernigor/vImDE | |
http://vim.wikia.com/wiki/VimTip330 | |
http://radist-elvin.blogspot.com/2008/07/vim.html | |
http://tottinge.blogsome.com/use-vim-like-a-pro | |
https://gist.github.com/955547 | |
https://github.com/exhuma/vimfiles/blob/master/.vimrc | |
[vim] как выделить текст в рамках []{}()<> | |
"quotes" | |
• a" - a quoted string | |
• i" - inner quoted string | |
(brackets) | |
• ab - a block | |
• ib - inner block | |
{braces} | |
• aB - a Block | |
• iB - inner Block | |
<xml>tags</xml> | |
• at - a tag block | |
• it - inner tag block | |
https://github.com/spf13/spf13-vim/blob/master/.vimrc | |
http://items.sjbach.com/319/configuring-vim-right | |
http://vimsomnia.blogspot.com/ | |
http://arstechnica.com/open-source/guides/2009/05/vim-made-easy-how-to-get-your-favorite-ide-features-in-vim.ars | |
https://twitter.com/vimtips/status/99146881669677056 | |
https://github.com/klen/.vim/blob/master/rc.vim | |
http://stackoverflow.com/questions/95072/what-are-your-favorite-vim-tricks | |
gv выделить последнее выделенное | |
'[ начало вставленного текста | |
'] конец вставленного текста | |
]p вставляет с нужным индентом. волшебно! | |
http://jmcpherson.org/editing.html | |
http://bullium.com/support/vim.html | |
http://amix.dk/vim/vimrc.txt | |
http://stackoverflow.com/questions/4789605/how-do-i-enable-automatic-folds-in-vim | |
http://blog.interlinked.org/tutorials/vim_tutorial.html | |
http://net.tutsplus.com/articles/web-roundups/25-vim-tutorials-screencasts-and-resources/ | |
http://stackoverflow.com/questions/2153892/good-guide-on-vim-scripting | |
http://vimdoc.sourceforge.net/htmldoc/usr_41.html | |
http://weblog.jamisbuck.org/2008/10/10/coming-home-to-vim | |
http://vim.wikia.com/wiki/Simple_code_beautifier | |
'0 open previous file handy after starting vim | |
http://vim.wikia.com/wiki/Format_a_code_block | |
http://smartic.us/2011/08/02/introduction-to-vim-text-objects/ | |
http://vim.runpaint.org/toc/ | |
http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/ | |
http://blog.deskportal.net/hideki/files/2011/01/vimrc.txt | |
https://github.com/skammer/vim/blob/master/snippets/html.snippets | |
http://konishchevdmitry.blogspot.com/2008/07/howto-vim.html | |
http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim | |
" Useful abbreviations -------------------------------------------------------- {{{ | |
iabbrev ldis ಠ_ಠ | |
iabbrev sl/ http://stevelosh.com/ | |
iabbrev bb/ http://bitbucket.org/ | |
iabbrev bbs/ http://bitbucket.org/sjl/ | |
iabbrev gh/ http://github.com/ | |
iabbrev ghs/ http://github.com/sjl/ | |
iabbrev sl@ [email protected] | |
" }}} | |
" It's 2011. | |
noremap j gj | |
noremap k gk | |
" not skip wrap lines | |
https://github.com/kana/config/blob/master/vim/personal/dot.vimrc | |
https://github.com/shawncplus/dotfiles/blob/master/.vimrc | |
https://twitter.com/paulrouget/status/113048626879664128 | |
https://github.com/jahson/vimfiles/blob/master/vimrc#L19 | |
http://michael.peopleofhonoronly.com/vim/ | |
https://github.com/klen/.vim/blob/master/bundle/statusline/plugin/statusline.vim | |
https://twitter.com/paulrouget/status/126228240951033857 | |
Here my notes from the help-file: | |
• :b N switch to buffer N | |
• :buffers show buffer list. Explanation: | |
• % current window | |
• # alternate buffer (switch using :e# or :b#) | |
• a active (loaded and visible) | |
• h hidden (loaded but not visible) | |
• + modified | |
• :bd unload the buffer and remove it from bufferlist (don’t close Vim, | |
even on the last buffer) | |
• :bun unload the buffer but stay in bufferlist | |
• :sp #N split current window and edit buffer N | |
• :w write the current buffer to disk | |
• :e file load a file from disk | |
• :q closes current window (and Vim if it’s the last one) | |
• :new new empty window | |
• :on close all windows but the active one (Ctrl-W o) | |
• Ctrl-W {h,j,k,l} move between windows | |
http://serverfault.com/questions/3743/what-useful-things-can-one-add-to-ones-bashrc | |
https://twitter.com/gabebw/status/131878452688203776 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not 2011 anymore. But nice list, thanks for sharing! 😄