/
.vimrc
94 lines (77 loc) · 2.41 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
"does clever indenting--syntax awareness
set smartindent
"shows stuff on bottom
set showcmd
"give visual indication of what's available for tab completion
set wildmenu
" I don't know what these do, I just do them
set ts =4
set expandtab
set tabstop=4
set shiftwidth=4
syntax on
"line numbersss
set number
" Search usability
set ignorecase " search matches ignore case
set smartcase " search matches case if you start using it
set incsearch " Search as you type the regex
set hlsearch " Highlight found search results
set ruler " Show the line number and column of cursor position
set linebreak " More visually appealing wordwrap
" md means markdown, vim.
au BufNewFile,BufRead *.md set ft=markdown
" cljs might as well be clojure
au BufNewFile,BufRead *.cljs set ft=clojure
" Keep track of code folding
au BufWinLeave * silent! mkview
au BufWinEnter * silent! loadview
" do vundle stuff ##################
set nocompatible
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle Manage Vundle
" required!
Bundle 'gmarik/vundle'
" original repos on github
" syntax stuff
Bundle 'puppetlabs/puppet-syntax-vim'
Bundle 'vim-scripts/Jinja'
Bundle 'pangloss/vim-javascript'
Bundle 'vim-scripts/VimClojure'
Bundle 'kchmck/vim-coffee-script'
Bundle 'repos-scala/scala-vundle'
Bundle 'digitaltoad/vim-jade'
" ui features
Bundle 'kien/ctrlp.vim'
Bundle 'msanders/snipmate.vim'
Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/syntastic'
Bundle 'rking/ag.vim'
"Bundle 'klen/python-mode'
filetype plugin indent on
" /do vundle stuff ###############
" plugin settings ########
" syntastic disable html checking
let g:syntastic_mode_map={ 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['html'] }
" powerline
set nocompatible " Disable vi-compatibility
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
" ctrl p stuff
let g:ctrlp_custom_ignore = {
\ 'dir': '\v([\/]\.(git|hg|svn)|node_modules)$',
\ 'file': '\v\.(exe|so|dll|class|)$',
\ 'link': 'some_bad_symbolic_links',
\ }
" add <F6> binding for running python code
" should eventually update it so that I can make <F6> run things based on filetype
nmap <F6> :w<CR>:!python %<CR>
nmap <leader>f :vim <C-R><C-W> **/*.py
"noremap j <NOP>
"noremap k <NOP>
"noremap l <NOP>
"noremap h <NOP>