Created
March 27, 2011 20:01
-
-
Save VoQn/889547 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vimrc | |
" Window | |
set laststatus=2 | |
" Buffer | |
set number | |
syntax enable | |
set expandtab | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set list | |
set listchars=tab:>- | |
" search | |
set incsearch | |
set ignorecase | |
set smartcase | |
" mapping load this file | |
noremap ,s :so<Space>~/.vimrc<CR> | |
" set all backup files to one directory | |
set backupdir=~/.vim/backup | |
set directory=~/.vim/swap | |
" auto cd command when open file | |
au BufEnter * execute ":lcd " . expand("%:p:h") | |
" Emacs Key Bind for Cmode | |
cnoremap <C-a> <S-RIGHT> | |
cnoremap <C-b> <LEFT> | |
cnoremap <C-e> <S-RIGHT> | |
cnoremap <C-f> <RIGHT> | |
cnoremap <C-n> <DOWN> | |
cnoremap <C-p> <UP> | |
" vim: ft=vim: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment