Created
May 15, 2014 01:25
-
-
Save porjo/17a596efd160217c9ba7 to your computer and use it in GitHub Desktop.
vimrc 2014-05-15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
nnoremap <C-n> :tabnext<CR> | |
nnoremap <C-p> :tabprevious<CR> | |
nnoremap <C-w>t :tabnew<CR> | |
set number | |
set smartindent | |
set autoindent | |
set ruler | |
"set nowrap | |
"set expandtab | |
"set tabstop=4 | |
"set shiftwidth=4 | |
"highlight the end of long lines | |
"match Error /\%>77v.*/ | |
"required for JS indent plugin | |
set foldmethod=syntax | |
"set foldlevelstart=1 | |
"set foldnestmax=2 | |
set foldnestmax=1 | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" " required! | |
Bundle "gmarik/vundle" | |
Bundle "Blackrush/vim-gocode" | |
Bundle "pangloss/vim-javascript" | |
Bundle "ervandew/supertab" | |
Bundle "nanotech/jellybeans.vim" | |
Bundle "indenthtml.vim" | |
Bundle "groenewege/vim-less" | |
Bundle "scrooloose/syntastic" | |
colorscheme jellybeans | |
" Override jellybeans background and make it transparent | |
hi Normal ctermbg=none | |
filetype plugin indent on | |
let g:SuperTabDefaultCompletionType = "context" | |
let g:SuperTabContextDefaultCompletionType = "<C-X><C-O>" | |
let g:html_indent_inctags = "tabset,tab,tab-heading,accordion,accordion-heading,accordion-group" | |
let php_folding=1 | |
let g:go_fmt_autofmt = 0 | |
"let javaScript_fold=1 | |
" Don't screw up folds when inserting text that might affect them, until | |
" leaving insert mode. Foldmethod is local to the window. Protect against | |
" screwing up folding when switching between windows. | |
autocmd InsertEnter * if !exists('w:last_fdm') | let w:last_fdm=&foldmethod | setlocal foldmethod=manual | endif | |
autocmd InsertLeave,WinLeave * if exists('w:last_fdm') | let &l:foldmethod=w:last_fdm | unlet w:last_fdm | endif | |
" Set tab stop per file type | |
autocmd Filetype javascript setlocal ts=4 sts=4 sw=4 | |
" Go fmt on save | |
au FileType go au BufWritePre <buffer> Fmt | |
" Fix key mapping inside screen sessions | |
if $TERM =~ '^screen-256color' | |
map <Esc>OH <Home> | |
map! <Esc>OH <Home> | |
map <Esc>OF <End> | |
map! <Esc>OF <End> | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment