|
|
@ -4,6 +4,9 @@ set nocompatible |
|
|
|
" set syntax highlighting |
|
|
|
" set syntax highlighting |
|
|
|
syntax on |
|
|
|
syntax on |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Enable netrw |
|
|
|
|
|
|
|
filetype plugin on |
|
|
|
|
|
|
|
|
|
|
|
" start pathogen |
|
|
|
" start pathogen |
|
|
|
call pathogen#infect() |
|
|
|
call pathogen#infect() |
|
|
|
call pathogen#helptags() |
|
|
|
call pathogen#helptags() |
|
|
@ -12,6 +15,12 @@ call pathogen#helptags() |
|
|
|
set relativenumber |
|
|
|
set relativenumber |
|
|
|
set number |
|
|
|
set number |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" search in sub folders |
|
|
|
|
|
|
|
set path+=** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Display matching files when tab completing |
|
|
|
|
|
|
|
set wildmenu |
|
|
|
|
|
|
|
|
|
|
|
" set tabwidth |
|
|
|
" set tabwidth |
|
|
|
set autoindent |
|
|
|
set autoindent |
|
|
|
set smartindent |
|
|
|
set smartindent |
|
|
@ -24,12 +33,14 @@ set list listchars=tab:»\ ,trail:\␣,eol:↩ |
|
|
|
" make search highlight as you type |
|
|
|
" make search highlight as you type |
|
|
|
set incsearch |
|
|
|
set incsearch |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Make search case insensitive unless I type a capital letter |
|
|
|
|
|
|
|
set ignorecase smartcase |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set backspace=indent,eol,start |
|
|
|
|
|
|
|
|
|
|
|
" Show commands as you type them |
|
|
|
" Show commands as you type them |
|
|
|
set showcmd |
|
|
|
set showcmd |
|
|
|
|
|
|
|
|
|
|
|
" Set default buffer to system clipboard |
|
|
|
|
|
|
|
set clipboard=unnamedplus |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Move lines up/down using arrow keys |
|
|
|
" Move lines up/down using arrow keys |
|
|
|
nmap <Down> ddp |
|
|
|
nmap <Down> ddp |
|
|
|
nmap <Up> ddkP |
|
|
|
nmap <Up> ddkP |
|
|
@ -93,3 +104,7 @@ endfun |
|
|
|
|
|
|
|
|
|
|
|
" Run after "doing all the startup stuff" |
|
|
|
" Run after "doing all the startup stuff" |
|
|
|
" autocmd VimEnter * call Start() |
|
|
|
" autocmd VimEnter * call Start() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Folding |
|
|
|
|
|
|
|
au FileType html,css,less,javascript,php setl foldmethod=indent foldenable |
|
|
|