Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made some aesthetic changes to vi

  • Loading branch information...
commit dcf1ff5c00db95bb91185d1d12f76da9f54b6e3c 1 parent a7f99cc
@hkjels authored
View
6 git/.gitconfig
@@ -1,6 +1,9 @@
+
[core]
pager = most +s +'/---'
excludesfile = ~/.gitignore
+ editor = "$EDITOR -f"
+
[alias]
am = commit -v --amend
br = branch
@@ -31,7 +34,10 @@
tags = tag -l
undo = reset --soft HEAD^
unstage = reset HEAD --
+
[diff]
mnemonicprefix = true
+
[include]
path = ~/.gitconfig.local
+
View
1  vim/_vundle.vim
@@ -61,4 +61,3 @@ Bundle 'msanders/snipmate.vim'
" Color-scheme
Bundle 'hkjels/focus.vim'
-
View
33 vim/aestetics.vim
@@ -8,7 +8,6 @@
set background=dark
colorscheme focus
-
"------------------------
" Additional highlighting
"------------------------
@@ -31,15 +30,17 @@
endif
set scrolloff=10
+ set sidescrolloff=10
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set shiftround
+ set cindent
set smarttab
set autoindent
- set copyindent
set smartindent
+ set cinkeys=0{,0},:,0#,!,!^F
set foldmethod=indent
set foldlevel=99
set splitbelow
@@ -51,11 +52,31 @@
" Improved the statusline
"------------------------
- set statusline=%<%f\ %{fugitive#statusline()}\
- set statusline+=%h%m%r%=%-20.(line=%l,col=%c%V,totlin=%L%)\
- set statusline+=%h%m%r%=%-40(,%n%Y%)\%P
+ set statusline =
+
+ " Filename
+
+ set statusline+=%#identifier#
+ set statusline+=%1*
+ set statusline+=[%t]
+
+ " Flags
+ set statusline+=%2*
+ set statusline+=%h%m%r%w
+
+ " Warning when file encoding is not utf-8
set statusline+=%#warningmsg#
- set statusline+=%{SyntasticStatuslineFlag()}
+ set statusline+=\%{(&fenc!='utf-8'&&&fenc!='')?'['.&fenc.']':''}
+
+ " Warning on syntax-error
+ set statusline+=%#warningmsg#
+ set statusline+=\%{SyntasticStatuslineFlag()}
+
+ " Row & column
set statusline+=%*
+ set statusline+=%=
+ set statusline+=%0*\ row:%l/%L\ \ col:%03c
+ set statusline+=%*
+
let g:syntastic_enable_signs = 1
View
3  vim/map.vim
@@ -19,6 +19,9 @@ vnoremap / /\v
nnoremap n nzz
nnoremap } }zz
+" Scroll using space bar
+nnoremap <Space> <C-F>
+
" Expected behavior of yank
nnoremap Y y$
Please sign in to comment.
Something went wrong with that request. Please try again.