Vim tweaks

This commit is contained in:
Michael Campagnaro 2015-10-16 01:10:05 -04:00
parent af12912808
commit 397ff6fda8
4 changed files with 66 additions and 16 deletions

@ -1 +1 @@
Subproject commit cfd3b2d388a8c2e9903d7a9d80a65539aabfe933 Subproject commit 0ee36b26e127cda512a8f2852a59e5a5f374c87f

View File

@ -13,3 +13,57 @@ ctx
playlist playlist
API API
Junos Junos
signage
stylesheet
CSS
SCSS
ClojureScript
app
dev
env
Figwheel
REPL
cljs
clj
interop
homebrew
OSX
readline
Clojure
CLI
cljsbuild
PhantomJS
IndexedDB
config
Heroku
uberjar
buildpack
Gemfile
Github
namespace
func
fn
idx
arg
img
inline
Facebook
viewership
MLB
Gamification
gamification
timestamp
enqueuing
renderable
perf
playlist's
namespaced
middleware
TODO
app's
db
apps
schemas
multimethod
defmethod
devcards

Binary file not shown.

26
vimrc
View File

@ -11,10 +11,8 @@ filetype off
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin() call vundle#begin()
" Plugins go here " Let Vundle manage itself.
" Plugin 'VundleVim/Vundle.vim'
" Let Vundle manage itself
Plugin 'gmarik/Vundle.vim'
Plugin 'mattn/webapi-vim' " Required by gist-vim Plugin 'mattn/webapi-vim' " Required by gist-vim
Plugin 'mattn/gist-vim' Plugin 'mattn/gist-vim'
@ -42,10 +40,6 @@ Plugin 'guns/vim-clojure-highlight'
Plugin 'guns/vim-clojure-static' Plugin 'guns/vim-clojure-static'
Plugin 'tpope/vim-fireplace' Plugin 'tpope/vim-fireplace'
" Plugins
Plugin 'jpalardy/vim-slime'
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line
call vundle#end() call vundle#end()
@ -149,9 +143,9 @@ imap <right> <nop>
map <Leader>bb :!bundle install<cr> map <Leader>bb :!bundle install<cr>
map <leader>gs :Gstatus<CR> map <leader>gs :Gstatus<CR>
map <leader>gw :!git add . && git commit -m 'WIP'<cr> map <leader>gw :!git add . && git commit -m 'WIP'<cr>
map <leader>pn :sp ~/jelly/documents/Notes/stack.txt<cr> map <leader>pn :sp ~/.personal-files/brain/writing/stack.txt<cr>
map <leader>sn :sp ~/jelly/documents/software-notes/clojure.md<cr> map <leader>sn :sp ~/.personal-files/documents/software-notes/clojure.md<cr>
map <leader>rn :sp ~/work/dive-networks/files/notes/refactoring-notes.md<cr> map <leader>rn :sp ~/.personal-files/work/dive-networks/files/notes/refactoring-notes.md<cr>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@ -168,7 +162,8 @@ au Syntax * RainbowParenthesesLoadBraces
" COLORS " COLORS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
colorscheme pencil colorscheme pencil
set background=light " default to dark, can also use 'light'
set background=dark
let g:airline_theme = 'pencil' let g:airline_theme = 'pencil'
" Switch between light and dark " Switch between light and dark
@ -230,10 +225,10 @@ nmap <leader>z <c-z>
nmap <silent> <leader>ev :vsp $MYVIMRC<cr> nmap <silent> <leader>ev :vsp $MYVIMRC<cr>
nmap <silent> <leader>rv :so $MYVIMRC<cr> nmap <silent> <leader>rv :so $MYVIMRC<cr>
" remap saving and quiting :P " remap saving and quiting
nmap <leader>w :w<cr> nmap <leader>w :w<cr>
nmap <leader>q :q<cr> nmap <leader>q :q<cr>
nmap <leader>Q :q!<cr> nmap <leader>qq :q!<cr>
nmap <leader>x :x<cr> nmap <leader>x :x<cr>
:ca Wa wa :ca Wa wa
:ca WA wa :ca WA wa
@ -267,6 +262,7 @@ map <leader>o :set number! number?<cr>
" Spell checking " Spell checking
map <leader>d :exec &spell==&spell? "se spell! spelllang=en_us" : "se spell!"<cr> map <leader>d :exec &spell==&spell? "se spell! spelllang=en_us" : "se spell!"<cr>
map <leader>= z=
" Clear the search buffer (highlighting) when hitting return " Clear the search buffer (highlighting) when hitting return
function! MapCR() function! MapCR()
@ -446,9 +442,9 @@ let g:gist_post_private = 1
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" VIM-CLOJURE-STATIC " VIM-CLOJURE-STATIC
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:clojure_align_multiline_strings = 1
" Default " Default
let g:clojure_fuzzy_indent = 1 let g:clojure_fuzzy_indent = 1
let g:clojure_align_multiline_strings = 1
let g:clojure_fuzzy_indent_patterns = ['^match', '^with', '^def', '^let'] let g:clojure_fuzzy_indent_patterns = ['^match', '^with', '^def', '^let']
let g:clojure_fuzzy_indent_blacklist = ['-fn$', '\v^with-%(meta|out-str|loading-context)$'] let g:clojure_fuzzy_indent_blacklist = ['-fn$', '\v^with-%(meta|out-str|loading-context)$']