diff options
author | Adrian Kummerlaender | 2017-03-18 19:46:41 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2017-03-18 19:46:41 +0100 |
commit | 4d990fa1c161e6654fe938a446e13c924377fd2c (patch) | |
tree | 791f645e292f1d84c31bdd51d27fe7ccf2676dbd /vim | |
parent | b251a04bd14f7e75a6d7329d7c22cf2a08cc2f32 (diff) | |
download | dotfiles-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/.vimrc | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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'] |