Created
December 27, 2016 05:54
-
-
Save vihanb/82c95107262cdac29172669a57495a1f to your computer and use it in GitHub Desktop.
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
set nocompatible | |
filetype off | |
execute pathogen#infect() | |
" Vundle | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'tpope/vim-surround' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'rust-lang/rust.vim' | |
Plugin 'crusoexia/vim-monokai' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'godlygeek/csapprox' | |
Plugin 'ararslan/license-to-vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Nopik/vim-nerdtree-direnter' | |
Plugin 'toyamarinyon/vim-swift' | |
Plugin 'cheddar-lang/cheddar.vim' | |
Plugin 'leafgarland/typescript-vim' | |
Plugin 'floobits/floobits-neovim' | |
call vundle#end() | |
filetype plugin indent on | |
" Coloring / Themes | |
" let g:solarized_termcolors=256 | |
syntax on | |
set background=dark | |
colorscheme monokai | |
let g:airline_theme='powerlineish' | |
filetype plugin on | |
" Plugin Specific Config | |
let g:license_author = 'Vihan' | |
let g:license_email = 'contact@vihan.org' | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_powerline_fonts = 1 | |
" TS | |
autocmd FileType typescript setlocal completeopt=menu,longest,menuone | |
let g:tsuquyomi_disable_quickfix = 1 | |
let g:syntastic_typescript_checkers = ['tsuquyomi'] | |
" Syntastic | |
" let g:syntastic_always_populate_loc_list = 1 | |
" let g:syntastic_auto_loc_list = 1 | |
" let g:syntastic_check_on_open = 1 | |
" let g:syntastic_check_on_wq = 0 | |
" Spacing | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set autoindent | |
" Syntax Highlighitng | |
autocmd BufRead *.es6 set ft=javascript | |
autocmd BufRead *.cdr set ft=javascript | |
" Various settings | |
set nu | |
set laststatus=2 | |
set clipboard=unnamed | |
set mouse=a | |
set autoindent | |
set fileencoding=utf8 | |
set guifont=Meslo\ LG\ M\ for\ Powerline:h12 | |
set backspace=indent,eol,start | |
" Remap Buffer switching | |
noremap <silent> fr :bn<cr> | |
noremap <silent> fR :bp<cr> | |
noremap <silent> fd :bp \| bd #<cr> | |
" Remap insert mode jumping | |
inoremap <C-e> <C-o>$ | |
inoremap <C-l> <C-o>o | |
" Remap undo | |
inoremap <C-z> <esc>:u<cr>i | |
nnoremap <C-z> <esc>:u<cr>i | |
" Remap :noh | |
nnoremap <Bslash> :noh<cr> | |
" Remap p to not copy | |
xnoremap p "_dP | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
let g:airline_symbols.space = "\ua0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment