blob: 8a3a409cba3b6a48d01176fc4dde9081c68a9070 (
plain) (
blame)
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
|
filetype plugin indent on
syntax enable
set nocompatible
set undodir=~/.cache/vim/undo
set directory=~/.cache/vim/swap
set backupdir=~/.cache/vim/backup
set viminfo+=n~/.cache/vim/viminfo
set clipboard=exclude:cons\|linux
set hidden
set wildmenu
set showcmd
set nostartofline
set ruler
set confirm
set list
if has("patch-7.4.710")
set listchars+=space:·,tab:\ \
else
set listchars+=tab:├─
endif
set tabstop=8 expandtab shiftwidth=4 softtabstop=4 smarttab
set omnifunc=syntaxcomplete#Complete
set dictionary=/usr/share/dict/words
set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
autocmd FileType vim,pascal,html setlocal shiftwidth=2 tabstop=2
autocmd FileType c,h,cpp,arduino setlocal noexpandtab shiftwidth=8 tabstop=8
autocmd FileType markdown setlocal textwidth=79
autocmd FileType python syntax keyword pythonBoolean False True None
autocmd BufWinEnter * let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1)
map Q gq
|