vim-castle/home/.vimrc

76 lines
2.0 KiB
VimL
Raw Normal View History

2015-01-14 23:28:12 +00:00
call pathogen#infect()
set noai
set vb
set binary noeol
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set ruler
set incsearch
set hlsearch
set backspace=indent,eol,start
set nocompatible
set nobackup
colorscheme zellnerbrb
hi ErrorMsg term=standout cterm=bold ctermfg=9 ctermbg=9
hi WarningMsg term=standout cterm=bold ctermfg=1 guifg=Black
2015-01-14 23:28:12 +00:00
syntax on
filetype plugin on
2015-03-31 12:44:40 +00:00
filetype indent off
2015-01-14 23:28:12 +00:00
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
au BufRead *.html set filetype=htmlm4
au BufRead *.md set filetype=markdown
set laststatus=2
syntax enable
set background=dark
2015-02-23 01:32:40 +00:00
set mouse=
2015-01-14 23:28:12 +00:00
let g:airline_powerline_fonts = 1
if filereadable(glob("./.vimrc.local"))
source ./.vimrc.local
endif
nnoremap Q <nop>
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](\.git|build)$',
\ }
" Vimwiki {{
2015-03-31 12:44:40 +00:00
let g:vimwiki_list = [{'path': '~/Dropbox/Documents/vimwiki/vimwiki', 'path_html': '~/Dropbox/Documents/vimwiki/vimwiki_html/', 'auto_export':'1'}]
2015-01-14 23:28:12 +00:00
nnoremap <Leader>wb :Vimwiki2HTMLBrowse<CR><CR>
" }}
" Gist {{
let g:gist_detect_filetype = 1
let g:gist_open_browser_after_post = 1
let g:gist_post_private = 1
" }}
2015-01-22 15:07:51 +00:00
" json Formatting {{
nmap <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
let g:vim_json_syntax_conceal = 0
" }}
2015-02-05 00:03:08 +00:00
" Scratch File {{
nmap <leader>sc :Scratch<CR>
nmap <leader>cc :Sscratch<CR>
" }}
2015-06-04 15:13:29 +00:00
let g:netrw_sort_sequence='[\/]$,\.[a-np-z]$,main.go$,[^main]\.go$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$'
" now set it up to change the status line based on mode
au InsertEnter * hi StatusLine term=reverse ctermbg=5 gui=undercurl guisp=Magenta
au InsertLeave * hi StatusLine term=reverse ctermfg=0 ctermbg=2 gui=bold,reverse
vmap v <Plug>(expand_region_expand)
vmap <C-v> <Plug>(expand_region_shrink)
2015-09-16 14:24:48 +00:00
set rtp+=$GOPATH/src/github.com/golang/lint/misc/vim
autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow
" Use `goimports` instead of `gofmt`
let g:go_fmt_command = "goimports"