Skip to content

Instantly share code, notes, and snippets.

@mpokryva
Last active November 3, 2024 22:48
Show Gist options
  • Save mpokryva/c76241d6e3052884bd12f440ccf0c503 to your computer and use it in GitHub Desktop.
Save mpokryva/c76241d6e3052884bd12f440ccf0c503 to your computer and use it in GitHub Desktop.
My .vimrc
set nocompatible " required
filetype off " required
syntax on
set background=dark
set backspace=indent,eol,start
" 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 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
" Plugin 'Valloric/YouCompleteMe'
" ...
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
let g:ycm_autoclose_preview_window_after_completion=1
let g:ycm_key_list_select_completion = ['<TAB>']
let g:ycm_key_list_previous_completion = ['<S-TAB>']
let g:ycm_key_list_stop_completion = ['<C-y>', '<UP>', '<DOWN>']
highlight Pmenu ctermfg=14 ctermbg=238 guifg=#00ffff guibg=#444444
set number
set ruler
" show existing tab with 4 spaces width
set tabstop=2
" when indenting with '>', use 4 spaces width
set shiftwidth=2
" On pressing tab, insert 4 spaces
set expandtab
" Keymappings
:imap <C-d> <C-[>diwi
:map <D-'> <Up>
:imap <D-'> <Up>
:map <D-"> <Down>
:imap <D-"> <Down>
set guifont=Monaco:h15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment