Skip to content

Instantly share code, notes, and snippets.

@gowhari
Last active August 29, 2015 14:08
Show Gist options
  • Save gowhari/85472849615580a4acfc to your computer and use it in GitHub Desktop.
Save gowhari/85472849615580a4acfc to your computer and use it in GitHub Desktop.
A general vimrc set tab key to 4 spaces and map some keys to use tab windows
" vimrc vim iman gowhari
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set noswapfile
set hlsearch
set nowrap
set autochdir
map <F2> :w<CR>
map <F3> :tabedit .<CR>
map <F4> :tabclose<CR>
map <F7> :tabprevious<CR>
map <F8> :tabnext<CR>
imap <F2> <ESC>:w<CR>a
imap <F3> <ESC>:tabedit .<CR>
imap <F4> <ESC>:tabclose<CR>a
imap <F7> <ESC>:tabprevious<CR>a
imap <F8> <ESC>:tabnext<CR>a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment