Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dotfiles/.vimrc
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
90 lines (69 sloc)
1.59 KB
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 shell=/bin/bash | |
let g:python_host_skip_check=1 | |
let g:loaded_python3_provider=1 | |
call plug#begin('~/.vim/plugged') | |
Plug 'ervandew/supertab' | |
Plug 'chriskempson/base16-vim' | |
Plug 'roman/golden-ratio' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'mileszs/ack.vim' | |
Plug 'tpope/vim-eunuch' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-rhubarb' | |
Plug 'google/vim-searchindex' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'w0rp/ale' | |
Plug 'junegunn/vim-peekaboo' | |
Plug 'tpope/vim-surround' | |
Plug 'RRethy/vim-illuminate' | |
Plug 'luochen1990/rainbow' | |
Plug 'preservim/nerdcommenter' | |
call plug#end() | |
set hlsearch | |
set incsearch | |
set showmatch | |
set smartcase | |
set ignorecase | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set autoindent | |
set smarttab | |
set expandtab | |
set background=dark | |
colorscheme base16-default-dark | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
map <C-h> <C-w>h | |
noremap j gj | |
noremap k gk | |
noremap gj j | |
noremap gk k | |
command WQ wq | |
command Wq wq | |
command W w | |
command Q q | |
map q: <Nop> | |
nnoremap Q <nop> | |
let mapleader=" " | |
" The Silver Searcher | |
if executable('ag') | |
" Use ag over grep | |
set grepprg=ag\ --nogroup | |
let g:ackprg = 'ag --vimgrep --nogroup --nocolor' | |
endif | |
let g:ack_autoclose = 1 | |
let g:ackhighlight = 1 | |
cnoreabbrev Ack Ack! | |
nnoremap <Leader>a :Ack!<Space> | |
nnoremap <Leader>s :Ack!<Space><C-r><C-w><Space> | |
highlight link QuickFixLine Normal | |
let g:rainbow_active = 1 | |
set noswapfile | |
let g:NERDCreateDefaultMappings = 0 | |
let g:NERDSpaceDelims = 1 | |
nnoremap <Leader>c :call NERDComment(0,"toggle")<Enter> | |
vnoremap <Leader>c :call NERDComment(0,"toggle")<Enter> |