Last active
May 3, 2021 20:48
-
-
Save josiah-wolf-oberholtzer/a614e2e3cacf8ad785dc33751e18765c to your computer and use it in GitHub Desktop.
vim
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
[submodule "pack/vendor/start/ctrlp.vim"] | |
path = pack/vendor/start/ctrlp.vim | |
url = https://github.com/ctrlpvim/ctrlp.vim | |
[submodule "pack/vendor/start/nerdtree-git-plugin"] | |
path = pack/vendor/start/nerdtree-git-plugin | |
url = https://github.com/Xuyuanp/nerdtree-git-plugin | |
[submodule "pack/vendor/start/nerdtree"] | |
path = pack/vendor/start/nerdtree | |
url = https://github.com/scrooloose/nerdtree | |
[submodule "pack/vendor/start/syntastic"] | |
path = pack/vendor/start/syntastic | |
url = https://github.com/vim-syntastic/syntastic | |
[submodule "pack/vendor/start/vim-airline"] | |
path = pack/vendor/start/vim-airline | |
url = https://github.com/vim-airline/vim-airline | |
[submodule "pack/vendor/start/vim-fugitive"] | |
path = pack/vendor/start/vim-fugitive | |
url = https://github.com/tpope/vim-fugitive | |
[submodule "pack/vendor/start/vim-gitgutter"] | |
path = pack/vendor/start/vim-gitgutter | |
url = https://github.com/airblade/vim-gitgutter |
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
" ======== | |
" preamble | |
" ======== | |
filetype indent on | |
filetype plugin on | |
let mapleader = "," | |
syntax on | |
autocmd BufWritePost * GitGutter | |
autocmd FileType javascript setlocal ts=2 sts=2 sw=2 | |
autocmd FileType javascriptreact setlocal ts=2 sts=2 sw=2 | |
" ======== | |
" settings | |
" ======== | |
set backspace=2 | |
set clipboard^=unnamed | |
set expandtab | |
set grepformat=%f:%l:%c:%m | |
set grepprg=ack\ --nogroup\ --column\ --ignore-dir=build\ $* | |
set incsearch | |
set magic | |
set nobackup | |
set noswapfile | |
set nowrap | |
set nowritebackup | |
set nu | |
set scrolloff=7 | |
set shiftwidth=4 | |
set showmatch | |
set smartcase | |
set softtabstop=4 | |
set tabstop=4 | |
set wildmode=list:longest | |
" ======== | |
" mappings | |
" ======== | |
" window navigation | |
map <c-j> <c-w>j | |
map <c-k> <c-w>k | |
map <c-l> <c-w>l | |
map <c-h> <c-w>h | |
" indentation | |
vnoremap < <gv | |
vnoremap > >gv | |
" remove trailing whitespace | |
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR> | |
" ======= | |
" plugins | |
" ======= | |
" ctrlp | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_working_path_mode = 0 | |
let g:loaded_matchparen=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment