Created
June 14, 2021 05:26
-
-
Save lotusirous/f37e75225dd543bef0fab49d1b47c9b9 to your computer and use it in GitHub Desktop.
Simple vim configuration for development
This file contains hidden or 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 wildignore+=*.pyc | |
set guicursor= | |
set relativenumber | |
set nohlsearch | |
set hidden | |
set noerrorbells | |
set tabstop=4 softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smartindent | |
set nu | |
set nowrap | |
set noswapfile | |
set nobackup | |
set undodir=~/.vim/undodir | |
set undofile | |
set incsearch | |
set termguicolors | |
set scrolloff=8 | |
" set noshowmode | |
set signcolumn=yes | |
set isfname+=@-@ | |
" set ls=0 | |
" Give more space for displaying messages. | |
set cmdheight=1 | |
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable | |
" delays and poor user experience. | |
set updatetime=50 | |
" Don't pass messages to |ins-completion-menu|. | |
set shortmess+=c | |
set colorcolumn=80 | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'junegunn/vim-easy-align' | |
" themes | |
Plug 'gruvbox-community/gruvbox' | |
" lsp | |
Plug 'neovim/nvim-lspconfig' | |
Plug 'hrsh7th/nvim-compe' | |
" utils | |
Plug 'AndrewRadev/splitjoin.vim' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'jremmen/vim-ripgrep' | |
Plug 'tpope/vim-fugitive' | |
Plug 'simrat39/symbols-outline.nvim' | |
Plug 'mbbill/undotree' | |
call plug#end() | |
colorscheme gruvbox | |
set bg=dark | |
" here is my LSP | |
lua require('khant') | |
" tranparent background | |
highlight Normal ctermbg=NONE guibg=NONE | |
highlight LineNr ctermbg=NONE guibg=NONE | |
highlight SignColumn ctermbg=NONE guibg=NONE | |
" Mapping | |
" | |
nnoremap <C-p> :Files<CR> | |
nnoremap <leader>ps :Rg<CR> | |
if executable('rg') | |
let g:rg_derive_root='true' | |
endif | |
let loaded_matchparen = 1 | |
let mapleader = " " | |
" Disable netrw | |
let g:netrw_browse_split = 0 | |
let g:netrw_banner = 0 | |
let g:netrw_winsize = 25 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment