Skip to content

Instantly share code, notes, and snippets.

@o0th
Last active September 22, 2020 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save o0th/d217389a6619ad11d2220b53e9c1f29f to your computer and use it in GitHub Desktop.
Save o0th/d217389a6619ad11d2220b53e9c1f29f to your computer and use it in GitHub Desktop.
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