1
- syntax on
2
- syntax enable
3
- set smartindent
4
- set tabstop = 4
5
- set shiftwidth = 4
6
- set expandtab
1
+ " "
2
+ " " Janus setup
3
+ " "
4
+
5
+ " Define paths
6
+ if has (' win32' ) || has (' win64' ) || has (' win32unix' )
7
+ let g: janus_path = expand (" ~/.vim/janus/vim" )
8
+ let g: janus_vim_path = expand (" ~/.vim/janus/vim" )
9
+ else
10
+ let g: janus_path = escape (fnamemodify (resolve (expand (" <sfile>:p" )), " :h" ), ' ' )
11
+ let g: janus_vim_path = escape (fnamemodify (resolve (expand (" <sfile>:p" . " vim" )), " :h" ), ' ' )
12
+ endif
13
+ let g: janus_custom_path = expand (" ~/.janus" )
14
+
15
+ " Source janus's core
16
+ exe ' source ' . g: janus_vim_path . ' /core/before/plugin/janus.vim'
17
+
18
+ " You should note that groups will be processed by Pathogen in reverse
19
+ " order they were added.
20
+ call janus#add_group (" tools" )
21
+ call janus#add_group (" langs" )
22
+ call janus#add_group (" colors" )
23
+
24
+ " "
25
+ " " Customisations
26
+ " "
27
+
28
+ if filereadable (expand (" ~/.vimrc.before" ))
29
+ source ~/.vimrc.before
30
+ endif
31
+
32
+
33
+ " Disable plugins prior to loading pathogen
34
+ exe ' source ' . g: janus_vim_path . ' /core/plugins.vim'
35
+
36
+ " "
37
+ " " Pathogen setup
38
+ " "
39
+
40
+ " Load all groups, custom dir, and janus core
41
+ call janus#load_pathogen ()
42
+
43
+ " .vimrc.after is loaded after the plugins have loaded
44
+
45
+
46
+ set nocompatible " be iMproved, required
47
+ filetype off " required
48
+
49
+ " set the runtime path to include Vundle and initialize
50
+ set rtp += ~/.vim/bundle/Vundle.vim
51
+ call vundle#begin ()
52
+ " alternatively, pass a path where Vundle should install plugins
53
+ " call vundle#begin('~/some/path/here')
54
+
55
+ " let Vundle manage Vundle, required
56
+ Plugin ' gmarik/Vundle.vim'
57
+
58
+ " """""""""""""""""""""""""""""""" MY VUNDLES """""""""""""""""""""""
59
+ " HEAVILY/MOSTLY taken from https://github.com/skwp/dotfiles
60
+
61
+ " Make Git pervasive in vim ( :Gblame + Glog + many more )
62
+ Plugin ' tpope/vim-fugitive'
63
+
64
+ " file navigator gutter
65
+ Plugin ' scrooloose/nerdtree.git'
66
+
67
+ " awesome syntax highlighting
68
+ " TODO: Figure out how to enable correctly for Ruby.
69
+ Plugin ' scrooloose/syntastic'
70
+
71
+ " Command+T replacement (ctrl+P)
72
+ Plugin ' kien/ctrlp.vim'
73
+
74
+ " Rails plugin ( :A mapping! )
75
+ Plugin ' tpope/vim-rails.git'
76
+
77
+ " comment lines out (gc in visual mode)
78
+ Plugin ' tomtom/tcomment_vim.git'
79
+
80
+ " Make it look amazing
81
+ Plugin ' altercation/vim-colors-solarized'
82
+
83
+ " Pimped out bar at the bottom of current buffer
84
+ Plugin ' bling/vim-airline.git'
85
+
86
+ " Highlights class names + methods more brightly
87
+ " Handy for seeing syntax shape before your eyes
88
+ Plugin ' vim-scripts/TagHighlight.git'
89
+
90
+ " END OF VUNDLE PLUGINS
91
+ " """""""""""""""""""""""""""""""""""""""""""""""
92
+
93
+ " All of your Plugins must be added before the following line
94
+ call vundle#end () " required
95
+ filetype plugin indent on " required
96
+ " To ignore plugin indent changes, instead use:
97
+ " filetype plugin on
98
+ "
99
+ " Brief help
100
+ " :PluginList - lists configured plugins
101
+ " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
102
+ " :PluginSearch foo - searches for foo; append `!` to refresh local cache
103
+ " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
104
+ "
105
+ " see :h vundle for more details or wiki for FAQ
106
+ " Put your non-Plugin stuff after this line%
0 commit comments