-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
74 lines (58 loc) · 1.5 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'Valloric/YouCompleteMe'
Plug 'ternjs/tern_for_vim'
Plug 'junegunn/seoul256.vim'
Plug 'moll/vim-node'
Plug 'scrooloose/nerdtree'
Plug 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
call plug#end()
" YCM Autoclose Preview Window
function ExpandSnippetOrCarriageReturn()
let snippet = UltiSnips#ExpandSnippetOrJump()
if g:ulti_expand_or_jump_res > 0
return snippet
else
return "\<CR>"
endif
endfunction
inoremap <expr> <CR> pumvisible() ? "<C-R>=ExpandSnippetOrCarriageReturn()<CR>" : "\<CR>"
set completeopt-=preview
let g:ycm_add_preview_to_completeopt = 0
" Snippets Config
let g:UltiSnipsExpandTrigger = "<nop>"
let g:ulti_expand_or_jump_res = 0
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" Powerline Config
set laststatus=2
" Seoul color settings
let g:seoul256_background = 237
colo seoul256
" NERDTree Config
let g:NERDTreeWinPos = "left"
let g:NERDTreeWinSize = 30
map <C-n> :NERDTreeToggle<CR>
" Native Config
" Window Movement
map <C-H> <C-W>h
map <C-J> <C-W>j
map <C-K> <C-W>k
map <C-L> <C-W>l
" Set fold toggle to 'f'
map f za
set backspace=indent,eol,start
set hidden
set nowrap
" Tab settings
set shiftwidth=3
set tabstop=3
set expandtab
set colorcolumn=100
set hlsearch incsearch
au BufReadPost *.ejs set syntax=html
" Javascript files
au Filetype javascript source ~/.vim-javascript
au Filetype python setl sw=2 sts=2 et