Skip to content

Instantly share code, notes, and snippets.

@Asenar Asenar/.vimrc
Created Aug 25, 2015

Embed
What would you like to do?
quickstart vimrc file
" put in ~/.vimrc
" {{{ general config
set nocompatible " vim Improved
set t_Co=256 " 256 colors
set ruler " show line and column in status bar
set showcmd " show the current command you're typing
" }}}
" {{{ look and feel
set showmatch " show corresponding bracket
set number " show line number
syntax on " syntax color
set hlsearch ? highlight search
set ignorecase
set smartcase " ignorecase + smartcase to search with no sensitive case if all is lower
set scrolloff=5 " keep 5 line above/below the cursor
set cursorline " different color for the current line
" }}}
" {{{ About tabulations
set noexpandtab
set softtabstop
set shiftwidth
set tabstop
" }}}
" # some shortcuts example (see :help macro )
" ## use tabs to open multiple files
nmap <C-t> :tabnew<CR>
imap <C-t> <Esc>:tabnew<CR>
nmap <Tab> gt<CR> " nextab
nmap <S-Tab> gT<CR> " previoustab
" ## automatically add the closing brackets/parenthesis/quote/...
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap < <><left>
inoremap ' ''<left>
inoremap " ""<left>
" # some plugins
" see https://github.com/Shougo/neobundle.vim for installation instruction
" if has('vim_starting')
" set runtimepath+=~/.vim/bundle/neobundle.vim/
" endif
" call neobundle#begin(expand('~/.vim/bundle/'));
" Neobundle 'Shougo/neobundle.vim'
" NeoBundle 'tomtom/quickfixsigns_vim'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.