Skip to content

Commit

Permalink
Changed vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
zigzag committed Feb 15, 2010
1 parent afc10ad commit 1819586
Showing 1 changed file with 3 additions and 76 deletions.
79 changes: 3 additions & 76 deletions .vimrc
Expand Up @@ -12,6 +12,8 @@ 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 number " show line numbers

"
"" set filetype check on
:filetype plugin indent on
Expand All @@ -21,7 +23,7 @@ syntax on
"" enable spell check
:set spell
"" enable mouse
:set mouse=a
":set mouse=a
"
"" set search ignorecase
:set ignorecase
Expand All @@ -46,79 +48,4 @@ syntax on
: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

0 comments on commit 1819586

Please sign in to comment.