-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
111 lines (99 loc) · 3.59 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
" ===[ Global Variables ]=== {{{1
let s:windows = has('win32') || has('win64')
let s:mac_gui = has('gui_macvim')
"1}}}
" ===[ vim-plug init ]=== {{{1
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'Shougo/vimproc.vim'
Plug 'Shougo/unite.vim'
Plug 'Shougo/neocomplete.vim'
Plug 'scrooloose/syntastic' " syntax checker
Plug 'Yggdroot/indentLine' "show indent lines (matching brackets)
Plug 'SirVer/ultisnips' " Track the engine.
Plug 'honza/vim-snippets' "Snippets
"Haskell Plugins
Plug 'eagletmt/ghcmod-vim', { 'for': 'haskell' }
Plug 'eagletmt/neco-ghc', { 'for': 'haskell' }
Plug 'Twinside/vim-hoogle', { 'for': 'haskell' }
Plug 'bosu/hscope', { 'for': 'haskell' }
Plug 'bitc/vim-hdevtools', { 'for': 'haskell' }
"Colorschemes
Plug 'altercation/vim-colors-solarized' " solarized vim
Plug 'kien/rainbow_parentheses.vim' "Multi-color parantheses
"Other
Plug 'bling/vim-airline' " status line
Plug 'tpope/vim-commentary' " add comments easily
Plug 'tpope/vim-surround' " surround things
Plug 'zhaocai/GoldenView.Vim' " better splits
Plug 'majutsushi/tagbar' "Tagbar
Plug 'jordwalke/VimCompleteLikeAModernEditor'
Plug 'Raimondi/delimitMate' "auto close pairs
Plug 'benmills/vimux'
"Pandoc
Plug 'vim-pandoc/vim-pandoc-syntax', {'for': 'markdown'}
"Scala
Plug 'derekwyatt/vim-scala', {'for': 'scala'} "Scala syntax highlighting
Plug 'artur-shaik/vim-javacomplete2', {'for': 'scala,java'}
"Latex Plugin
Plug 'vim-scripts/LaTeX-Box', { 'for': 'tex' } "best latex plugin ever
"iOS plugins
Plug 'eraserhd/vim-ios', { 'for': 'cocoa,swift'}" ios options for vim
Plug 'vim-scripts/cocoa.vim', { 'for': 'cocoa,swift'} " cocoa plugin
Plug 'Rip-Rip/clang_complete', { 'for': 'cocoa,swift'}
Plug 'toyamarinyon/vim-swift', { 'for': 'cocoa,swift'} " swift support
Plug 'tpope/vim-fugitive' "git from vim
call plug#end()
"1}}}
" ===[ All options ]=== {{{1
source $HOME/dotfiles/vim/opciones/plugins.vim
source $HOME/dotfiles/vim/opciones/globales.vim "global options
source $HOME/dotfiles/vim/opciones/keys.vim "maps and keys
source $HOME/dotfiles/vim/opciones/customFunctions.vim "simple custom functions
"1}}}
"===[ color options ]=== {{{1
if &term =~ '256color'
" disable Background Color Erase (BCE) so that color schemes
" render properly when inside 256-color tmux and GNU screen.
" see also http://snk.tuxfamily.org/log/vim-256color-bce.html
set t_ut=
endif
set gfn=Monaco:h11 " Use large font by default in MacVim
syntax enable
set background=dark
colorscheme smyck
"1}}}
" ===[ Useful autocommands ]=== {{{1
" Vim marker folding method for vimscripts {{{2
au! BufNewFile,BufRead * if getline(1) =~ '"ft=vim' | setf vim | endif
autocmd BufWritePre * :%s/\s\+$//e
augroup filetype_vim
autocmd!
autocmd FileType vim setlocal foldmethod=marker
autocmd FileType sh setlocal foldmethod=marker
augroup END
" 2}}}
" Autoload configuration when this file changes ($MYVIMRC) {{{2
" Source the vimrc file after saving it
augroup sourcing
autocmd!
autocmd bufwritepost .vimrc source $MYVIMRC
augroup END
" 2}}}
" Custom filetypes {{{2
au BufRead,BufNewfile *.fun set filetype=haskell "Fun Language (Oxford)
augroup markdown
autocmd!
au BufRead,BufNewFile *.md setfiletype markdown
au BufRead,BufNewFile *.md UltiSnipsAddFiletypes markdown.tex
au FileType markdown setlocal spell
set conceallevel=0
augroup END
" 2}}}
" 1}}}
" ===[ Acknowledgments ]=== {{{1
" Many things in these files are taken from elsewhere
" bitbucket.org/sjl/dotfiles/src/cbbbc897e9b3/vim/vimrc
" blog.sanctum.geek.nz/vim-command-typos/
" vimrcfu.com/snippet/76
" 1}}}