Skip to content

Instantly share code, notes, and snippets.

@doliG
Last active February 1, 2018 15:31
Show Gist options
  • Select an option

  • Save doliG/777cdfe6482b5967598bff651e0cc5d7 to your computer and use it in GitHub Desktop.

Select an option

Save doliG/777cdfe6482b5967598bff651e0cc5d7 to your computer and use it in GitHub Desktop.
My vimrc - vim and iTerm2
set nu
syn on
colors desert
set cc=80
highlight ColorColumn ctermbg=235
" Enable copy pasting in multiples vim instances
"
" in short, whenever you select/yank something put it in the clipboard as well
" (not Vim's, but the global keyboard of the window system). That way you
" don't have to think about yanking things into a special register.
" https://stackoverflow.com/questions/9166328/how-to-copy-selected-lines-to-clipboard-in-vim
set guioptions+=a
" Use the same symbols as TextMate for tabstops and EOLs
" Could be used as tab : →
set listchars=tab:→\ ,eol:¬
hi NonText ctermfg=238
hi SpecialKey ctermfg=238
set list
" See colors reference
" https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
set cursorline
hi CursorLine cterm=none ctermbg=234
hi LineNr ctermfg=245
hi CursorLineNr ctermfg=250 ctermbg=234
" Better menu and autocompletion
set wildmenu
set tabstop=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment