Last active
September 22, 2020 07:11
-
-
Save o0th/d217389a6619ad11d2220b53e9c1f29f to your computer and use it in GitHub Desktop.
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
call plug#begin('~/.vim/plugged') | |
Plug 'dracula/vim', { 'name': 'dracula' } | |
Plug 'tpope/vim-fugitive' | |
Plug 'vim-airline/vim-airline' | |
Plug 'scrooloose/nerdtree' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'editorconfig/editorconfig-vim' | |
call plug#end() | |
" neovim: enable true colors | |
set termguicolors | |
" vim-airline: setting airline theme | |
let g:airline_theme = 'dracula' | |
let g:airline_powerline_fonts = 1 | |
" neovim: setting theme | |
colorscheme dracula | |
set background=dark | |
" neovim: show line number column | |
set number | |
" vim-gitgutter: show always diff column | |
set signcolumn=yes | |
" vim-gitgutter: reduce updating time | |
set updatetime=100 | |
" neovim: highlight current line | |
set cursorline | |
" move line up, down (shift + up/ shift + down) | |
nnoremap <S-Up> :m-2<CR> | |
nnoremap <S-Down> :m+<CR> | |
inoremap <S-Up> <Esc>:m-2<CR> | |
inoremap <S-Down> <Esc>:m+<CR> | |
" auto close brackets | |
inoremap " ""<left> | |
inoremap ' ''<left> | |
inoremap ( ()<left> | |
inoremap [ []<left> | |
inoremap { {}<left> | |
inoremap {<CR> {<CR>}<ESC>O | |
inoremap {;<CR> {<CR>};<ESC>O | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment