Skip to content

Commit

Permalink
updates vimrc to add clojure rainbow parens
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWheeler committed Nov 11, 2016
1 parent db73164 commit cecb1a3
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions vimrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
" Use Vim settings, rather than Vi settings (much better!).
set nocompatible
" Switch syntax highlighting on
filetype off
filetype on
filetype plugin indent on "load filetype dependent indent files
syntax on
syntax enable
" Enable file type detection and do language-dependent indenting.
" Allow netrw to remove non-empty local directories
let g:netrw_localrmdir='rm -r'
" Change cursor shape between insert and normal mode in iTerm2.app
Expand Down Expand Up @@ -34,30 +38,45 @@ Plugin 'gaogao1030/vim-skim'
Plugin 'fatih/vim-go'
Plugin 'jgdavey/tslime.vim'
Plugin 'rking/ag.vim'
Plugin 'henrik/vim-ruby-runner'
Plugin 'tpope/vim-fireplace'
Plugin 'vim-ruby/vim-ruby'
Plugin 'kien/rainbow_parentheses.vim'
Plugin 'henrik/vim-ruby-runner'
Plugin 'guns/vim-sexp'
Plugin 'tpope/vim-sexp-mappings-for-regular-people'
Plugin 'guns/vim-clojure-static'
call vundle#end()

syntax enable
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
set noshowmode
set expandtab
set noshowmode
set clipboard=unnamed
set shiftwidth=2
set softtabstop=2
set expandtab "tabs are spaces
set tabstop=2 "number of spaces in tab
set softtabstop=2 "number of spaces in tab when editing
set nowrap
set ignorecase
set noswapfile
set relativenumber
set number
set number " show line number
set laststatus=2
set backspace=2
set background=light
set fileencoding=utf-8
"Rainbow Parentheses always on
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
"Open man pages in vim with :Man
runtime! ftplugin/man.vim
set showmatch " highlight matching [{()}]
let mapleader = ","
let g:clojure_fuzzy_indent = 1
let g:airline#extensions#tabline#enabled = 0
let g:tmuxline_powerline_separators = 1
let g:airline_theme='molokai'
Expand All @@ -68,6 +87,8 @@ let g:rspec_command = 'call Send_to_Tmux("zeus rspec {spec}\n")'
"instruct ag to start searching from project root
let g:ag_working_path_mode="r"
inoremap jk <esc>
let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>l :call RunLastSpec()<CR>
nmap <Leader>rts <Plug>SetTmuxVars
Expand All @@ -94,3 +115,8 @@ endif

" unicode symbols
let g:airline_symbols.linenr = ''
nmap <Leader>go :GoRun <CR>
nmap <Leader>gp :GoPlay <CR>
inoremap jk <esc>

0 comments on commit cecb1a3

Please sign in to comment.