Created
October 4, 2021 16:16
-
-
Save A-Programmer/e6c14a2409ce904fb7cc6ed1d326ec05 to your computer and use it in GitHub Desktop.
My .vimrc file
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
let s:using_snippets = 0 | |
call plug#begin('~/.vim/plugged') | |
" Git | |
Plug 'tpope/vim-fugitive' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'junegunn/gv.vim' | |
" Markdown | |
Plug 'nelstrom/vim-markdown-folding' | |
Plug 'dhruvasagar/vim-table-mode' | |
Plug 'junegunn/goyo.vim' | |
" Status | |
Plug 'itchyny/lightline.vim' | |
Plug 'Shougo/context_filetype.vim' | |
Plug 'mustache/vim-mustache-handlebars' | |
" General utils | |
Plug 'tpope/vim-surround' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'ntpeters/vim-better-whitespace' | |
Plug 'Yggdroot/indentLine' | |
Plug 'tyru/caw.vim' " comment plugin | |
Plug 'scrooloose/nerdtree' | |
Plug 'kana/vim-repeat' | |
Plug 'dyng/ctrlsf.vim' | |
Plug 'wesQ3/vim-windowswap' | |
Plug 'embear/vim-localvimrc' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'christoomey/vim-tmux-navigator' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'gerw/vim-HiLinkTrace' | |
" Languages and syntaxes | |
Plug 'posva/vim-vue' | |
Plug 'othree/html5.vim' | |
Plug 'mattn/emmet-vim' | |
" Plug 'ap/vim-css-color' | |
Plug 'digitaltoad/vim-pug' | |
Plug 'iloginow/vim-stylus' | |
Plug 'elzr/vim-json' | |
" JS | |
Plug 'moll/vim-node' | |
Plug 'pangloss/vim-javascript' | |
" Plug 'othree/yajs.vim' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'kevinoid/vim-jsonc' | |
Plug 'vimwiki/vimwiki' | |
Plug 'OmniSharp/omnisharp-vim' | |
Plug 'nickspoons/vim-sharpenup' | |
Plug 'dense-analysis/ale' | |
Plug 'junegunn/fzf' | |
Plug 'junegunn/fzf.vim' | |
Plug 'prabirshrestha/asyncomplete.vim' | |
Plug 'gruvbox-community/gruvbox' | |
Plug 'itchyny/lightline.vim' | |
Plug 'shinchu/lightline-gruvbox.vim' | |
Plug 'maximbaz/lightline-ale' | |
if s:using_snippets | |
Plug 'sirver/ultisnips' | |
endif | |
call plug#end() | |
filetype indent plugin on | |
if !exists('g:syntax_on') | syntax enable | endif | |
set encoding=utf-8 | |
scriptencoding utf-8 | |
set completeopt=menuone,noinsert,noselect,popuphidden | |
set completepopup=highlight:Pmenu,border:off | |
set backspace=indent,eol,start | |
set expandtab | |
set shiftround | |
set shiftwidth=4 | |
set softtabstop=-1 | |
set tabstop=8 | |
set textwidth=80 | |
set title | |
set hidden | |
set nofixendofline | |
set nostartofline | |
set splitbelow | |
set splitright | |
set hlsearch | |
set incsearch | |
set laststatus=2 | |
set number | |
set noruler | |
set noshowmode | |
set signcolumn=yes | |
set mouse=a | |
set updatetime=1000 | |
augroup ColorschemePreferences | |
autocmd! | |
autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE | |
autocmd ColorScheme * highlight SignColumn ctermbg=NONE guibg=NONE | |
autocmd ColorScheme * highlight Todo ctermbg=NONE guibg=NONE | |
autocmd ColorScheme * highlight link ALEErrorSign WarningMsg | |
autocmd ColorScheme * highlight link ALEWarningSign ModeMsg | |
autocmd ColorScheme * highlight link ALEInfoSign Identifier | |
augroup END | |
if has('termguicolors') | |
set termguicolors | |
endif | |
set background=dark | |
colorscheme gruvbox | |
let g:ale_sign_error = '•' | |
let g:ale_sign_warning = '•' | |
let g:ale_sign_info = '·' | |
let g:ale_sign_style_error = '·' | |
let g:ale_sign_style_warning = '·' | |
let g:ale_linters = { 'cs': ['OmniSharp'] } | |
let g:asyncomplete_auto_popup = 1 | |
let g:asyncomplete_auto_completeopt = 0 | |
let g:sharpenup_map_prefix = '<Space>os' | |
let g:sharpenup_statusline_opts = { 'Text': '%s (%p/%P)' } | |
let g:sharpenup_statusline_opts.Highlight = 0 | |
augroup OmniSharpIntegrations | |
autocmd! | |
autocmd User OmniSharpProjectUpdated,OmniSharpReady call lightline#update() | |
augroup END | |
let g:lightline = { | |
\ 'colorscheme': 'gruvbox', | |
\ 'active': { | |
\ 'right': [ | |
\ ['linter_checking', 'linter_errors', 'linter_warnings', 'linter_infos', 'linter_ok'], | |
\ ['lineinfo'], ['percent'], | |
\ ['fileformat', 'fileencoding', 'filetype', 'sharpenup'] | |
\ ] | |
\ }, | |
\ 'inactive': { | |
\ 'right': [['lineinfo'], ['percent'], ['sharpenup']] | |
\ }, | |
\ 'component': { | |
\ 'sharpenup': sharpenup#statusline#Build() | |
\ }, | |
\ 'component_expand': { | |
\ 'linter_checking': 'lightline#ale#checking', | |
\ 'linter_infos': 'lightline#ale#infos', | |
\ 'linter_warnings': 'lightline#ale#warnings', | |
\ 'linter_errors': 'lightline#ale#errors', | |
\ 'linter_ok': 'lightline#ale#ok' | |
\ }, | |
\ 'component_type': { | |
\ 'linter_checking': 'right', | |
\ 'linter_infos': 'right', | |
\ 'linter_warnings': 'warning', | |
\ 'linter_errors': 'error', | |
\ 'linter_ok': 'right' | |
\ } | |
\} | |
let g:lightline#ale#indicator_checking = "\uf110 " | |
let g:lightline#ale#indicator_infos = "\uf129 " | |
let g:lightline#ale#indicator_warnings = "\uf071 " | |
let g:lightline#ale#indicator_errors = "\uf05e " | |
let g:lightline#ale#indicator_ok = "\uf00c " | |
let g:OmniSharp_popup_position = 'peek' | |
if has('nvim') | |
let g:OmniSharp_popup_options = { | |
\ 'winhl': 'Normal:NormalFloat' | |
\} | |
else | |
let g:OmniSharp_popup_options = { | |
\ 'highlight': 'Normal', | |
\ 'padding': [0, 0, 0, 0], | |
\ 'border': [1] | |
\} | |
endif | |
let g:OmniSharp_popup_mappings = { | |
\ 'sigNext': '<C-n>', | |
\ 'sigPrev': '<C-p>', | |
\ 'pageDown': ['<C-f>', '<PageDown>'], | |
\ 'pageUp': ['<C-b>', '<PageUp>'] | |
\} | |
if s:using_snippets | |
let g:OmniSharp_want_snippet = 1 | |
endif | |
let g:OmniSharp_highlight_groups = { | |
\ 'ExcludedCode': 'NonText' | |
\} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment