Enable Vim syntax highlighting settings in SSH Secure Shell Client
The related settings on the SSH Secure Shell client are: Setting --> profile setting --> connection --> terminal, select ANSI or xterm.
====================================When you use Vim to edit a terminal, by default, the editing interface does not display line numbers, syntax High Brightness Display, smart indentation, and other functio
Vim/Vi practical skills (version 2) and vim Practical SkillsVim/Vi Practical Skills
1. Import files
: R [file name] # import to the currently edited File
For example, r/etc/inittab
The upper part of the file is the/etc/services file, and the lower part is the/etc/inittab file.
2. Run the command [do not exit vi]
:! [Command]
:! Ls-l/home/hadoop
Extended-import the command execution result to the current
[Vim] vim learning notes-open, switch, and close multiple filesOne case is to use vim in shell to open multiple files, and the other case is to open multiple files in the vim editor.Open multiple files at the same timeVim file1 file2Open the file and display vim-o file1 file
Vim learning notes series (preface) and vim learning notes
This morning, we saw that the great gods were using vim for programming. The screen was intuitive and the speed was very fast. The operation only needed a command character.
Therefore, it can be inferred that the vim command operators are complex, so the le
Improve Efficiency Emmet. vim and emmet. vimImprove Efficiency Emmet. vim
Reprinted please indicate the source: http://blog.csdn.net/hpu_zyh/article/details/48069159Blog homepage | simplified book | zhihu | Weibo | github
Emmet-The essential toolkit for web-developers EmmetWith powerfulVimIt's no longer beautiful.HeardEmmentAndVimBetter configuration (haha, the more correct this is)
It can also be use
Vim's DIY preference configuration under Mac"First execute:"CP/USR/SHARE/VIM/VIMRC ~/.VIMRC"Copy the default configuration file, and then execute:"Vim ~/.VIMRC"Edit the file at the end of the file to add"Syntax on"Save to exit"========================== below is the configuration content =================="Configuration file for VimSet Modelines=0 "cve-2007-2438"Normally we use
Modify the. vimrc file under your user directory. There is a "." In ubuntu, it indicates a hidden file. Then, put the configuration content in the file. I. find a plug-in: AutoComplPop. Download the latest http://www.vim.org/scripts/script.php for this tool from the URL below? Script_id
Modify the. vimrc file under your user directory. There is a "." In ubuntu, it indicates a hidden file.
Then, put the configuration content in the file.
I. code prompts
Find a plug-in: AutoComplPop. Download the
Sprout new note-vim command "=", "d", and "y" usage (combined with the cursor movement command, it will be very convenient in some cases), vim is very convenient
Vim has many commands. on the Internet, you can search for a bunch of posts and articles to list commands for various functions.
For "=", "d", and "y", I accidentally discovered some of the same usage.
Common Vim shortcut keys and keyboard diagrams, and vim shortcut keys and keyboards
Common Vim shortcut keys
H-move the cursor one character left. j-move the cursor one character down.
K-move the cursor up one character l-move the cursor down one character to 15 rows-15j
Ctrl + f-move one page down on the screen Ctrl + d-move half page down
Ctrl + B-move one pag
Vim auto-complete, vim auto-complete, and so on. In summary, copy and paste the following code ~ /. Vimrc, save, close all vim, and open it. Enter the cursor inside the brackets. Www.2cto.com [plain]: inoremap ()
Vim (multiline comment and delete multiline comment )., Vim multi-line--- All in ESC mode:1. Comments in multiple lines in vim.(1) press Ctrl + v to enter the column mode;(2) select to end at the specified position at the beginning of the line to be commented. (Use the up/down key to determine the number of rows)(3) Press "I" to enter the insert mode;(4). Enter t
In the past, all the auto-completion functions of VIM were downloaded from the Internet when needed, and copied to their own vimrc. I didn't know what it meant, the results show that many of the methods found to be auto-complete are quite different. Some prefer to use auto-wrap when the braces are fully filled, and others prefer to use auto-indent when the braces are fully filled, let's take a few minutes to understand how to write these configuration
1. Three modes(1) Command mode:Just start vim and enter command mode, at which point the keystroke will be treated as a command.Here are a few common commands:I switch to insert mode to enter characters.x deletes the character at which the current cursor is located.: Switch to Baseline command mode to enter commands at the bottom of the line.(2) Input modePress I in command mode to enter the input mode.In input mode, you can use the following keys:Cha
Mac, vi and VIM is God-like editor, how to delete multiple lines, at the beginning, very confused.The following is an example of editing the host fileFirst, in terminal, enter vim/etc/hosts and press RETURN.Enter the default mode of VIM.Vim has three modes of command mode, edit mode, and default modePress ESC to enter the command mode, you can use the exit, save the exit, do not save the command to exit. Co
http://top.jobbole.com/1370/
The Sublime Text Editor has a very powerful "multiple selection" feature that supports "one edit, multiple changes". Since the vim-multiple-cursors this plugin, VIM users no longer need to envy Sublime Text users. After you install the plug-in, select multiple selections by pressing Ctrl + N. After selection, you can combine Vim wi
I. VIM's editing modeSecond, vim command modeThird, VIM practice operation# Cp/etc/dnsmasq.conf/tmp/1.txt (1) Move Down, right, left, and up 6 characters (6j 6l 6h 6k) respectively. (2) turn down and up two pages (two times ctrl+f and Ctrl+b respectively). The (3) Moves the cursor to line 49th (49G). (4) Move the cursor to the end of the line, and then move to the beginning (Shift+4, shift+6). (5) moves
)L jump to the bottom of the screen (if set so=n, jump to the nth line)M jump to the middle of the screenF or F jumps to a character in the bank, lowercase f looks to the right, and capital F looks to the left. Or, switch between matchesT or T jumps to a character in the bank before the lowercase t looks to the right, and the upper case T looks to the left. Or, switch between matches/Regular expression jumps to the next match. Use n or N to switch bet
on the original ATT version of ED, which meant thatThe Code was not freely redistributable. It cocould only be used by Parties that had a Unix license from ATT.
The first two prominent VI clones were Stevie and Elvis. stevie, the St editor for VI enthusiasts, was originally developed for the Atari ST in 1987 and ported to Unix the next year. it was somewhat primitiveBut attracted a modest following. Elvis, which was first released in 1990, was more sophisticated and was designed to offer more f
The concise Vim Practice level IntroductionThe learning curve of Vim is quite large (see the learning curve of various text editors), so if you start to see a bunch of Vim's command classifications, you're bound to lose interest in the editor. The following article is translated from "Learn vim progressively", I think this is the best
-indent. In the vimrc add:au BufNewFile,BufRead *.py set tabstop=4 | \ set tabstop=4 | \ set softtabstop=4 | \ set shiftwidth=4 | \ set textwidth=79 | \ set expandtab | \ set autoindent | \ set fileformat=unixThis allows the file to be *.py indented to the standard four spaces, the single line will not exceed 80 characters, the file is stored in UNIX format, and there is no conversion problem.For other files, we can define its format, for example, javascript in
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.