Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 84 lines (66 sloc) 2.362 kb
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
1 " ~/.vimrc (configuration file for vim only)
2
3 " pathogen
4 filetype off
5 call pathogen#runtime_append_all_bundles()
6 call pathogen#helptags()
7
8 " filetypes
9 filetype plugin on
10 filetype indent on
11
12 " set smartindent
13 set autoindent
14 set expandtab
15 set shiftwidth=4
e7cbf1b9 »
2011-03-06 Moved ruby specific configuration to after/ftplugin/ruby.vim
16 set softtabstop=4
17 set tabstop=4
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
18 set textwidth=80
a9cac109 »
2011-03-07 Incremental search
19 set number
20 set incsearch
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
21
22 " colorscheme default
23 colorscheme anotherdark
24
25 " Gundo
26 nnoremap <F5> :GundoToggle<CR>
27
386af2ed »
2011-03-01 Erlang man pages with keywordprg
28 " omnicomplete
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
29 autocmd FileType python set omnifunc=pythoncomplete#Complete
30 autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
31 autocmd FileType ruby set omnifunc=rubycomplete#Complete
32 autocmd FileType c set omnifunc=ccomplete#Complete
33 autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
34 autocmd FileType css set omnifunc=csscomplete#CompleteCSS
35 autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
e7cbf1b9 »
2011-03-06 Moved ruby specific configuration to after/ftplugin/ruby.vim
36
23ab8811 »
2011-03-06 Moved python specific configuration to after/ftplugin/python.vim
37 " <C-Space> -> try omnicomplete, fallback to <C-n>
7aeb9c42 »
2011-03-01 Ctrl-space triggers omnicomplete, falls back to ctrl-n
38 inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ?
39 \ "\<lt>C-n>" :
40 \ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
7cf72cb1 »
2011-03-06 Removed extra <c-n> in omnicomplete mapping
41 \ "\"\\<lt>c-n>\\<lt>c-p>\" :" .
7aeb9c42 »
2011-03-01 Ctrl-space triggers omnicomplete, falls back to ctrl-n
42 \ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
386af2ed »
2011-03-01 Erlang man pages with keywordprg
43
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
44 " Django templates
45 autocmd FileType python set ft=python.django
46 autocmd FileType html set ft=htmldjango.html
386af2ed »
2011-03-01 Erlang man pages with keywordprg
47
7113d89c »
2011-03-16 Mapping for maven projects (command-t exclude patterns)
48 " Maven projects
49 nnoremap mvn :set wildignore+=target/**,*/**/target/**,*.class<CR>:CommandTFlush<CR>
50
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
51 " closetag
e27d7327 »
2011-03-07 Fixed wrong path
52 autocmd FileType html,xml,xsl source ~/.vim/bundle/closetag-vim/plugin/closetag.vim
386af2ed »
2011-03-01 Erlang man pages with keywordprg
53
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
54 " jquery - activate: ':setfiletype jquery'
2bcf0155 »
2011-02-26 Remove duplicated line
55 autocmd BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
56
f7db4e07 »
2011-02-28 Ruby and vim-ruby settings
57 " ruby
58 let g:rubycomplete_buffer_loading=1
59 let g:rubycomplete_classes_in_global=1
60 let g:ruby_operators=1
61 let g:ruby_space_errors=1
62
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
63 " erlang
41abcda2 »
2011-03-15 Erlang BIF highlighting
64 let g:erlangHighlightBIFs=1
d28f0008 »
2011-02-27 Update to version 1.0 of vimerl
65 let g:erlangCheckFile='~/.vim/bundle/vimerl/compiler/erlang_check.erl'
66 let g:erlangCompleteFile='~/.vim/bundle/vimerl/autoload/erlang_complete.erl'
5a08deab »
2011-02-27 Fixed error in my vimerl settings
67 let g:erlangCompletionGrep='zgrep'
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
68 let g:erlangManPath='/usr/lib64/erlang/man'
69 let g:erlangManSuffix='\.gz'
70
31c25ef4 »
2011-02-27 Configure 'gist' plugin
71 " gist
72 let g:gist_clip_command='xclip -selection clipboard'
73 let g:gist_detect_filetype=1
74 let g:gist_show_privates=1
75
f188bf9d »
2011-03-09 Auto remove trailing spaces
76 " Automatically remove trailing whitespace on save for these file types.
77 autocmd FileType c,cpp,erlang,java,javascript,python,ruby autocmd BufWritePre
78 \ <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
79
740f1641 »
2011-03-27 Better default completion.
80 set nowildmenu
81 set wildmode=list:longest
82
b20353a3 »
2011-02-26 Manage vim plugins with pathogen
83 " ~/.vimrc ends here
Something went wrong with that request. Please try again.