You need to sign in or sign up before continuing.
Commit 932a60f7 authored by Murukesh Mohanan's avatar Murukesh Mohanan

Added airline, set 256 colors, removed align plugin files, suggestions from vi.se posts

parent 1b0f8858
...@@ -30,3 +30,9 @@ ...@@ -30,3 +30,9 @@
path = bundle/LaTeX-Box path = bundle/LaTeX-Box
url = https://github.com/LaTeX-Box-Team/LaTeX-Box.git url = https://github.com/LaTeX-Box-Team/LaTeX-Box.git
ignore = all ignore = all
[submodule "bundle/ctrlp"]
path = bundle/ctrlp
url = https://github.com/kien/ctrlp.vim
[submodule "bundle/airline"]
path = bundle/airline
url = https://github.com/bling/vim-airline
airline @ 925147ba
Subproject commit 925147baef70a9e214f70d30fb61c86db11eae49
ctrlp @ b5d3fe66
Subproject commit b5d3fe66a58a13d2ff8b6391f4387608496a030f
" AutoAlign: ftplugin support for bib
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 13
" ---------------------------------------------------------------------
let b:loaded_autoalign_bib= "v13"
"call Decho("loaded ftplugin/bib/AutoAlign!")
let b:undo_ftplugin= "v13"
" overloading '=' to keep things lined up {{{1
ino <silent> = =<c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1= '^\(\s*\h\w*\(\[\d\+]\)\{0,}\(->\|\.\)\=\)\+\s*[-+*/^|%]\=='
let b:autoalign_notpat1 = '^[^=]\+$'
let b:autoalign_trigger1= '='
if !exists("g:mapleader")
let b:autoalign_cmd1 = 'norm \t=$'
else
let b:autoalign_cmd1 = "norm ".g:mapleader."t=$"
endif
" AutoAlign: ftplugin support for C
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 13
" ---------------------------------------------------------------------
let b:loaded_autoalign_c = "v13"
let b:undo_ftplugin = "v13"
" overloading '=' to keep things lined up {{{1
ino <silent> = =<c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1 = '^\(\s*\*\{0,}\h\w*\%(\[\%(\d\+\|\h\w*\)]\)\{0,}\%(->\|\.\)\=\)\+\s*[-+*/^|%]\=='
let b:autoalign_notpat1 = '^[^=]\+$'
let b:autoalign_trigger1 = '='
if !exists("g:mapleader")
let b:autoalign_cmd1 = 'undojoin|norm \t=$'
else
let b:autoalign_cmd1 = "norm ".g:mapleader."t=$"
endif
" AutoAlign: ftplugin support for C++
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 13
" ---------------------------------------------------------------------
let b:loaded_autoalign_cpp= "v13"
let b:undo_ftplugin= "v13"
" overloading '=' to keep things lined up {{{1
ino <silent> = =<c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1 = '^\(\s*\h\w*\(\[\d\+]\)\{0,}\(->\|\.\)\=\)\+\s*[-+*/^|%]\=='
let b:autoalign_notpat1 = '^[^=]\+$'
let b:autoalign_trigger1 = '='
if !exists("g:mapleader")
let b:autoalign_cmd1 = 'norm \t=$'
else
let b:autoalign_cmd1 = "norm ".g:mapleader."t=$"
endif
" overloading '<<' to keep things lined up {{{1
"ino <silent> < <<c-o>:silent call AutoAlign(-2)<cr>
ino <silent> < <<c-r>=AutoAlign(-2)<cr>
let b:autoalign_reqdpat2 = '<<'
let b:autoalign_notpat2 = '^\%(\%(<<\)\@!.\)*$'
let b:autoalign_trigger2 = '<'
if !exists("g:mapleader")
let b:autoalign_cmd2 = 'norm \a<$'
else
let b:autoalign_cmd2 = "norm ".g:mapleader."a<$"
endif
" overloading '>>' to keep things lined up {{{1
"ino <silent> > ><c-o>:silent call AutoAlign(-3)<cr>
ino <silent> > ><c-r>=AutoAlign(-3)<cr>
let b:autoalign_reqdpat3 = '>>'
let b:autoalign_notpat3 = '^\%(\%(>>\)\@!.\)*$'
let b:autoalign_trigger3 = '>'
if !exists("g:mapleader")
let b:autoalign_cmd3 = 'norm \a<$'
else
let b:autoalign_cmd3 = "norm ".g:mapleader."a<$"
endif
" AutoAlign: ftplugin support for HTML
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 13
" ---------------------------------------------------------------------
let b:loaded_autoalign_html= "v13"
let b:undo_ftplugin= "v13"
" overloading '>' to keep things lined up {{{1
ino <silent> > ><c-r>=AutoAlign(-1)<cr>
let b:autoalign_reqdpat1 = '</[tT][rR]>$'
let b:autoalign_notpat1 = '\%(</[tT][rR]>\)\@!.\{5}$'
let b:autoalign_suspend1 = '\c</\=table>'
let b:autoalign_trigger1 = '>'
if !exists("g:mapleader")
let b:autoalign_cmd1 = 'norm \Htd$'
else
let b:autoalign_cmd1 = "norm ".g:mapleader."\Htd$"
endif
" AutoAlign: ftplugin support for Maple
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 14
" ---------------------------------------------------------------------
let b:loaded_autoalign_maple = "v14"
let b:undo_ftplugin= "v13b"
" overloading '=' to keep things lined up {{{1
ino <silent> = =<c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1 = ':='
let b:autoalign_notpat1 = '^\%(\%(:=\)\@!.\)*$'
let b:autoalign_trigger1 = '='
let b:autoalign_cmd1 = "'a,.Align :="
" AutoAlign: ftplugin support for MatLab
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 13
" ---------------------------------------------------------------------
let b:loaded_autoalign_matlab = "v13"
let b:undo_ftplugin= "v13"
" overloading '=' to keep things lined up {{{1
ino <silent> = =<c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1 = '\%(^.*=\)\&\%(^\s*\%(\%(if\>\|elseif\>\|function\>\|while\>\|for\>\)\@!.\)*$\)'
let b:autoalign_notpat1 = '^[^=]\+$'
let b:autoalign_trigger1 = '='
if !exists("g:mapleader")
let b:autoalign_cmd1 = 'norm \t=$'
else
let b:autoalign_cmd1 = "norm ".g:mapleader."t=$"
endif
" AutoAlign: ftplugin support for LaTeX
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 13
" ---------------------------------------------------------------------
let b:loaded_autoalign_tex = "v13"
let b:undo_ftplugin= "v13"
" overloading '\' to keep things lined up {{{1
"ino <silent> \\ \\<c-o>:silent call AutoAlign(1)<cr>
ino <silent> \\ \\<c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1 = '^\([^&]*&\)\+[^&]*\\\{2}'
let b:autoalign_notpat1 = '^.*\(\\\\\)\@<!$\&^.'
let b:autoalign_trigger1 = '\\'
if !exists("g:mapleader")
let b:autoalign_cmd1 = 'norm \tt$'
else
let b:autoalign_cmd1 = "norm ".g:mapleader."tt$"
endif
" AutoAlign: ftplugin support for vim
" Author: Charles E. Campbell, Jr.
" Date: Aug 16, 2007
" Version: 13
" ---------------------------------------------------------------------
let b:loaded_autoalign_vim = "v13"
let b:undo_ftplugin= "v13"
" overloading '=' to keep things lined up {{{1
"ino <silent> = =<c-o>:silent call AutoAlign(1)<cr>
ino <silent> = =<c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1 = '^\s*let\>.*='
let b:autoalign_notpat1 = '^[^=]\+$'
let b:autoalign_trigger1 = '='
if !exists("g:mapleader")
let b:autoalign_cmd1 = 'norm \t=$'
else
let b:autoalign_cmd1 = "norm ".g:mapleader."t=$"
endif
...@@ -6,7 +6,6 @@ set bg=dark ...@@ -6,7 +6,6 @@ set bg=dark
set incsearch set incsearch
" This shows what you are typing as a command. I love this! " This shows what you are typing as a command. I love this!
set showcmd set showcmd
"
" Who doesn't like autoindent? " Who doesn't like autoindent?
set autoindent set autoindent
...@@ -48,33 +47,39 @@ set undolevels=1000 " 1000 undos ...@@ -48,33 +47,39 @@ set undolevels=1000 " 1000 undos
set updatecount=100 " switch every 100 chars set updatecount=100 " switch every 100 chars
set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion
set ttyfast " we have a fast terminal set ttyfast " we have a fast terminal
set pastetoggle=<F10>
set title set title
set laststatus=2
set t_Co=256
nore ; : nore ; :
nore , ; nore , ;
map < :tabp<CR> map < :tabp<CR>
map > :tabn<CR> map > :tabn<CR>
command! C let @/="" command! C let @/=""
command! Make make!
cmap w!! w !sudo tee >/dev/null % cmap w!! w !sudo tee >/dev/null %
vnoremap cy "*y
vnoremap cp "*p
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
colorscheme elflord colorscheme elflord
execute pathogen#infect() execute pathogen#infect()
au Bufenter *.hs compiler ghc autocmd Bufenter,BufNew *.pro set syntax=prolog
autocmd Filetype gitcommit setlocal spell textwidth=72
autocmd Bufenter *.hs compiler ghc
autocmd BufWritePre *.sh if !filereadable(expand('%')) | let b:is_new = 1 | endif
autocmd BufWritePost *.sh if get(b:, 'is_new', 0) | silent execute '!chomod +x %' | endif
let g:SuperTabDefaultCompletionType="context" let g:SuperTabDefaultCompletionType="context"
set omnifunc=syntaxcomplete#Complete set omnifunc=syntaxcomplete#Complete
set foldmethod=syntax set foldmethod=syntax
"let g:SuperTabDefaultCompletionType = \"<C-X><C-O>\" "let g:SuperTabDefaultCompletionType = \"<C-X><C-O>\"
set laststatus=2
set pastetoggle=<F10>
let g:syntastic_cpp_compiler_options=' -std=c++11' let g:syntastic_cpp_compiler_options=' -std=c++11'
autocmd Filetype gitcommit setlocal spell textwidth=72
let g:syntastic_python_python_exec = '/usr/bin/python3' let g:syntastic_python_python_exec = '/usr/bin/python3'
let g:airline#extensions#tabline#enabled = 1
vnoremap cy "*y
vnoremap cp "*p
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
if has('cscope') if has('cscope')
set cscopetag cscopeverbose set cscopetag cscopeverbose
...@@ -93,12 +98,14 @@ if has('cscope') ...@@ -93,12 +98,14 @@ if has('cscope')
command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src
endif endif
set laststatus=2
if has("gui_running") if has("gui_running")
if has("gui_gtk2") if has("gui_gtk2")
set guifont=Ubuntu\ Mono\ 12 set guifont=Ubuntu\ Mono\ 12
endif endif
endif endif
if @% == "" && getcwd() == "/tmp"
:silent edit test.sh
endif
let g:DiffColors=100 let g:DiffColors=100
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment