vimenv

configure vim environment
git clone git://git.unixkoans.com/vimenv.git
Log | Files | Refs | Submodules

base.vim (522B)


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
"
" author:    Xu Xiaodong <[email protected]>
" modified:  2016 Dec 06
"

"-- base --"

" make tab ident code
nmap <tab> I<tab><esc>
vmap <tab> >gv
nmap <s-tab> ^i<bs><esc>
vmap <s-tab> <gv

" set modeline
"nmap _m :call _set_modeline()<cr>

" add markdown header
nmap _m :call _markdown_header()<cr>

" add script header
nmap _h :call _set_sh_header()<cr>

" auto update timestamps
autocmd BufWritePre * call _last_modified()

" python
let g:python_host_prog='/usr/bin/python2'
let g:python3_host_prog='/usr/bin/python3'