When Python encounters vim

Source: Internet
Author: User
Tags dashed line

first on:

Preface:

At this age I fell in love with vim, not because it was beautiful, but the sun was very good that day, I used it to break the keyboard. ------A person who doesn't want to be named


The first contact with Vim, in the course of the Linux operating system, was the idea that "this thing is so difficult to use, to enter a thing do not know how to enter."
However, after a few days of understanding and practice. I was deeply shocked. Advanced Concepts/multi-mode/full keyboard operation/quick location/Hot shortcuts and commands/Rich plugins/Flexible configuration etc.
It's no wonder that for decades vim has been able to throw other text editors into several streets that are hard to transcend.


If you are already familiar with VIM, you can skip this section below.
Otherwise:
    • 1. Throw away other text editors, Nodepad/nodepad++/nodepad2/editplus/sublime Text2, etc.
    • 2. Download Gvim74 from official website, install the time √ all the options, after installation there are three shortcut icons, Gvim easy and Gvim ReadOnly lost.
    • 3. Command line knock Vimtutor.bat, spend half an hour followed walk again, whenever think oneself is not skilled, practice again, until muscle reflex.
    • 4. Search for "vim cheatsheet" or "Vim wallpaper", affixed to the desktop, from time to time reference.
    • 5. Refer to other people's VIMRC configuration, make the most suitable for their own dragon Slayer knife.

Resource recommendation: Vim Tutorial and Learning materials Summary (2010-02-19 Update)


Favorite few plugins: ' Gmarik/vundle ' plugin Manager
' Tomasr/molokai ' color scheme
' Hdima/python-syntax ' python syntax
' Kevinw/pyflakes-vim ' python syntax checker
' Valloric/youcompleteme ' killer-level completion, clang-level completion, and cache completion
' Scrooloose/nerdtree ' File tree directory
' Scrooloose/nerdcommenter ' quick add uncomment
' Lokaltog/vim-easymotion ' killer jump
' Kien/ctrlp.vim ' killer, redefining how the editor opens the file
' sirver/ultisnips ' quick Insert Code snippet Snippets
' Honza/vim-snippets ' snippets templates
' Kien/rainbow_parentheses.vim ' beautiful matching highlighting of nested parentheses
' Yggdroot/indentline ' indent dashed line
' Vim-scripts/matchit.zip ' extended% matching for HTML, LaTeX, and many other languages
' Raimondi/delimitmate ' brackets complement
' Terryma/vim-expand-region ' allows you to visually select increasingly larger regions of text using the same key combin ation.
' Junegunn/vim-easy-align ' conveniently aligned by delimiter, e.g. = number

Primary KEY bindings: let Mapleader = ', ' Set primary key
Let G:mapleader = ', '
Nmap <leader>w:w!<cr> Quick Save
Noremap <c-c>:!python%<cr> quickly run the current file with Python
Press; key Trigger (CTRLP)
Press the F key to trigger (Easymotion) The double-letter jump
Press SPACEBAR to toggle annotations (Nerdcommenter)
Press <leader>t side file directory (Nerdtree)
Press <c-j> Trigger Ultisnips completion

Press <c-n> down to select, press <c-p> up




When Python encounters vim

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.