let g:slimv_python_version=3 let counter = 0 let g:airline_theme="murmur" let g:easytags_async=1 let g:easytags_by_filetype="~/.tags" let g:haddock_browser_callformat = "%s %s" let g:haddock_browser = "open" let g:lisp_rainbow=1 "let g:pandoc#filetypes#handled = ["markdown", "rst", "textile"] "let g:pandoc_formatting_settings = "h" "let g:pandoc#modules#disabled = ["command", "bibliographies"] "let g:pandoc#modules#enabled = ["formatting", "folding", "completion", "metadata","menu"] "let g:pandoc_no_empty_implicits=1 "let g:pandoc_use_hard_wraps = 1 "let g:phpcomplete_index_composer_command = "composer" let g:snips_author="Edward Langley" let g:solarized_termtrans=1 let g:sql_type_default = 'pgsql' let g:syntastic_auto_loc_list=1 let g:syntastic_python_checkers = ['python'] let g:syntastic_scss_sass_args = "-r sass-css-importer -r susy" let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute " ,"trimming empty <", "unescaped &" , "lacks \"action", "is not recognized!", "discarding unexpected", "attribute name \":", "attribute name \"@"] let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' let g:tex_flavor='xelatex' let g:unite_force_overwrite_statusline = 0 let g:vimclojure#HighlightBuiltins = 1 let g:vimclojure#HighlightBuiltins = 1 let g:vimclojure#ParenRainbow = 1 let g:vimclojure#ParenRainbow = 1 let g:virtualenv_directory = "$HOME/python_envs" let maplocalleader=',' let $PAGER='' let python_highlight_all = 1 let python_no_tab_space_error=1 let python_space_errors=1 let vimclojure#WantNailgun = 1 let g:assistant_show_help_shortcut=" K" " This goes here in case a filetype overrides it "NeoBundle Scripts----------------------------- if has('vim_starting') set nocompatible " Be iMproved " Required: set runtimepath+=$HOME/.vim/bundle/neobundle.vim/ endif " Required: call neobundle#begin(expand("$HOME/.vim/bundle")) " Let NeoBundle manage NeoBundle " Required: NeoBundleFetch 'Shougo/neobundle.vim' " My Bundles here: NeoBundle 'alvan/vim-assistant' NeoBundle 'posva/vim-vue' NeoBundle 'evidens/vim-twig' NeoBundle 'tpope/vim-fugitive' NeoBundle 'joonty/vdebug' NeoBundle 'shawncplus/phpcomplete.vim' NeoBundle 'editorconfig/editorconfig-vim' "NeoBundle 'lukaszb/vim-web-indent' NeoBundle 'KabbAmine/zeavim.vim' NeoBundle 'dbakker/vim-paragraph-motion' NeoBundle 'jceb/vim-editqf' "NeoBundle 'mustache/vim-mustache-handlebars' NeoBundle 'davidoc/taskpaper.vim' NeoBundle 'altercation/vim-colors-solarized' "NeoBundle 'bitc/vim-hdevtools' "NeoBundle 'Blackrush/vim-gocode' NeoBundle 'bling/vim-airline' NeoBundle 'bling/vim-airline-themes' "NeoBundle 'burnettk/vim-angular' NeoBundle 'christoomey/vim-tmux-navigator' "NeoBundle 'curist/vim-angular-template' "NeoBundle 'eagletmt/ghcmod-vim' "NeoBundle 'eagletmt/neco-ghc' NeoBundle 'edsono/vim-matchit' ""NeoBundle 'enomsg/vim-haskellConcealPlus' "NeoBundle 'exu/pgsql.vim' "NeoBundle 'fiddlerwoaroof/htmljinja' "NeoBundle 'fiddlerwoaroof/vim-jinja' "NeoBundle 'godlygeek/tabular' "NeoBundle 'groenewege/vim-less' "NeoBundle 'guns/vim-clojure-static' NeoBundle 'ivanov/vim-ipython' NeoBundle 'jmcantrell/vim-virtualenv' NeoBundle 'kien/rainbow_parentheses.vim' NeoBundle 'kovisoft/slimv' "NeoBundle 'lukerandall/haskellmode-vim' ""NeoBundle 'm2mdas/phpcomplete-extended' "NeoBundle 'markcornick/vim-vagrant' "NeoBundle 'matthewsimo/angular-vim-snippets' NeoBundle 'mattn/emmet-vim.git' NeoBundle 'msanders/snipmate.vim' ""NeoBundle 'othree/javascript-libraries-syntax.vim' "NeoBundle 'pangloss/vim-javascript' NeoBundle 'gavocanov/vim-js-indent' "NeoBundle 'vim-scripts/JavaScript-Indent' NeoBundle 'jelera/vim-javascript-syntax' "NeoBundle 'raichoo/haskell-vim' NeoBundle 'rking/ag.vim' "Ag search utility NeoBundle 'rust-lang/rust.vim' NeoBundle 'scrooloose/nerdcommenter' NeoBundle 'scrooloose/nerdtree' NeoBundle 'scrooloose/syntastic' NeoBundle 'Shougo/unite.vim' NeoBundle 'Shougo/unite-outline' NeoBundle 'tsukkee/unite-tag' NeoBundle 'Shougo/vimfiler.vim' NeoBundle 'Shougo/vimproc' "NeoBundle 'Shougo/vimshell.vim' NeoBundle 'sjl/gundo.vim' "NeoBundle 'sjl/vitality.vim' "NeoBundle 'sophacles/vim-bundle-mako' NeoBundle 'terryma/vim-multiple-cursors' "NeoBundle 'tpope/vim-fireplace' NeoBundle 'tpope/vim-repeat' NeoBundle 'tpope/vim-surround' "NeoBundle 'Twinside/vim-haskellFold' "NeoBundle 'Twinside/vim-hoogle' ""NeoBundle 'Valloric/YouCompleteMe' ""NeoBundle 'vim-pandoc/vim-pandoc' "NeoBundle 'vim-scripts/dbext.vim' "NeoBundle 'vim-scripts/php.vim--Garvin' "NeoBundle 'vim-scripts/pydoc.vim' "NeoBundle 'vim-scripts/VimClojure' NeoBundle 'vim-voom/VOoM' NeoBundle 'ytsunetsune/unite-outline-euslisp' NeoBundle 'xolox/vim-misc' NeoBundle 'xolox/vim-easytags' NeoBundle 'majutsushi/tagbar' NeoBundle 'LnL7/vim-nix' " Required: call neobundle#end() " Required: filetype plugin indent on " If there are uninstalled bundles found on startup, " this will conveniently prompt you to install them. NeoBundleCheck "End NeoBundle Scripts------------------------- let counter = 0 let g:airline_theme="murmur" let g:haddock_browser_callformat = "%s %s" let g:haddock_browser = "open" let g:lisp_rainbow=1 "let g:pandoc#filetypes#handled = ["markdown", "rst", "textile"] "let g:pandoc_formatting_settings = "h" "let g:pandoc#modules#disabled = ["command", "bibliographies"] "let g:pandoc#modules#enabled = ["formatting", "folding", "completion", "metadata","menu"] "let g:pandoc_no_empty_implicits=1 "let g:pandoc_use_hard_wraps = 1 let g:slimv_disable_clojure=1 let g:slimv_repl_split=3 let g:slimv_browser_command_suffix='2>&1 > /dev/null' let g:snips_author="Edward Langley" let g:solarized_termtrans=1 let g:sql_type_default = 'pgsql' let g:syntastic_auto_loc_list=1 let g:syntastic_python_checkers = ['python'] let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' let g:tex_flavor='xelatex' let g:unite_force_overwrite_statusline = 0 let g:vimclojure#HighlightBuiltins = 1 let g:vimclojure#ParenRainbow = 1 let g:virtualenv_directory = "$HOME/python_envs" let maplocalleader=',' let $PAGER='' let python_highlight_all = 1 let python_no_tab_space_error=1 let python_space_errors=1 let vimclojure#WantNailgun = 1 " IMPORTANT: grep will sometimes skip displaying the file name if you " search in a singe file. This will confuse Latex-Suite. Set your grep " program to always generate a file-name. " OPTIONAL: This enables automatic indentation as you type. filetype indent on " OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to " 'plaintex' instead of 'tex', which results in vim-latex not being loaded. " The following changes the default filetype back to 'tex': let g:tex_flavor='latex' " Configuration file for vim " Normally we use vim-extensions. If you want true vi-compatibility " remove change the following statements " Don't write backup file if vim is being called by "crontab -e" au BufWrite /private/tmp/crontab.* set nowritebackup " Don't write backup file if vim is being called by "chpass" au BufWrite /private/etc/pw.* set nowritebackup "Enable support for Color xterm :if has("terminfo") : set t_Co=8 : set t_Sf=[3%p1%dm : set t_Sb=[4%p1%dm :else : set t_Co=8 : set t_Sf=[3%dm : set t_Sb=[4%dm :endif set omnifunc=syntaxcomplete#Complete set ignorecase set smartcase "set autoindent set nu set expandtab set tabstop=3 softtabstop=2 set smarttab set shiftwidth=2 set incsearch set scrolloff=4 set wildmode=longest,list set autoread set background=dark set pastetoggle= set undodir=~/.vim/undodir set undofile set undolevels=10000 set undoreload=100000 set foldlevel=9 set hidden set laststatus=2 set splitbelow set splitright set grepprg=grep\ -nH\ $* set modelines=1 " CVE-2007-2438 set backspace=2 " more powerful backspacing syntax enable colorscheme solarized "if &term =~ "xterm\\|rxvt" " " use an orange cursor in insert mode " let &t_SI = "\]12;blue\x7" " " use a red cursor otherwise " let &t_EI = "\]12;yellow\x7" " silent !echo -ne "\033]12;yellow\007" " " reset cursor when vim exits " autocmd VimLeave * silent !echo -ne "\033]112\007" " " use \003]12;gray\007 for gnome-terminal "endif ""SmartIndent for Python "autocmd BufEnter *.hs compiler ghc "au FocusLost * :wa function! Checkft() if &filetype=="" filetype detect endif endfunction " when we reload, tell vim to restore the cursor to the saved position "autocmd FileType python map K \pW autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e "autocmd BufRead,BufNewFile *.twig set filetype=htmljinja "autocmd BufRead,BufNewFile *.mako set ft=mako "autocmd BufRead,BufNewFile *.md set dictionary+=/usr/share/dict/words ft=markdown "autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif "autocmd BufRead,BufNewFile *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class "autocmd BufRead,BufNewFile *.tac set ft=python autocmd bufwritepost * call Checkft() "autocmd BufWritePre *.py normal m`:%s/\s\+$//e `` "autocmd FileType haskell set omnifunc=necoghc#omnifunc autocmd FileType lisp set omnifunc=SlimvOmniComplete autocmd FileType markdown set linebreak tw=110 noexpandtab nosmartindent autoindent spelllang=en spell "autocmd FileType pandoc set linebreak tw=110 noexpandtab nosmartindent autoindent "autocmd FileType pantondoc set linebreak tw=110 noexpandtab nosmartindent autoindent autocmd FileType python set complete+=k~/.vim/syntax/python.vim "isk+=.,( "Diable the anti-python smart indent of # inoremap # X# "Turn Syntax Highlighting on by default, and assume the xterm background is black imap :Unite outline -buffer-name=outline -start-insert imap :Unite outline -buffer-name=outline -start-insert imap o :,!pbpaste imap o :,!pbpaste inoremap ListItem() inoremap ListReset() inoremap :set nonumber! foldcolumn=0 inoremap :!spot_control pr inoremap :!spot_control p inoremap :!spot_control n inoremap u "inoremap u "inoremap u map dh map :Unite outline -buffer-name=outline -start-insert map CS :sil! :%s/\s\+$//g``:%s/^\(\t\+\)\( \+\(\t*\)\)\+/\1\3/gc`` map :Unite outline -buffer-name=files -start-insert map o :,!pbpaste map o :,!pbpaste map f :Unite file -buffer-name=files -start-insert map q :Unite buffer -buffer-name=buffers -start-insert map W wb"_dwP map ZX :wq map ZZ :w nmap ci VCSCommit nnoremap nnoremap nnoremap nnoremap nnoremap :set nonumber!:set foldcolumn=0 func ListItem() let g:counter += 1 return g:counter endfunc func ListReset() let g:counter = 0 return '' endfunc set diffopt=vertical,filler,iwhite,foldcolumn:0 highlight PmenuSel ctermfg=LightGray ctermbg=DarkRed if filereadable(".vim.custom") so .vim.custom endif let g:syntastic_javascript_checkers = ['jshint'] call unite#custom#source('file,file/new,buffer,file_rec','matchers','matcher_fuzzy') autocmd FileType unite call s:unite_my_settings() function! s:unite_my_settings() " Overwrite settings. let b:SuperTabDisabled=1 imap unite#do_action('vsplit') imap unite#do_action('split') imap (unite_complete) imap (unite_select_next_line) imap (unite_select_next_line) imap (unite_select_previous_line) imap (unite_select_previous_line) " exit with esc nmap (unite_exit) " exit with ctrl-c imap (unite_exit) nmap (unite_exit) endfunction if executable('ag') let g:unite_source_file_async_command = 'ag --follow --nocolor --nogroup --hidden -g "" --ignore ''.sass-cache''' "https://github.com/ggreer/the_silver_searcher "Use ag in unite grep source. let g:unite_source_rec_async_command = ['ag', '--follow', '--nocolor', '--nogroup', '--hidden', '-g', '', '--ignore', '.git', '--ignore', '.sass-cache'] let g:unite_source_rec_async_command = ['ag', '--follow', '--nocolor', '--nogroup', '--hidden', '-g', '', '--ignore', '.git', '--ignore', '.sass-cache'] let g:unite_source_grep_command = 'ag' let g:unite_source_grep_default_opts = \ '--line-numbers --nocolor --nogroup --hidden --ignore ' . \ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'' ' . \ '--ignore ''**/*.pyc''' let g:unite_source_grep_recursive_opt = '' elseif executable('ack-grep') let g:unite_source_grep_command = 'ack-grep' " Match whole word only. This might/might not be a good idea let g:unite_source_grep_default_opts = '--no-heading --no-color -a -H' "let g:unite_source_grep_default_opts = '--no-heading --no-color -a -w' let g:unite_source_grep_default_opts = '--exclude ''\.(git|svn|hg|bzr)''' let g:unite_source_grep_recursive_opt = '' elseif executable('ack') let g:unite_source_grep_command = 'ack' let g:unite_source_grep_default_opts = '--no-heading --no-color -a -w' let g:unite_source_grep_default_opts = '--exclude ''\.(git|svn|hg|bzr)''' let g:unite_source_grep_recursive_opt = '' endif nnoremap [unite] nmap [unite] nmap [unite]s :Unite -auto-preview grep:. nmap [unite]o :Unite outline -start-insert nmap [unite]f :Unite file_rec/async -start-insert nmap [unite]F :Unite file -start-insert nmap [unite]g :Unite file_rec/git -start-insert nmap [unite]j :Unite buffer -start-insert nmap [unite]k :Unite tab:no-current nmap [unite]t :NERDTreeToggle nmap [unite]u :GundoToggle "nmap [unite]r :!vagrant rsync nmap [unite]h :set hlsearch! nmap [unite]l :set list! nmap [unite]z FS_ToggleFoldAroundSearch({'context':2}) nmap [unite]x FS_ToggleFoldAroundSearch({'context':0}) nmap [unite]w :let @/='\<\>':set hlsearch nmap [unite]r :s//=input('replacement? ').'/g' nmap [unite]R :%s//=input('replacement? ').'/g' nmap o :autocmd BufRead,BufNewFile .vimrc nmap [unite]1 /\(["].*\)\@ x " Reload map tu :call GHC_BrowseAll() " Type Lookup map tw :call GHC_ShowType(1) autocmd BufRead,BufNewFile *.css,*.scss,*.less setlocal foldmethod=marker foldmarker={,} autocmd BufRead,BufNewFile *.php setlocal breakindent breakindentopt=sbr,shift:7,min:5 command -nargs=+ Gadd Git add " set runtimepath+=/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/vim au BufNewFile,BufRead *.phn set filetype=clojure if has('python') python << EOF import os import sys import vim for p in sys.path: if os.path.isdir(p): vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) EOF endif if has('python3') python3 << EOF import os import sys import vim for p in sys.path: if os.path.isdir(p): vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) EOF endif