Skip to content

Instantly share code, notes, and snippets.

@VoQn
Created March 27, 2011 20:01
Show Gist options
  • Save VoQn/889547 to your computer and use it in GitHub Desktop.
Save VoQn/889547 to your computer and use it in GitHub Desktop.
" 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