Linux Terminal development environment configuration

Source: Internet
Author: User
Tags ssh server
Linux Terminal development environment configuration in the terminal development linux program is generally connected to a linux with an ssh server installed through ssh (here is Ubuntu11.04), there are many ssh clients, such as SecureCRT, development tools generally use vim. The following describes how to build a development environment: Ubuntu... linux Terminal development environment configuration in the terminal development linux program is generally connected to linux with an ssh server installed through ssh (Ubuntu 11.04), there are many ssh clients, such as SecureCRT, the development tool generally uses vim. The following describes how to set up the development environment: the steps for starting the Ubuntu 11.10 system to enter the terminal by default are as follows: vim/etc/default/grub modify GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT = "text" and then run update-g The rub2 command updates the GRUB configuration. in Windows, SSH is not installed by default when you remotely log on to Ubuntu with ssh2. you can search for SSH, Mark and install it in the new profit software installer, or run the following command: apt-get install openssh-server/etc/init. d/ssh restart in Windows, use SecureCRT and select ssh to log on to Ubuntu PS. Note that the connection encoding cannot be set to default. you should select utf-8. now you can log on to ubuntu using the command line. in SecureCRT, vim Syntax highlights and modifies secureCRT attributes: Options-> SessionOptions-> Emulation. then, change the Terminal type to xterm and click the ANSI Color check box. add: export TERM = xterm-color to/etc/profile. if you cannot modify the file on the server You can create a new one in your user directory. profile file. configuration. vimrc File: add syntax on. the vim configuration file of vim in Ubuntu is stored in the/etc/vim Directory. the configuration file name is vimrc. if you cannot modify files on the server, copy the template to the user directory and modify cp/usr/share/vim/vim72/vimrc_example.vim ~ /. Vimrcset nocompatible "removes the vi consistency mode and avoids bugs and limitations in earlier versions of set nu! "Display row number set guifont = Luxi/Mono/9" set font, font Name and font size filetype on "check file type set history = 1000" record historical lines set background = dark "background use black syntax on" syntax high brightness display set autoindent "vim use auto alignment, that is, apply the alignment format of the current row to the next line (automatic indent) set cindent "cindent is especially for the C language syntax automatic indent set smartindent" according to the alignment format above, intelligently select alignment mode. for C-language programming, set tabstop = 4 "is used to set the tab key to 4 spaces, set shiftwidth = 4 "sets four spaces for set ai when lines are staggered! "Set auto-indent set showmatch" sets the matching mode, similarly, when you enter a left brace, it will match the corresponding right brace set guioptions-= T "to remove the toolbar set vb t_vb =" from the vim GUI version. when vim is edited, if a command error occurs, an alarm is triggered. this setting removes the alarm set RLS "the status line set nohls at the cursor position is displayed in the lower right corner of the editing process." by default, search for matching is a high-brightness display. this setting disables the highlighted display set incsearch "to query a word in the program and automatically matches the position of the word. for example, if you query a desk word, when you enter/d, the first word starting with d is automatically found. when/de is input, the first word starting with ds is automatically found, and so on; when you find the word you want to match, do not forget to press set backspace = 2 "to set the backspace key. you can modify a file and then back up the file automatically. the backup file name is added with" ~ "to the original file name. Suffix if has ("vms") set nobackup else set backup endif if the setting is complete and the function does not work, check whether the vim-enhanced package is installed in the system. the query command is: rpm-q vim-enhanced. note: If vim does not take any action after the preceding settings are configured, upgrade vim to the latest version. Generally, you only need to enter the following command on the terminal: apt-get install 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.