vim - Vimrc customization for googlecl use -


i've started using google docs collaborating others can't/won't break down , learn standard vim/latex/git workflow writing , collaborating. google has command line interface called googlecl allows call like:

$ googlecl docs edit --title "some document" --editor vim 

which allows me edit google docs in vim.

what i'd though able change vim settings if file i'm working on google docs file. easiest example here changing line wrapping. there way use augroup type of construct googlecl documents? possible currently, or require me poking around in source?

how creating simple bash script in ~/bin looks this?

#!/bin/sh vim -c 'set ft=google_docs' $@ 

save ~/bin/google_vim , chmod +x ~/bin/google_vim. create file:

~/.vim/ftplugin/google_docs.vim 

with settings need (e.g. set nowrap or whatever) , start editor with:

googlecl docs edit --title "some document" --editor google_vim 

(assuming ~/bin in path: if not --editor ~/bin/google_vim)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -