Skip to content

Instantly share code, notes, and snippets.

@arysom
Created September 27, 2019 21:50
Show Gist options
  • Select an option

  • Save arysom/cf6c1d164ac028a71579004bbb86115a to your computer and use it in GitHub Desktop.

Select an option

Save arysom/cf6c1d164ac028a71579004bbb86115a to your computer and use it in GitHub Desktop.
custom vim configuration for amix vimrc - ultimate vim configuration
set guifont=IBM\ Plex\ Mono\ 17
colo gruvbox
syntax on
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
set nocompatible " not compatible with the old-fashion vi mode
set bs=2 " allow backspacing over everything in insert mode
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set cursorline
"set autoread " auto read when file is changed from outside
set nu " show line numbers
set hlsearch " search highlighting
" auto reload vimrc when editing it
" autocmd! bufwritepost .vimrc source ~/.vimrc
set clipboard=unnamed " yank to the system register (*) by default
set showmatch " Cursor shows matching ) and }
set showmode " Show current mode
set wildchar=<TAB> " start wild expansion in the command line using <TAB>
set wildmenu " wild char completion menu
" ignore these files while expanding wild chars
set wildignore=*.o,*.class,*.pyc
set autoindent " auto indentation
set incsearch " incremental search
set dir=~/.vim/tmp " tell vim where to put swap files
set copyindent " copy the previous indentation on autoindenting
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,case-sensitive otherwise
set smarttab " insert tabs on the start of a line according to context
" disable sound on errors
" TAB setting{
set expandtab "replace <TAB> with spaces
set softtabstop=4
set shiftwidth=4
set noerrorbells
set novisualbell
set t_vb=
" set tm=500
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
set guioptions-=L "remove left-hand scroll bar
" au GUIEnter * simalt ~x "maxminze windowns
"find snippets
nmap <Leader>es :Ve ~/.vim/bundle/vim-snippets/snippets<CR>
"clear search highlight
nnoremap <silent> <esc> :noh<cr><esc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment