Skip to content

Instantly share code, notes, and snippets.

@pocc
Last active July 23, 2018 17:17
Show Gist options
  • Save pocc/bd0d1c68b41526a9501ab5a9477f95f2 to your computer and use it in GitHub Desktop.
Save pocc/bd0d1c68b41526a9501ab5a9477f95f2 to your computer and use it in GitHub Desktop.
Original vimrc
" Ross Jacobs' original .vimrc
" VUNDLE
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'vimwiki/vimwiki'
Plugin 'bling/vim-airline'
"Plugin 'tbabej/taskwiki'
"Plugin 'teranex/vimwiki-tasks'
"Plugin 'tpope/vim-surround'
"Plugin 'ervandew/supertab'
"Plugin 'scrooloose/nerdtree'
"Plugin 'scrooloose/syntastic'
"Plugin 'kien/ctrlp.vim'
"Plugin 'tomtom/tcomment_vim'
"Plugin 'easymotion/vim-easymotion'
"Plugin 'itchyny/calendar.vim'
Plugin 'wikitopian/hardmode'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins;
" append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo;
" append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins;
" append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" Vim Settings
set number
set nowrap
set tabstop=4 shiftwidth=0
color koehler
" set so=30 " Makes it so that search goes to middle
set ic "ignorecase for search
set dictionary=/usr/share/dict/words " Set user dictionary to default
"autocmd bufwritepost .vimrc source $MYVIMRC
"(works except for it taking 60s to save)
" Highlight extra whitespace as red
:highlight ExtraWhitespace ctermbg=red guibg=red
:match ExtraWhitespace /\s\+$/
" Undo Settings
set undofile " Save undo's after file closes
set undodir=$HOME/.vim/undo " where to save undo histories
set undolevels=1000000 " How many undos
set undoreload=10000000 " number of lines to save for undo
" Key mappings and commands
map <F1> :VWS /\[>\]/<Esc>
map <F2> :VWS /;;;/<Esc>
map <F3> I* [ ] <Esc><CR>
map <F4> I= <C-R>=expand("%:t:r")<Esc> =<CR><CR><CR><CR><CR>==
map <F5> I=== <C-R>=strftime("%y-%m-%d")<Esc> ===<Esc>
map <F8> I= <C-R>=expand("%:t:r")<Esc> =
\<CR><CR><CR><CR><CR>== TEMPORAL STORY ==<CR>
\<CR><CR>=== Beginning ===
\<CR><CR>=== History ===
\<CR><CR>=== Timestamp ===
\<CR><CR>=== Future ===
\<CR><CR>=== End ===
\<CR><CR><CR><CR><CR><CR><CR>== FUNCTIONAL STORY ==<CR>
\<CR><CR>=== Inputs ===
\<CR><CR>=== Outputs ===
\<CR><CR><CR><CR><CR><CR><CR>== IDENTITY STORY ==<CR>
\<CR><CR>=== Components ===
\<CR><CR>=== Differentiation ===
\<CR><CR>=== Relationships with other Entities ===
" Insert link for vimwiki and follow
map <C-X> A ;;;<Esc>^/]<CR>
map <C-C> :s/ ;;;//<CR>^/]<CR>
map <C-V> 0:s/\[ \]/\[>\]/<CR>
map <C-B> 0:s/\[ \]/\[<\]/<CR>
set timeoutlen=500
map gb :w<CR>
map s `X
map S `Y
map gr `Z
map cc `Z
map gw $?*<CR>2li[[<Esc>g_a]]<Esc>
map gW $?*<CR>2li[[<Esc>g_a]]<Esc><CR><F4>2o
map cd <<
imap cd <C-D>
map cf >>
imap cf <C-T>
map z/ 4zl
imap z/ 4zl
map z; :set nonumber<CR>zszt
imap z; <Esc>:set nonumber<CR>lzszti
map g; <C-Space>
map gH <C-Left>
map gJ <C-Down>
map gK <C-Up>
map gL <C-Right>
map gh <Left>
map gj <Down>
map gk <Up>
map gl <Right>
" Dictionary autocomplete
imap gx <C-X><C-K>
imap jj <Esc>
imap jk <Esc>`
"Vimwiki settings
set nocompatible
filetype plugin on
syntax on
let mapleader=","
" vimwiki stuff "
" Run multiple wikis "
" 1 Network+
" 2
" 3
" 4
" 5
let g:vimwiki_list = [
\{'path': '~/.vimwiki/focus.wiki'},
\{'path': '~/.vimwiki/personal.wiki'},
\{'path': '~/.vimwiki/markdown', 'path_html': '~/html', 'syntax': 'markdown', 'ext': '.md', 'custom_wiki2html': '/home/ross/.vim/misaka_md2html.py', 'auto_export': 1},
\{'path': '~/.vimwiki/ltest', 'path_html': '~/html', 'syntax': 'markdown', 'ext': '.md', 'css_file': '~/.vim/autoload/vimwiki/sytle.css', 'custom_wiki2html': '/home/ross/.vim/misaka_md2html.py', 'auto_export': 1},
\]
au BufRead,BufNewFile *.wiki set filetype=vimwiki
set nocompatible
filetype plugin on
syntax on
" VimWiki Folding
set foldlevelstart=20
set fdm=syntax
set fde=0
set fmr={{{,}}}
set fdi=#
set fdl=0
set fml=1
set fdn=20
" set foldmethod=marker
" Space to fold and unfold
nnoremap <space> za
"let g:vimwiki_folding='list'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment