Created
June 26, 2014 12:59
-
-
Save ybur-yug/c1b70861e09022c0488d to your computer and use it in GitHub Desktop.
my .vimrc
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
"vundle stuff | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'rking/ag.vim' | |
Bundle 'bling/vim-airline' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'heartsentwined/vim-emblem' | |
Bundle 'tnoda/rcodetools' | |
filetype plugin indent on | |
"airline stuff | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#show_buffers = 0 | |
let g:airline#extensions#tabline#tab_min_count = 2 | |
"syntax highlighting | |
colorscheme pablo | |
syntax on | |
au BufReadPost *.hbs set syntax=html | |
set hlsearch | |
"line numbers | |
set nu | |
"tabbing | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set autoindent | |
set smartindent | |
"backspace key | |
set backspace=2 | |
":e autocomplete settings | |
set wildmenu | |
set wildmode=longest:list,full | |
"format the statusline | |
set laststatus=2 | |
"My Custom Mappings | |
nmap <Right> <C-W>l | |
nmap <Left> <C-W>h | |
nmap <Up> <C-W>k | |
nmap <Down> <C-W>j | |
nmap ,f :Ag<space> | |
nmap ,e <C-E> | |
nmap ,p <C-P> | |
nmap ,t <C-P> | |
"file tree | |
function! ToggleVExplorer() | |
if exists("t:expl_buf_num") | |
let expl_win_num = bufwinnr(t:expl_buf_num) | |
if expl_win_num != -1 | |
let cur_win_nr = winnr() | |
exec expl_win_num . 'wincmd w' | |
close | |
exec cur_win_nr . 'wincmd w' | |
unlet t:expl_buf_num | |
else | |
unlet t:expl_buf_num | |
endif | |
else | |
exec '1wincmd w' | |
Vexplore | |
let t:expl_buf_num = bufnr("%") | |
endif | |
endfunction | |
map <silent> <C-E> :call ToggleVExplorer()<CR> | |
let g:netrw_browse_split = 4 | |
let g:netrw_altv = 1 | |
let g:netrw_liststyle = 3 | |
"gvim options | |
if has("gui_running") | |
"remove scrollbars | |
set guioptions-=l | |
set guioptions-=L | |
set guioptions-=r | |
set guioptions-=b | |
"set colors and fonts | |
set guifont=Meslo\ LG\ S\ Regular\ for\ Powerline | |
set transparency=15 | |
"airline stuff | |
let g:airline_powerline_fonts = 1 | |
endif | |
nmap <buffer> <F4> <Plug>(xmpfilter-run) | |
xmap <buffer> <F4> <Plug>(xmpfilter-run) | |
imap <buffer> <F4> <Plug>(xmpfilter-run) | |
nmap <buffer> <F3> <Plug>(xmpfilter-mark) | |
xmap <buffer> <F3> <Plug>(xmpfilter-mark) | |
imap <buffer> <F3> <Plug>(xmpfilter-mark) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment