Created
March 5, 2012 10:13
-
-
Save ruliana/1977740 to your computer and use it in GitHub Desktop.
My initial vim config
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
set nocompatible | |
" Vundle configuration | |
"====================== | |
filetype off | |
filetype plugin indent on | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Package (plugin) manager | |
Bundle 'gmarik/vundle' | |
" Easier way to navigate far from you are | |
" <leader><leader><motion> | |
Bundle 'Lokaltog/vim-easymotion' | |
" Add, change or remove surround chars or tags | |
"ys<motion>) Add surrounding parenthesis | |
"cs)] Change surrounding parenthesis to brackets | |
"ds) Remove surrounding parenthesis | |
Bundle 'tpope/vim-surround' | |
" Easy buffer switcher | |
" <leader>lj choose a buffer | |
" requires Ruby installed | |
"Bundle 'mutewinter/LustyJuggler' | |
" Uses '%' to match more than the usual | |
Bundle 'mirell/vim-matchit' | |
" Align helper (good for tables with '|') | |
" visually select lines then type (<separator> can be a vertical bar): | |
" :Align<separator> | |
Bundle 'Align' | |
Bundle 'hoffstein/vim-tsql' | |
let g:sql_type_default="sqlserver" | |
" Look and feel | |
"=============== | |
colorscheme murphy | |
set relativenumber | |
" Show unwanted spaces | |
set list listchars=tab:»·,trail:· | |
" Incremental search | |
set incsearch | |
set hlsearch | |
" Clear search highlights | |
nnoremap <C-L> :nohls<CR><C-L> | |
inoremap <C-L> <C-O>:nohls<CR> | |
" Indentation | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set autoindent | |
" Key mappings | |
"-------------- | |
let mapleader = "," | |
" Behavior Fixes | |
"================ | |
" Mouse works on terminal | |
set mouse=a | |
set ttymouse=xterm2 | |
" Change buffers without saving | |
set hidden | |
" Make Y consistent with C and D | |
nnoremap Y y$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment