Make vimrc work on default Ubuntu vi
This commit is contained in:
parent
ddb39ef172
commit
17fc7abc5e
1 changed files with 24 additions and 18 deletions
42
vimrc
42
vimrc
|
@ -10,24 +10,10 @@ if version < 800
|
||||||
silent! execute pathogen#infect('pack/acp/start/{}')
|
silent! execute pathogen#infect('pack/acp/start/{}')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
autocmd BufRead,BufNewFile *.md set filetype=markdown
|
|
||||||
command Q q
|
|
||||||
command W w
|
|
||||||
command WQ wq
|
|
||||||
inoremap <down> <nop>
|
inoremap <down> <nop>
|
||||||
inoremap <left> <nop>
|
inoremap <left> <nop>
|
||||||
inoremap <right> <nop>
|
inoremap <right> <nop>
|
||||||
inoremap <up> <nop>
|
inoremap <up> <nop>
|
||||||
let g:airline_theme='jellybeans'
|
|
||||||
let g:ctrlp_cmd='CtrlP'
|
|
||||||
let g:ctrlp_map='<c-p>'
|
|
||||||
let g:netrw_altv=1
|
|
||||||
let g:netrw_banner=0
|
|
||||||
let g:netrw_browse_split=4
|
|
||||||
let g:netrw_liststyle=3
|
|
||||||
let g:netrw_sort_sequence='[\/]$,*'
|
|
||||||
let g:netrw_winsize=-28
|
|
||||||
let g:riv_fold_auto_update=0
|
|
||||||
nmap <silent> <A-Down> :wincmd j<CR>
|
nmap <silent> <A-Down> :wincmd j<CR>
|
||||||
nmap <silent> <A-Left> :wincmd h<CR>
|
nmap <silent> <A-Left> :wincmd h<CR>
|
||||||
nmap <silent> <A-Right> :wincmd l<CR>
|
nmap <silent> <A-Right> :wincmd l<CR>
|
||||||
|
@ -58,7 +44,7 @@ set laststatus=2
|
||||||
set linebreak
|
set linebreak
|
||||||
set list
|
set list
|
||||||
set modelines=0
|
set modelines=0
|
||||||
set nofoldenable
|
set nocompatible
|
||||||
set nojoinspaces
|
set nojoinspaces
|
||||||
set nrformats-=octal
|
set nrformats-=octal
|
||||||
set number
|
set number
|
||||||
|
@ -79,9 +65,25 @@ set ttyfast
|
||||||
set viminfo="NONE"
|
set viminfo="NONE"
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wrap
|
set wrap
|
||||||
silent! colorscheme desert
|
|
||||||
silent! filetype plugin indent on
|
if has("eval")
|
||||||
silent! syntax on
|
autocmd BufRead,BufNewFile *.md set filetype=markdown
|
||||||
|
command Q q
|
||||||
|
command W w
|
||||||
|
command WQ wq
|
||||||
|
filetype plugin indent on
|
||||||
|
let g:airline_theme='jellybeans'
|
||||||
|
let g:ctrlp_cmd='CtrlP'
|
||||||
|
let g:ctrlp_map='<c-p>'
|
||||||
|
let g:netrw_altv=1
|
||||||
|
let g:netrw_banner=0
|
||||||
|
let g:netrw_browse_split=4
|
||||||
|
let g:netrw_liststyle=3
|
||||||
|
let g:netrw_sort_sequence='[\/]$,*'
|
||||||
|
let g:netrw_winsize=-28
|
||||||
|
let g:riv_fold_auto_update=0
|
||||||
|
syntax on
|
||||||
|
endif
|
||||||
|
|
||||||
if has("patch-7.3.541")
|
if has("patch-7.3.541")
|
||||||
set formatoptions+=j
|
set formatoptions+=j
|
||||||
|
@ -97,6 +99,10 @@ if has("lua")
|
||||||
let g:neocomplete#enable_at_startup=1
|
let g:neocomplete#enable_at_startup=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if has("folding")
|
||||||
|
set nofoldenable
|
||||||
|
endif
|
||||||
|
|
||||||
if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
|
if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
|
||||||
set t_Co=16
|
set t_Co=16
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue