Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 129 lines (127 sloc) 2.983 kb
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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
"" a very simple rc for quick run of vim
"" only most needed config is setting here
"
"" Use Vim settings, rather then Vi settings (much better!).
"" This must be first, because it changes other options as a side effect.
"set nocompatible
"
"" allow backspacing over everything in insert mode
"set backspace=indent,eol,start
"
"set history=50 " keep 50 lines of command line history
"set ruler " show the cursor position all the time
"set showcmd " display incomplete commands
"set incsearch " do incremental searching
"
"" set filetype check on
":filetype plugin indent on
"syntax on
"set hlsearch
"
"" enable mouse
":set mouse=a
"
"" set search ignorecase
":set ignorecase
"
":set sessionoptions+=unix,slash
"
"" encodings configure
":set fileencoding=utf-8
":set encoding=utf-8
":set fileencodings=ucs-bom,utf-8,gb2312,cp936
"
"" set tabstop value and shift width
":set ts=4
":set sw=4
":set expandtab
"
""setting about indent
":set autoindent
":set smartindent
"
""setting about old window resizing behavior when open a new window
":set winfixheight
"" not let all windows keep the same height/width
":set noequalalways
"
"if exists("&autochdir")
" :set autochdir
"endif
"
"set readonly
"
""normal abbreviations
"abbr teh the
"abbr widht width
"abbr rigth right
"
"" maps
"" remap builtin shift command
":vnoremap < <gv
":vnoremap > >gv
"
"" general key maps
":vmap * y/<C-R>"<CR>
":vmap # y?<C-R>"<CR>
"
"
"" the following map to make move between windows more easy!
"set winminheight=0
"nmap <C-j> <C-W>j
"nmap <C-k> <C-W>k
"nmap <C-h> <c-w>h
"nmap <C-l> <c-w>l
"
"" following key maps will make input mode's navigation easier
"imap <C-j> <down>
"imap <C-k> <up>
"imap <C-B> <Left>
"imap <C-F> <Right>
"imap <C-D> <Del>
"imap <C-A> <Home>
"imap <C-BS> <C-O>B<C-O>dE
"inoremap <C-E> <C-R>=col('.') == col('$') ? "\<lt>C-E>" : "\<lt>End>"<CR>
"
"
"" following key maps will make command mode's navigation easier
"" when input path name, use the '/' to stop a completion
"cnoremap <C-A> <Home>
"cnoremap <C-B> <left>
"cnoremap <C-F> <right>
"cnoremap <C-X> <Del>
"
"" following key maps will make increase/decrease the width/height of window
"" easier
"nmap - <C-W>-
"nmap = <C-W>+
"nmap _ 5<C-W><
"nmap + 5<C-W>>
"
"" use enter to unhighlighted searched-for text
"nnoremap <C-CR> :noh<CR>
"nnoremap <leader>q :close<CR>
"nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
"
"" mappings for quickfix mode
"nnoremap <F4> :cnext <CR>
"nnoremap <S-F4> :cprev <CR>
"
"set timeout timeoutlen=1000 ttimeoutlen=100
"if !has("gui_running")
" if &term == "win32"
" else
" set <F13>=O5Q <F14>=O2Q <F15>=[3;2~
" nmap <F13> <C-F2>
" nmap <F14> <S-F2>
" imap <F15> <S-Del> " this map does not work, don't know why
" endif
"endif

source ~/.vimrc

runtime plugin/mark.vim
runtime plugin/visualmark.vim
runtime plugin/AsNeeded.vim
runtime plugin/ANcmds.vim
runtime plugin/foldutil.vim
runtime plugin/AlignPlugin.vim
runtime plugin/myplugin.vim
Something went wrong with that request. Please try again.