Last active
July 22, 2020 02:37
-
-
Save bicycle1885/6fe0064141c01e09704b8fd5d0e921d0 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
" General | |
syntax enable | |
set nocompatible | |
set noswapfile | |
if executable("rg") | |
set grepprg=rg\ --vimgrep\ --no-heading | |
set grepformat=%f:%l:%c:%m,%f:%l:%m | |
endif | |
autocmd QuickFixCmdPost * copen | |
nnoremap <silent> <C-n> :cn<CR> | |
nnoremap <silent> <C-p> :cp<CR> | |
" Edit | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
filetype indent on | |
" Navigation | |
let mapleader=" " | |
set backspace=indent,eol,start | |
set cursorline | |
set mouse=a | |
nnoremap j gj | |
nnoremap k gk | |
" Plug-ins | |
call plug#begin('~/.vim/plugged') | |
" General | |
Plug 'tpope/vim-sensible' | |
" Navigation | |
Plug 'Shougo/denite.nvim' | |
Plug 'Shougo/unite.vim' | |
Plug 'Shougo/vimfiler.vim' | |
Plug 'christoomey/vim-tmux-navigator' | |
" Appearance | |
Plug 'itchyny/lightline.vim' | |
Plug 'nanotech/jellybeans.vim' | |
" Languages | |
Plug 'JuliaEditorSupport/julia-vim' | |
Plug 'cespare/vim-toml' | |
Plug 'rust-lang/rust.vim' | |
call plug#end() | |
" Colorscheme and Lightline | |
colorscheme jellybeans | |
let g:lightline = { 'colorscheme': 'jellybeans' } | |
" Denite | |
call denite#custom#alias('source', 'file/rec/git', 'file/rec') | |
call denite#custom#var('file/rec/git', 'command', ['git', 'ls-files', '-co', '--exclude-standard']) | |
nnoremap <silent> <leader>u :Denite buffer `finddir('.git', ';') != '' ? 'file/rec/git' : ''` file/rec<CR> | |
nnoremap <silent> <leader>l :Denite line<CR> | |
" Vimfiler | |
let g:vimfiler_as_default_explorer = 1 | |
nnoremap <silent> <leader>f :VimFiler -buffer-name=vimfiler -split -toggle -no-quit -simple -winwidth=40<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment