-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
76 lines (76 loc) · 1.83 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
75
76
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'solarized'
Plugin 'vim-scripts/Align'
Plugin 'tpope/vim-dispatch'
Plugin 'vim-latex/vim-latex'
Plugin 'skywind3000/asyncrun.vim'
Plugin 'dylanaraps/wal.vim'
Plugin 'digitaltoad/vim-pug'
"Plugin 'bling/vim-bufferline'
Plugin 'ternjs/tern_for_vim'
Plugin 'Valloric/YouCompleteMe'
"Plugin 'davidhalter/jedi-vim'
"Plugin 'guyzmo/vim-etherpad'
call vundle#end()
if &cp | set nocp | endif
set background=dark
colorscheme solarized
let g:solarized_termtrans=1
set backspace=indent,eol,start
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=en
set ruler
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
set showcmd
filetype plugin indent on
syntax on
"set omnifunc=syntaxcomplete#Complete
set relativenumber
vnoremap . :normal .<CR>
map [[ ?}<CR>%^
map ]] /{<CR>%
set mouse=a
let g:tex_flavor = 'latex'
set autoread
set softtabstop=4
set shiftwidth=4
set expandtab
set hidden
inoremap <C-h> <home>
inoremap <C-l> <end>
inoremap <C-w> <C-right>
inoremap <C-b> <C-left>
noremap H ^
noremap L $
nnoremap U <C-r>
set scrolloff=10
nnoremap <C-l> :tabn<CR>
nnoremap <C-h> :tabp<CR>
vmap <C-c> "+y
nmap Y y$
"execute command in buffer c
nmap M :w<CR>:@c<CR>
"twig file type
au BufRead,BufNewFile *.twig set ft=html
"remove header in folder view
set wildmenu
" remove banner in folder view
let g:netrw_banner = 0
" display folder in tree
let g:netrw_liststyle=3
" open tab when opening file from folder
let g:netrw_browse_split=3
let g:tern_show_argument_hints='on_hold'
cabbrev e tabe
function! CloseSomething()
if winnr("$") == 1 && tabpagenr("$") > 1 && tabpagenr() > 1 && tabpagenr() < tabpagenr("$")
tabclose | tabprev
else
q
endif
endfunction
map <C-x> :call CloseSomething()<CR>