User Tools

Site Tools


server:vps:vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

server:vps:vim [2019/09/27 11:33] (current)
maxduke created
Line 1: Line 1:
 +===== Vim =====
 +Edit ~/.vimrc:
 +<code bash>
 +" Set Encoding
 +set fileencodings=utf-8,​ucs-bom,​gb18030,​gbk,​gb2312,​cp936
 +set termencoding=utf-8
 +set encoding=utf-8
  
 +" Display Line Number
 +"set number
 +set nu
 +
 +" Highlight syntax
 +syntax on
 +
 +" Highlight current line
 +"set cursorline
 +"set cul
 +
 +" Highlight current column
 +"set cursorcolumn
 +"set cuc
 +
 +" Highlight Match
 +set showmatch
 +
 +" Highlight serach
 +set hlsearch
 +
 +" Tab indent
 +set tabstop=4
 +set shiftwidth=4
 +set expandtab
 +set smarttab
 +
 +" Auto indent
 +set autoindent
 +
 +" Smart indent
 +set smartindent
 +
 +
 +" set paste mode
 +set paste
 +
 +" Always display status bar
 +set laststatus=2
 +" Show current cursor
 +set ruler
 +
 +" Show CMD
 +set showcmd
 +
 +" auto determine file type
 +filetype plugin indent on
 +</​code>​
server/vps/vim.txt ยท Last modified: 2019/09/27 11:33 by maxduke