Common configurations of my vim

Source: Internet
Author: User

"The file is automatically updated when it is modified externally.
Set autoread

"Highlight the current row
Set cursorline
Hi cursorline guibg = #222222
Hi cursorcolumn guibg = #333333

"Enable fold
Set nofen
Set FDL = 0
 
"Set the tab key to 4 spaces.
Set tabstop = 4

Set smarttab
"Do not interrupt the line in words
Set LBR

"Auto indent
Set AI

"Smart indent
Set Si

"Wrap lines
Set wrap
"Turn on wild menu
Set wildmenu

"Display ruler
Set ruler

"Display number of rows
Set nu

"Display matching parentheses ([{And}])
Set showmatch
 
"Highlight the search content
Set hlsearch
 
"Enable Status Bar
Set laststatus = 2

"Display functions of the current directory
Function! Curdir ()
Let curdir = substitute (getcwd (), '/users/Amir /',"~ /"," G ")
Return curdir
Endfunction

"Set status bar Information
Set statusline =/% F % m % R % H/% W // CWD:/% R % {curdir ()} % H // line: /% L: % C

"If the taglist window is the last window, exit Vim
Let tlist_exit_onlywindow = 1
 
 
"Set the taglist shortcut to F9
Map <F9>: tlisttoggle <CR>

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.