aboutsummaryrefslogtreecommitdiffstats
path: root/dotvimrc
diff options
context:
space:
mode:
Diffstat (limited to 'dotvimrc')
-rw-r--r--dotvimrc24
1 files changed, 18 insertions, 6 deletions
diff --git a/dotvimrc b/dotvimrc
index 86021c0..3293b69 100644
--- a/dotvimrc
+++ b/dotvimrc
@@ -1,9 +1,9 @@
+set nocompatible
syn on
set ignorecase
set smartcase
set modeline
set modelines=5
-set nocompatible
set wildmode=longest:full
set wildmenu
set hlsearch
@@ -19,6 +19,10 @@ set path=$PWD/**
set showcmd
set scrolloff=3
+" persistent-undo
+set undodir=~/.vim/undodir
+set undofile
+
set runtimepath+=~/.vim/bundle/neobundle.vim/
" remove toolbar
@@ -68,6 +72,8 @@ NeoBundle 'git-time-lapse'
NeoBundle 'Valloric/YouCompleteMe.git'
let g:ycm_extra_conf_globlist = ['~/dab/*']
+"NeoBundle 'Valloric/YouCompleteMe.git'
+
NeoBundle 'tpope/vim-surround.git'
NeoBundle 'taglist.vim'
NeoBundle 'ifdef-highlighting'
@@ -99,6 +105,8 @@ if has("gui_running")
endif
nnoremap <Leader><F11> :call ToggleFullScreen()<CR>
+
+ set cursorline
else
colorscheme desert
endif
@@ -119,6 +127,11 @@ set shiftwidth=4
set tabstop=4
set expandtab
+"What highlighting group is the current cursor on ?
+function! SyntaxItem()
+ return synIDattr(synID(line("."),col("."),1),"name")
+endfunction
+
"Nice statusbar
set laststatus=2
set statusline=
@@ -127,8 +140,10 @@ set statusline+=%f\ " file name
set statusline+=%h%m%r%w " flags
set statusline+=\[%{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%{&fileencoding}, " encoding
-set statusline+=%{&fileformat}]\ " file format
-set statusline+=%{strftime('%a\ %b\ %e\ %H:%M')} " hour
+set statusline+=%{&fileformat}, " file format
+set statusline+=%{((exists(\"+bomb\")\ &&\ &bomb)?\"B,\":\"\")}]\ " BOM
+set statusline+=%{strftime('%a\ %b\ %e\ %H:%M')}\ " hour
+"set statusline+=%{SyntaxItem()} " syntax highlight group under cursor
set statusline+=%= " right align
set statusline+=0x%-8B\ " current char
set statusline+=%-14.(%l,%c%V%)\ %<%P " offset
@@ -266,9 +281,6 @@ inoremap <up> <nop>
"very magic search
noremap <Leader>/ /\v
-"remove adding stars in comments
-set formatoptions-=ro
-
call neobundle#end()
filetype plugin indent on