aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-03-18 19:46:41 +0100
committerAdrian Kummerlaender2017-03-18 19:46:41 +0100
commit4d990fa1c161e6654fe938a446e13c924377fd2c (patch)
tree791f645e292f1d84c31bdd51d27fe7ccf2676dbd /vim
parentb251a04bd14f7e75a6d7329d7c22cf2a08cc2f32 (diff)
downloaddotfiles-4d990fa1c161e6654fe938a446e13c924377fd2c.tar
dotfiles-4d990fa1c161e6654fe938a446e13c924377fd2c.tar.gz
dotfiles-4d990fa1c161e6654fe938a446e13c924377fd2c.tar.bz2
dotfiles-4d990fa1c161e6654fe938a446e13c924377fd2c.tar.lz
dotfiles-4d990fa1c161e6654fe938a446e13c924377fd2c.tar.xz
dotfiles-4d990fa1c161e6654fe938a446e13c924377fd2c.tar.zst
dotfiles-4d990fa1c161e6654fe938a446e13c924377fd2c.zip
Update vim configuration
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc11
1 files changed, 9 insertions, 2 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 38137cb..1193f1d 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -12,6 +12,7 @@
" * goyo.vim -- undistracted writing mode
" * vim-matlab-behave -- add basic matlab support
" * vim-latex-suite -- latex integration, main usecase is concealment of math expressions
+" * vim-autoformat -- autoformatting integration
call pathogen#infect()
@@ -51,6 +52,7 @@ map <leader>s :let @/=""<CR>
map <leader>fc :foldclose<CR>
map <leader>fo :foldopen<CR>
map <leader>t :Tab/\|<CR>
+map <leader>c zz
nmap <backspace> :e#<CR>
nmap f za
@@ -76,7 +78,7 @@ nnoremap cc "+p
nnoremap <C-left> gT
nnoremap <C-right> gt
-nnoremap <space> zz
+nnoremap <space> @q
nnoremap J }
nnoremap K {
@@ -119,7 +121,7 @@ let g:matlab_behave_paste_cmd = "alt+v"
let g:pandoc#modules#disabled = ["folding","spell","chdir"]
let g:pandoc#syntax#conceal#blacklist = ["image","atx"]
-let g:pandoc#syntax#codeblocks#embeds#langs = ["c","cpp","sh","xslt","xml","python","php","diff","gdb","lisp","scheme"]
+let g:pandoc#syntax#codeblocks#embeds#langs = ["c","cpp","sh","xslt","xml","python","php","diff","gdb","lisp","scheme","asm"]
nnoremap <F4> :NERDTreeToggle<CR>
nnoremap <F5> :MundoToggle<CR>
@@ -130,3 +132,8 @@ nnoremap <F12> :Goyo<CR>
" latex suite
set grepprg=grep\ -nH\ $*
let g:tex_flavor = "latex"
+
+" project specific formatters
+let g:formatdef_openlb_c = '"astyle -s2 -A4 --mode=c -n -c -j -H --options=none"'
+let g:formatters_c = ['openlb_c']
+let g:formatters_cpp = ['openlb_c']