-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
51 lines (37 loc) · 1.09 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
" http://vim.wikia.com/wiki/Mac_OS_X_clipboard_sharing
" Make vim incompatbile to vi.
set nocompatible
" Required:
filetype plugin indent on
" syntax enable – Already set by sensible
set background=dark
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
" set mouse enabled
set mouse=a
" Plugin key-mappings.
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
" SuperTab like snippets behavior.
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: pumvisible() ? "\<C-n>" : "\<TAB>"
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
" For snippet_complete marker.
if has('conceal')
set conceallevel=2 concealcursor=i
endif
set cursorline
syntax on
" set markdown syntax highlighting for md files
au BufRead,BufNewFile *.md set filetype=markdown
" set column color for py files at 79
au BufRead,BufNewFile *.py set colorcolumn=79
set backspace=indent,eol,start
inoremap jj <ESC>
inoremap JJ <Esc>A