Skip to content

Instantly share code, notes, and snippets.

@oxUnd
Last active December 16, 2025 02:10
Show Gist options
  • Select an option

  • Save oxUnd/d0caa2723c3bd55bee7774535ca2d5a9 to your computer and use it in GitHub Desktop.

Select an option

Save oxUnd/d0caa2723c3bd55bee7774535ca2d5a9 to your computer and use it in GitHub Desktop.
" Disable compatibility with vi
set nocompatible
set signcolumn=yes " aways show signcolumn
" Enable file type detection
filetype on
filetype plugin on
filetype indent on
" Turn on syntax highlighting
syntax on
" Display line numbers
set number
" Highlight cursor line and column
set cursorline
" set cursorcolumn
highlight CursorColumn ctermbg=yellow guibg=yellow
highlight Cursor ctermfg=white ctermbg=black guifg=white guibg=black
" Set tab and shift width to 4 spaces
set shiftwidth=2
set tabstop=2
set expandtab
" Disable backup files
set nobackup
" Set scroll offset and disable line wrapping
set scrolloff=10
set nowrap
" Enable incremental search and ignore case
set incsearch
set ignorecase
set smartcase
" Show partial commands and mode
set showcmd
set showmode
" Highlight search matches
set hlsearch
" Increase command history size
set history=1000
" Enable wildmenu for auto-completion
set wildmenu
set wildmode=list:longest
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
" Clear status line
set statusline=
" Left side of status line
set statusline+=%F\ %M\ %Y\ %R
" Divider
set statusline+=%=
" Right side of status line
set statusline+=ascii:\ %b\ hex:\ 0x%B\ row:\ %l\ col:\ %c\ percent:\ %p%%
" Show status line on the second to last line
set laststatus=2
" color scheme
colorscheme industry
colorscheme retrobox
call plug#begin('~/.vim/plugged')
Plug 'dense-analysis/ale'
Plug 'preservim/nerdtree'
Plug 'tpope/vim-surround'
Plug 'ycm-core/YouCompleteMe', { 'do' : 'python3 ./install.py --clangd-completer' }
Plug 'preservim/tagbar'
call plug#end()
" ycm
let g:ycm_confirm_extra_conf = 0
let g:ycm_clangd_binary_path = '/usr/sbin/clangd'
let g:ycm_clangd_args = ['--background-index', '--clang-tidy', '--completion-style=detailed', '--pch-storage=memory']
@oxUnd
Copy link
Author

oxUnd commented Oct 7, 2025

screenshot-2025-10-07_12-33-53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment