Ubuntu 16.04 LTS : cac cau hinh cua lenh Vim

Configure Vim that is more convenience than vi. [1] Configure Vim. ( Apply to a user below. If you applly to all users, Write the same settings in '/etc/vim/vimrc'. )

root@dlp:~# aptitude -y install vim
root@dlp:~# vi ~/.vimrc
" use extended function of vim (no compatible with vi)
set nocompatible
" specify encoding
set encoding=euc-jp
" specify file encoding
set fileencodings=iso-2022-jp,sjis
" specify file formats
set fileformats=unix,dos
" take backup
" if not, specify [ set nobackup ]
set backup
" specify backup directory
set backupdir=~/backup
" take 50 search histories
set history=50
" ignore Case
set ignorecase
" distinct Capital if you mix it in search words
set smartcase
" highlights matched words
" if not, specify [ set nohlsearch ]
set hlsearch
" use incremental search
" if not, specify [ set noincsearch ]
set incsearch
" show line number
" if not, specify [ set nonumber ]
set number
" Visualize break ( $ ) or tab ( ^I )
set list
" highlights parentheses 
set showmatch
" show color display
" if not, specify [ syntax off ]
syntax on
" change colors for comments if it's set [ syntax on ]
highlight Comment ctermfg=LightCyan
" wrap lines 
" if not, specify [ set nowrap ]
set wrap
  • 0 utilizatori au considerat informaţia utilă
Răspunsul a fost util?

Articole similare

Ubuntu 16.04 LTS : cai dat

[1] Insert a disk for installation of Ubuntu 16.04 and reboot your computer. Next, Choose...

Ubuntu 16.04 LTS : tao user

[1]If you'd like to add new user, Add like follows. # add a new user "ubuntu" xerus@dlp:~$ sudo...

Ubuntu 16.04 LTS : kich hoat tai khoan root

The root Account in Ubuntu is disabled by default because his password is not set. But if you'd...

Ubuntu 16.04 LTS : cau hinh network

[1] Change to static IP addres if you use Ubuntu as a server. "ens3" is different on each...

Ubuntu 16.04 LTS : cau hinh tat mo cac dich vu he thong

[1] It's possible to make sure services' status like follows. # display the list of services...