Skip to content

Instantly share code, notes, and snippets.

@isRuslan
Created December 18, 2014 08:38
Show Gist options
  • Save isRuslan/19439a601b26fd13ff2d to your computer and use it in GitHub Desktop.
Save isRuslan/19439a601b26fd13ff2d to your computer and use it in GitHub Desktop.
Vim config
" Just search by `/# ` to navigate between parts of the file
" # Behavior
set nocompatible
set nobackup
set noswapfile
set history=1000 " remember more commands and search history
" # UX
syntax enable
set title " Show the (partial) command as it’s being typed
set number " Show line numbers
set nostartofline " Don’t reset cursor to start of line when moving around.
set ruler " Show the cursor position
set showmode " Show the current mode
set noeol " Don’t add empty newlines at the end of files
set showcmd " Display incomplete commands.
set scrolloff=8 " Start scrolling when we're 8 lines away from margins
set sidescrolloff=15
set sidescroll=1
" # Search
set ignorecase " Ignore case of searches
set incsearch
set hlsearch " Highlight searches
" # Ident
set tabstop=2
set shiftwidth=2
set smarttab
set expandtab
set autoindent
set smartindent
" # Plugins
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
Plugin 'tpope/vim-surround'
Plugin 'gmarik/vundle'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'mileszs/ack.vim'
Plugin 'Raimondi/delimitMate'
Plugin 'kchmck/vim-coffee-script'
Plugin 'digitaltoad/vim-jade'
Plugin 'tpope/vim-haml'
Plugin 'plasticboy/vim-markdown'
Plugin 'slim-template/vim-slim.git'
Plugin 'wavded/vim-stylus'
call vundle#end()
filetype plugin indent on
" # Configure Plugins
set background=dark
colorscheme solarized
let g:solarized_termcolors=256
set t_Co=256
let g:vim_markdown_folding_disabled=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment