Skip to content

Instantly share code, notes, and snippets.

@hansent
Created July 7, 2011 03:29
Show Gist options
  • Select an option

  • Save hansent/1068858 to your computer and use it in GitHub Desktop.

Select an option

Save hansent/1068858 to your computer and use it in GitHub Desktop.
"gui options
set guioptions-=T
set guioptions-=r " Remove right- and left-hand scrollbars
set guioptions-=L
"set guioptions-=m
"set fuopt+=maxhorz " grow to maximum horizontal width on entering fullscreen mode
:colorscheme zenburn
set number
set expandtab
set tabstop=4
set shiftwidth=4
"function keys
map <F1> :e ~/.vimrc<CR>
map <F2> :ls<CR>
map <F3> :retab <CR> :e<CR>
"map ctrl paste/yank to use system clipboard
map <C-S-p> "+P
map <C-p> "+p
map <C-S-y> "+Y
map <C-y> "+y
filetype plugin indent on
au! BufWritePost .vimrc nested source %
autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,(
autocmd FileType pyrex set complete+=k~/.vim/syntax/python.vim isk+=.,(
au BufNewFile,BufRead *.frag,*.vert,*.fs,*.vs,*.glsl setf glsl
set wildmode=longest:full
set wildmenu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment