-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
69 lines (53 loc) · 1.29 KB
/
vimrc
File metadata and controls
69 lines (53 loc) · 1.29 KB
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
" General settings
set number
set incsearch
set noswapfile
set nocompatible
" Modelines
set modelines=15
set modeline
" Colors
colorscheme delek
" Default indentantion
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set expandtab
set term=builtin_ansi
" Mouse
set mouse=a
set ttymouse=xterm2
" Disable keys
map <S-K> <Nop>
" Navigation keys
map ,n :tabn<CR>
map ,p :tabp<CR>
nnoremap <C-J> <C-E>
inoremap <C-J> <C-X><C-E>
nnoremap <C-K> <C-Y>
inoremap <C-K> <C-X><C-Y>
" Autoindent switching
nmap <F8> :setl noai nocin nosi inde=<CR>
nmap <F9> :setl ts=2 sw=2 sts=2<CR>
" HTML close tags
imap <C-Space> </<C-X><C-O>
"iabbrev </ </<C-X><C-O>
" Fix N_O delay
set noesckeys
set timeout timeoutlen=1000 ttimeoutlen=100
" Additional filetypes
au BufRead,BufNewFile *.vs,*.fs,*.glsl set filetype=glsl " OpenGL GLSL files
au BufRead,BufNewFile *.flex set filetype=lex " Another FLEX extension
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype off
set nocompatible
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-jp/vim-cpp'
Plugin 'rust-lang/rust.vim'
call vundle#end()
filetype plugin indent on