-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc.after
More file actions
74 lines (67 loc) · 2.22 KB
/
.vimrc.after
File metadata and controls
74 lines (67 loc) · 2.22 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
69
70
71
72
73
74
"""""""""""""""""
" Misc settings "
"_______________"
set t_Co=256 " make it shiny
set wrap " wrap long lines
set undolevels=1000 " forgivable mistakes
filetype on " filetype detection on
filetype plugin on " load filetype specific plugins
filetype plugin indent on " load filetype specific indent plugins
set pastetoggle=<F2> " toggle auto indnting when pasting text
" following lines not needed because of erlang folding
"set foldenable " enable code folding
"set foldmethod=indent " setting foldmethod
"set foldnestmax=1 " set maximum depth of folding (i hate nested folding)
set smarttab " smart tab
set expandtab " spaces not tabs
set tabstop=4 " 4 spaces tabstop
set softtabstop=4 " 4 spaces softtabstop
set shiftwidth=4 " 4 spaces indent
syntax on
autocmd VimEnter * nested :TagbarOpen
""""""""""""""
" Set colors "
"____________"
colorscheme molokai
set cursorline " highlight current line of the cursor
set colorcolumn=81 " mark lines with 80+ chars (keep em short)
"""""""""""""""""""""""""""""""""
" Enable Powerline 'fancy' mode "
"_______________________________"
let g:Powerline_symbols = 'fancy'
""""""""""
" Erlang "
"________"
"
" completion
let g:erlangManPath='/usr/local/lib/erlang/man' " path of erlang manual for completion purposes
let g:erlangCompletion='grep'
let g:erlangCompletionDisplatDoc=1
set completeopt=longest,menuone
"
" folding
let g:erlang_folding=1 "NOT let g:erlangFold=1
" map space to za in silent mode
nnoremap <silent> <Space> @=(foldlevel('.')?'za':'1')<CR>
vnoremap <Space> zf
" NERDTree Ignore BEAM Files
let NERDTreeIgnore = ['\.beam$']
""""""""""
" Python "
"________"
"
" recognizing *.py as python-file
au BufNewFile,BufReadPost *.py set filetype=python
au BufNewFile,BufReadPost *.pl set filetype=prolog
"""""""""
" LaTeX "
"_______"
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'
let g:Tex_DefaultTargetFormat='pdf'
""""""""""""
" Mappings "
"__________"
"
" Mapping :CtrlPBuffer to C-b
map <C-b> :CtrlPBuffer<CR>