-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
34 lines (28 loc) · 786 Bytes
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
map #5 :w:!ptidy %:e! %
" numbering on by default
set number
" but easy toggle off/on
map #6 :set number! number?
" set line number color
hi LineNr term=underline ctermfg=black ctermbg=Gray guibg=#808080 gui=bold guifg=black
map #3 :syntax off
map #4 :syntax on
syntax on
" always show filename and status bar in blue+white
set laststatus=2
set statusline+=%F
set statusline+=\ col:\ %c,
hi StatusLine ctermbg=white ctermfg=blue
set backspace=indent,eol,start
" small tab size
set ts=2
" no autoindent
filetype indent off
" set formatoptions-=o
set formatoptions-=r
map #1 :set formatoptions-=r
" so $HOME/.vim/syntax/typescript.vim
au BufRead,BufNewFile *.ts,*.tsx,*.rst setfiletype typescriptreact
autocmd BufRead,BufNewFile *.ts,*.tsx,*.rst set syntax=typescriptreact