Vim Editor Optimization problem

Source: Internet
Author: User
Tags set background

Use the Xhell to connect the server using the optimized Vim editor cannot appear option

Set nocompatible
Set history=100
FileType on
FileType plugin on
FileType indent on
Set Autoread

Set Mouse=a

Syntax enable
Set Cursorline
Hi cursorline guibg= #00ff00
Hi cursorcolumn guibg= #00ff00
Set foldenable
Set Foldmethod=manual
Set foldcolumn=0
Setlocal foldlevel=3
Set Foldclose=all
Nnoremap <space> @= ((Line ('. ')) < 0)? ' Zc ': ' zo ') <CR>
Set Expandtab
Set tabstop=4
Set shiftwidth=4
Set softtabstop=4
Set Smarttab
Set AI
Set Si
Set Wrap
Set sw=4
Set Wildmenu
Set ruler
Set Cmdheight=1
Set LZ
Set Backspace=eol,start,indent
Set Whichwrap+=<,>,h,l
Set Magic
Set Noerrorbells
Set Novisualbell
Set Showmatch
Set mat=4
Set Hlsearch
Set ignorecase
Set Encoding=utf-8
Set Fileencodings=utf-8
Set Termencoding=utf-8
Set Smartindent
Set CIN
Set Showmatch
Set guioptions-=t
Set Guioptions-=m
Set VB t_vb=
Set laststatus=4
Set pastetoggle=<f9>
Set Background=dark
Highlight Search ctermbg=black ctermfg=white guifg=white guibg=black
Autocmd Bufnewfile. PY,. CC,. SH,. Java Exec ": Call Settitle ()"
Func Settitle ()
If expand ("%:e") = = = ' sh '
Call Setline (1, "#!/bin/bash")
Call Setline (2, "##############################################################")
Call Setline (3, "# Script Name:". Expand ("%"))
Call Setline (4, "# Vim version: V1.1")
Call Setline (5, "# Belongs to: Casual")
Call Setline (6, "# Feedback: Contact address")
Call Setline (7, "# Script generation Date: La La demacia". Strftime ("%F%T"))
Call Setline (8, "# Vim Description: Belongs to Oldboy---oldboy learner modified")
Call Setline (9, "##############################################################")
endif
Endfunc

Cause---The set mouse=a in the configuration file means all modules are enabled
Equivalent to covering "interpreted by the inaccurate great God bypassed" the Xshell right-click represents the function
So just change the set mouse=a, or
In the Set module
Add if has (' mouse ') set mouse-=a endif
Can...

Vim Editor Optimization problem

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.