Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vimrc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Murukesh Mohanan
vimrc
Commits
53aa63aa
Commit
53aa63aa
authored
Feb 10, 2015
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added airline, set 256 colors, removed align plugin files, suggestions from vi.se posts
parent
3db593a4
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
28 additions
and
181 deletions
+28
-181
.gitmodules
.gitmodules
+6
-0
bundle/airline
bundle/airline
+1
-0
bundle/ctrlp
bundle/ctrlp
+1
-0
ftplugin/bib/AutoAlign.vim
ftplugin/bib/AutoAlign.vim
+0
-19
ftplugin/c/AutoAlign.vim
ftplugin/c/AutoAlign.vim
+0
-18
ftplugin/cpp/AutoAlign.vim
ftplugin/cpp/AutoAlign.vim
+0
-42
ftplugin/html/AutoAlign.vim
ftplugin/html/AutoAlign.vim
+0
-19
ftplugin/maple/AutoAlign.vim
ftplugin/maple/AutoAlign.vim
+0
-14
ftplugin/matlab/AutoAlign.vim
ftplugin/matlab/AutoAlign.vim
+0
-18
ftplugin/tex/AutoAlign.vim
ftplugin/tex/AutoAlign.vim
+0
-19
ftplugin/vim/AutoAlign.vim
ftplugin/vim/AutoAlign.vim
+0
-19
vimrc
vimrc
+20
-13
No files found.
.gitmodules
View file @
53aa63aa
...
...
@@ -30,3 +30,9 @@
path = bundle/LaTeX-Box
url = https://github.com/LaTeX-Box-Team/LaTeX-Box.git
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
ftplugin/bib/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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
ftplugin/c/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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
ftplugin/cpp/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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
ftplugin/html/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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
ftplugin/maple/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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 :="
ftplugin/matlab/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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
ftplugin/tex/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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
ftplugin/vim/AutoAlign.vim
deleted
100644 → 0
View file @
3db593a4
" 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
vimrc
View file @
53aa63aa
...
...
@@ -6,7 +6,6 @@ set bg=dark
set incsearch
" This shows what you are typing as a command. I love this!
set showcmd
"
" Who doesn't like autoindent?
set autoindent
...
...
@@ -48,33 +47,39 @@ set undolevels=1000 " 1000 undos
set updatecount=100 " switch every 100 chars
set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion
set ttyfast " we have a fast terminal
set pastetoggle=<F10>
set title
set laststatus=2
set t_Co=256
nore ; :
nore , ;
map < :tabp<CR>
map > :tabn<CR>
command! C let @/=""
command! Make make!
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
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"
set omnifunc=syntaxcomplete#Complete
set foldmethod=syntax
"let g:SuperTabDefaultCompletionType = \"<C-X><C-O>\"
set laststatus=2
set pastetoggle=<F10>
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'
vnoremap cy "*y
vnoremap cp "*p
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
let g:airline#extensions#tabline#enabled = 1
if has('cscope')
set cscopetag cscopeverbose
...
...
@@ -93,12 +98,14 @@ if has('cscope')
command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src
endif
set laststatus=2
if has("gui_running")
if has("gui_gtk2")
set guifont=Ubuntu\ Mono\ 12
endif
endif
if @% == "" && getcwd() == "/tmp"
:silent edit test.sh
endif
let g:DiffColors=100
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment