diff options
author | Matthias Braendli <matthias.braendli@u-blox.com> | 2015-01-22 09:02:12 +0100 |
---|---|---|
committer | Matthias Braendli <matthias.braendli@u-blox.com> | 2015-01-22 09:02:12 +0100 |
commit | 45ab21f4f6a2fde2076ed0cb37c702528287ac97 (patch) | |
tree | 6ec89064e9d4994738c9a3a38685ab5b8e47b0a3 /dotvimrc | |
parent | 028ad988d956c0deda7d7073b32873b23a4f1f74 (diff) | |
download | vimrc-45ab21f4f6a2fde2076ed0cb37c702528287ac97.tar.gz vimrc-45ab21f4f6a2fde2076ed0cb37c702528287ac97.tar.bz2 vimrc-45ab21f4f6a2fde2076ed0cb37c702528287ac97.zip |
add undodir, cursorline, other updates
Diffstat (limited to 'dotvimrc')
-rw-r--r-- | dotvimrc | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -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 @@ -69,6 +73,8 @@ let g:clang_snippets = 1 let g:clang_snippets_engine = 'clang_complete' noremap <Leader>c :call g:ClangUpdateQuickFix()<cr> +"NeoBundle 'Valloric/YouCompleteMe.git' + NeoBundle 'tpope/vim-surround.git' NeoBundle 'taglist.vim' NeoBundle 'ifdef-highlighting' @@ -100,6 +106,8 @@ if has("gui_running") endif nnoremap <Leader><F11> :call ToggleFullScreen()<CR> + + set cursorline else colorscheme desert endif @@ -120,6 +128,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= @@ -128,8 +141,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 @@ -267,9 +282,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 |