-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
98 lines (77 loc) · 1.61 KB
/
init.vim
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
call pathogen#infect()
set nocompatible
set mouse=a
set number
set numberwidth=4
set autoindent
set smartindent
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smarttab
set wrap
set showmatch
set ruler
set nohls
set lbr
set backspace=indent,eol,start
set whichwrap+=<,>,[,]
set autoread
nnoremap <Tab> <Esc>
vnoremap <Tab> <Esc>gV
onoremap <Tab> <Esc>
inoremap <Tab> <Esc>`^
inoremap <Leader><Tab> <Tab>
"The following is useful for getting to column 80
nnoremap g<Bar> 80<Bar>
set splitright
set background=dark
set showcmd
set ignorecase
set smartcase
set incsearch
set autowrite
set hidden
set hlsearch
if has("syntax")
syntax on
endif
if has("autocmd")
filetype plugin indent on
autocmd FileType rust setlocal sw=2 sts=2 ts=2
autocmd FileType javascript setlocal sw=2 sts=2 ts=2
endif
" if has('cscope')
" set nocscopeverbose
"
" set cscopetag cscopeverbose
"
" if has('quickfix')
" set cscopequickfix=s-,c-,d-,i-,t-,e-
" endif
"
" cnoreabbrev csa cs add
" cnoreabbrev csf cs find
" cnoreabbrev csk cs kill
" cnoreabbrev csr cs reset
" cnoreabbrev css cs show
" cnoreabbrev csh cs help
" endif
let vimpager_scrolloff=0
set grepprg=grep\ -nH\ $*
let g:tex_flavor="latex"
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_CompileRule_pdf='latexmk -pdf $*'
let g:Tex_ViewRule_pdf='evince'
if has('persistent_undo')
set undofile
set undodir=$HOME/.vim/undo
nnoremap U :GundoToggle<CR>
let g:gundo_preview_bottom = 1
let g:gundo_right = 1
let g:gundo_help = 0
let g:gundo_close_on_revert = 1
endif
let g:javascript_plugin_flow = 1
let g:jsx_ext_required = 0