Skip to content

Instantly share code, notes, and snippets.

@Attractadore
Last active December 22, 2022 19:15
Show Gist options
  • Select an option

  • Save Attractadore/37b01f0f5d3a5b41f22814e61cf64ed5 to your computer and use it in GitHub Desktop.

Select an option

Save Attractadore/37b01f0f5d3a5b41f22814e61cf64ed5 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'beyondmarc/hlsl.vim'
Plugin 'lyokha/vim-xkbswitch'
Plugin 'sheerun/vim-polyglot'
Plugin 'tibabit/vim-templates'
Plugin 'tpope/vim-sleuth'
Plugin 'ycm-core/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
set noswapfile
set directory=~/.vim/swapfiles
set softtabstop=4
set shiftwidth=4
set expandtab
set number
set nowrap
set hidden
let g:ycm_semantic_triggers = {'c,cpp': [ 're!\w{3}', '_' ],}
let g:ycm_clangd_args = ['--header-insertion=never']
set completeopt+=popup
syntax on
colo molokai
au BufNewFile,BufRead *.clc set filetype=opencl
let g:tmpl_search_paths = ['~/.vim/templates']
let g:XkbSwitchEnabled = 1
" Highlight trailing spaces
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
set spell spelllang=en_us,ru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment