Skip to content

Instantly share code, notes, and snippets.

@K0HAX
Created September 25, 2014 18:43
Show Gist options
  • Save K0HAX/26f0cdd807e0a4db387c to your computer and use it in GitHub Desktop.
Save K0HAX/26f0cdd807e0a4db387c to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-pathogen'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-fugitive'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'vim-scripts/TwitVim'
Bundle 'vim-scripts/gitignore.vim'
Bundle 'jamessan/vim-gnupg'
Bundle 'scrooloose/nerdtree'
Bundle 'xolox/vim-misc'
Bundle 'xolox/vim-session'
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
Bundle 'Shougo/vimproc'
Bundle 'Shougo/vimshell'
Bundle 'scrooloose/syntastic'
call vundle#end()
execute pathogen#infect()
" I like syntax highlighting
syntax on
" Automatic indents
filetype plugin indent on
set smartindent
set background=dark
set autoread
set ruler
set switchbuf=useopen
colorscheme torte
set backspace=indent,eol,start
set shiftwidth=4 tabstop=4 softtabstop=4
set expandtab
" Clear highlighting by pressing <CR> in command mode after a search
noremap <CR> :noh<CR><CR>
nnoremap <F12> "=strftime("%c")<CR>P
inoremap <F12> <C-R>=strftime("%c")<CR>
nnoremap <F5> :w<CR><CR>
inoremap <F5> <C-R>:w<CR><CR>
map <C-n> :NERDTreeToggle<CR>
map <C-h> :tabprevious<CR>
map <C-l> :tabnext<CR>
"nnoremap <F6> :wq<CR><CR>
"inoremap <F6> <C-R>:wq<CR><CR>
" super sudo write
cno w!! w !sudo tee % >/dev/null
" GPG Section
let g:GPGPreferArmor=1
let g:GPGPreferSign=1
augroup GnuPGExtra
autocmd BufReadCmd,FileReadCmd *.\(gpg\|asc\|pgp\) call SetGPGOptions()
" autocmd CursorHold *.\(gpg\|asc\|pgp\) quit
augroup END
function SetGPGOptions()
set updatetime=60000
set foldmethod=marker
set foldclose=all
set foldopen=insert
endfunction
:let g:session_autosave = 'yes'
:let g:session_autoload = 'yes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment