Terminal first! Create Vim into a new integrated development environment!

Source: Internet
Author: User
Tags expression engine

Let all the guis go! The mouse is your enemy! Only the keyboard is your only friend!

What happens if we combine Vim and Tmux? You will have a perfect programming environment! The following are some secrets I have collected over the years. With these secrets, you can easily create your Vim development environment.

Tmux Problems
  • This is a good practice for you to quickly learn how to start using Tmux.
  • This is my tmux. conf configuration file, which has a custom status bar, can greatly improve the color theme, optimize readability, there is an essential operation: reset the shortcut, because Ctrl + bVim to use, so it helps you change it to Ctrl +.
  • In fact, building an optimization IDE is as simple as writing a bash script. The example in the link shows how to compile a. sh script to run your own programming environment.
Vim plugin
  • Vundle is the plug-in Manager of Vim. It can be used to track all plug-ins in the. vimrc file, and to install, update, or delete scripts with one click. Well, will I tell you if you can use it to search for plug-ins directly in Vim? In short, this plug-in extension is definitely a must-have Vim product for home travel and murder.
  • Syntastic can check whether the syntax is correct. To avoid low-level errors when writing code, this tool is indispensable. It can greatly improve the speed of writing your code.
  • Supertab. This plug-in helps you use <Tab> to implement automatic completion. It searches all strings in the current document, and then provides all matching suggestions. The benefits of code writing include not only improving speed, but also avoiding many spelling mistakes. If you are interested, we recommend this plug-in as an alternative in the last part of this article.
  • Ack, 99% of users will choose to use it instead of grep. It is perfectly integrated into Vim. You can use it to search for project files, and the search results are displayed in an independent window. In the last part of this article, we recommend that you use this plug-in as an alternative.
  • CtrlP can perform extremely fast fuzzy search for full-path files, buffers, "recently used" (MRU), and tags. It is written purely in VimL and is designed for Vim search.
  • NERDTree can help you browse the entire file system, open files or directories. It displays the entire file system in a tree structure and supports keyboard and simple file system operations.
  • Sparkup can help you write HTML code faster. Supports CSS-like syntax and complete HTML extension code. In the last part of this article, we recommend that you use this plug-in as an alternative.
Tips
  • Vimux can help you interact with Tmux in Vim. For example, you can test, write scripts, and create tasks without leaving Vim.
  • This article describes how to automatically install Vundle in. you only need to add several lines of VimL scripts to the vimrc configuration file, so that every time you run Vim in a new environment, it can automatically install Vundle and all associated packages. This is useful when you copy the Vim configuration file to a new environment or server.
  • The success story of a developer tells him how to say goodbye to his trusted MacBook Pro and start development on the cloud using iPad + Linode.
User recommendation
  • YouCompleteMe, recommended by Reddit user hnasarat. It is a little difficult to install, but supports very powerful syntax completion, including C, Ruby, Python, PHP and many other languages.
  • Ag, composedGckjkRecommended. Most Reddit users know it. This is an upgraded version of ack, which is three to five times faster. It can read. gitignore and. hgignore, or. agignore to ignore some matching files ignored by the version control software ).
  • Emmet, a senior reddit userDamnatedRecommended. This is a replacement for Sparkup, which can be used to quickly mark strings with tags. A Demo Video is provided in the link.
  • Unite is recommended by basetta, a netizen. It can be used as a set of multiple plug-ins. You can use it to search for files (like CtrlP), document content (like ack or ag), and freely move and switch between the drop-down history or buffer range. All these functions are integrated in this plug-in, which is very convenient!

Recommended reading:

Vim Learning Guide

Quick learn Vi Editor

Powerful Vim Editor

Build a Vim Development Environment on CentOS 6.2

Vim 7.4a released, a new and faster Regular Expression Engine

Install the highlighted Vim editing tool in CentOS 5.4

Vim tips: C language settings

Set the Vim row number in Ubuntu

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.