Last active
October 13, 2016 16:44
-
-
Save tobbe11/20bfa1ef1fdf2ae378cf to your computer and use it in GitHub Desktop.
myvimrc
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
| " https://github.com/junegunn/vim-plug && git | |
| " curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| " https://github.com/monochromegane/the_platinum_searcher | |
| " http://ctags.sourceforge.net/ | |
| "set makeprg=make | |
| if has('win32') | |
| source $VIMRUNTIME/mswin.vim | |
| set guifont=Lucida_Console:h8:cANSI | |
| set noshellslash | |
| nnoremap <C-F6> :exec '!start cmd /c '.getline('.')<CR> | |
| "set makeprg=d:/prg/tdm-gcc32/bin/mingw32-make | |
| let $PATH .= ';'.$VIM.'/../bin/' " paths to ctags, pt | |
| let $HOME = $USERPROFILE | |
| set lines=80 columns=100 | |
| endif | |
| nnoremap <F5> :w<CR> :silent make<CR> | |
| inoremap <F5> <Esc>:w<CR>:silent make<CR> | |
| vnoremap <F5> :<C-U>:w<CR>:silent make<CR> | |
| nmap <F8> :TagbarToggle<CR> | |
| call plug#begin(expand($VIM.'/plugged')) | |
| "Plug 'Shougo/vimproc.vim', {'do' : 'make'} | |
| Plug 'Shougo/vimproc.vim' | |
| Plug 'Shougo/unite.vim' | |
| Plug 'altercation/vim-colors-solarized' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'tpope/vim-fugitive' | |
| Plug 'tpope/vim-surround' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' | |
| Plug 'majutsushi/tagbar' | |
| Plug 'hrj/vim-DrawIt' | |
| Plug 'SirVer/ultisnips' | |
| Plug 'honza/vim-snippets' | |
| Plug 'scrooloose/syntastic' | |
| Plug 'easymotion/vim-easymotion' | |
| Plug 'mhinz/vim-startify' | |
| Plug 'crusoexia/vim-monokai' | |
| Plug 'vim-voom/VOoM' | |
| call plug#end() | |
| let mapleader = "," | |
| let maplocalleader = "," | |
| " Unite | |
| nnoremap <silent> <Leader>g :<C-u>Unite grep:. -buffer-name=search-buffer<CR> | |
| if executable('pt') | |
| let g:unite_source_grep_command = 'pt' | |
| let g:unite_source_grep_default_opts = '--nogroup --nocolor' | |
| let g:unite_source_grep_recursive_opt = '' | |
| let g:unite_source_grep_encoding = 'utf-8' | |
| endif | |
| nnoremap <Leader>/ :Unite grep:.<cr> | |
| nnoremap <Leader>f :Unite file_rec<CR> | |
| nnoremap <Leader>y :Unite history/yank<CR> | |
| " Syntastic | |
| set statusline+=%#warningmsg# | |
| set statusline+=%{SyntasticStatuslineFlag()} | |
| set statusline+=%* | |
| let g:syntastic_always_populate_loc_list = 1 | |
| let g:syntastic_auto_loc_list = 1 | |
| let g:syntastic_check_on_open = 1 | |
| let g:syntastic_check_on_wq = 0 | |
| set encoding=utf-8 | |
| set cursorline | |
| syntax on | |
| set hlsearch | |
| set hidden | |
| nnoremap <S-F12> :bN<CR> | |
| nnoremap <F12> :bn<CR> | |
| noremap Q :quit<CR> | |
| set listchars=tab:»·,trail:· | |
| set cindent | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set wildmenu | |
| set lazyredraw | |
| set smarttab | |
| set autoindent | |
| set smartindent | |
| set scrolloff=4 | |
| set linespace=0 | |
| set laststatus=2 | |
| set ignorecase | |
| set smartcase | |
| set spelllang=sv,en | |
| set autochdir | |
| set modeline | |
| set nobackup | |
| set noswapfile | |
| "set dir=c:\\tmp,c:\\temp | |
| " set vimcrypt to use Blowfish encryption | |
| set cm=blowfish2 | |
| " absolute line numbers in insert mode, relative otherwise for easy movement | |
| "au InsertEnter * :set nu | |
| "au InsertLeave * :set rnu | |
| "set rnu | |
| "colors zellner | |
| " The smash escape | |
| inoremap jkj <Esc> | |
| "set background=light | |
| colorscheme monokai "solarized | |
| autocmd BufNewFile,BufReadPost *.md set filetype=markdown | |
| autocmd Filetype markdown nnoremap <buffer> <F8> :Voom markdown<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment