我用過的文字編輯器有 sublime text/atom/notepad++/gedit 等等。
後來我在 window 和 Linux 寫程式還是比較慣用 vim。
以下整理我常用的 .vimrc:
set nu "show line number.
set rnu "related line number.
nmap ; : "replace ';' with ':' in normal mode.
set ai "auto indent
set mouse=a "activate mouse
set expandtab "replace tab with space.
set tabstop=4 "replace tab with 4 spaces.
set bg=dark "background set to dark.
color desert "color scheme.
syntax on "enable syntax highlight.
" auto complete:
inoremap ( ()<Esc>i
inoremap ' ''<Esc>i
inoremap " ""<Esc>i
inoremap [ []<Esc>i
inoremap { {}<Esc>i
set cursorline " active cursorline到此 vim 搭配 Ctrl + N 當自動補全,已經很好用了,之後有好用設定會再補上來。

留言
張貼留言