Add comment sections
This commit is contained in:
parent
e16ef6da19
commit
bd93c75854
1 changed files with 17 additions and 1 deletions
18
vimrc
18
vimrc
|
@ -5,11 +5,16 @@
|
||||||
" Includes parts from Tim Pope's «sensible.vim»
|
" Includes parts from Tim Pope's «sensible.vim»
|
||||||
" <https://github.com/tpope/vim-sensible>.
|
" <https://github.com/tpope/vim-sensible>.
|
||||||
|
|
||||||
if !has("packages") && has("eval")
|
" ======================================================================
|
||||||
|
" Load Pathogen if Vim does not support packages.
|
||||||
|
if !has("packages")
|
||||||
runtime pack/acp/opt/vim-pathogen/autoload/pathogen.vim
|
runtime pack/acp/opt/vim-pathogen/autoload/pathogen.vim
|
||||||
execute pathogen#infect('pack/acp/start/{}')
|
execute pathogen#infect('pack/acp/start/{}')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" ======================================================================
|
||||||
|
" General settings for all builds.
|
||||||
|
|
||||||
inoremap <down> <nop>
|
inoremap <down> <nop>
|
||||||
inoremap <left> <nop>
|
inoremap <left> <nop>
|
||||||
inoremap <right> <nop>
|
inoremap <right> <nop>
|
||||||
|
@ -63,7 +68,13 @@ set viminfo="NONE"
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wrap
|
set wrap
|
||||||
|
|
||||||
|
" ======================================================================
|
||||||
|
" General settings for non-minimal Vim builds.
|
||||||
|
|
||||||
if has("eval")
|
if has("eval")
|
||||||
|
" Protect commands that are only available when +eval is enabled.
|
||||||
|
" Technically only "if 1" would be required, as "has()" is provided
|
||||||
|
" by +eval, but this is clearer.
|
||||||
colorscheme jellybeans
|
colorscheme jellybeans
|
||||||
command Q q
|
command Q q
|
||||||
command W w
|
command W w
|
||||||
|
@ -85,6 +96,9 @@ if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
|
||||||
set t_Co=16
|
set t_Co=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" ======================================================================
|
||||||
|
" Settings based on feature detection.
|
||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
autocmd BufRead,BufNewFile *.md set filetype=markdown
|
autocmd BufRead,BufNewFile *.md set filetype=markdown
|
||||||
endif
|
endif
|
||||||
|
@ -130,4 +144,6 @@ if has("syntax")
|
||||||
syntax on
|
syntax on
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" ======================================================================
|
||||||
|
" End of config file.
|
||||||
" vim:set ft=vim et sw=4:
|
" vim:set ft=vim et sw=4:
|
||||||
|
|
Loading…
Reference in a new issue