-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
52 lines (41 loc) · 1.25 KB
/
.vimrc
File metadata and controls
52 lines (41 loc) · 1.25 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
""""""""""""""""""""""""""""""""""
" Syntax and indent
""""""""""""""""""""""""""""""""""
syntax on " Turn on syntax highligthing
set showmatch "Show matching bracets when text indicator is over them
colorscheme delek
" Switch on filetype detection and loads
" indent file (indent.vim) for specific file types
filetype indent on
filetype on
set autoindent " Copy indent from the row above
set si " Smart indent
""""""""""""""""""""""""""""""""""
" Some other confy settings
""""""""""""""""""""""""""""""""""
set nu " Number lines
set hls " highlight search
set lbr " linebreak
" Use 4 space instead of tab during format
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
" Always display status line
set laststatus=2
" swp directory
set directory=~/.vim/tmp
" utf-8 encoding
set encoding=utf-8
autocmd BufWritePre *.scala :%s/\s\+$//e
" Shorcut key-bindings
map <F2> :mksession! ~/.vim/tmp/_session <cr> " Quick write session with F2
map <F3> :source ~/.vim/tmp/_session <cr> " And load session with F3
" close parentheses and backets
inoremap ( ()<Left>
inoremap (<cr> (<cr>)<Esc>0
inoremap (( (
inoremap () ()
inoremap { {}<Left>
inoremap {<cr> {<cr>}<Esc>0
inoremap {} {}