diff options
Diffstat (limited to 'vim')
| -rw-r--r-- | vim/fun.vim | 13 | ||||
| -rw-r--r-- | vim/pack/mitsuo/README.md | 12 | ||||
| -rw-r--r-- | vim/viminfo | 31 | ||||
| -rw-r--r-- | vim/vimrc | 5 |
4 files changed, 60 insertions, 1 deletions
diff --git a/vim/fun.vim b/vim/fun.vim index 0dbfe11..25b71ca 100644 --- a/vim/fun.vim +++ b/vim/fun.vim @@ -51,12 +51,23 @@ command Md2Pdfms call Md2Pdfms() function! Md2Html ( ) exe ":w" - exe ":! pandoc -o \"" . expand("%:r") . ".html\"" . " -s \"" . expand("%") . "\"" + exe ":! pandoc -s --toc -H ~/mahcode/markdown/pandoc/pandoc_style.html --highlight-style tango -o \"" . expand("%:r") . ".html\"" . " \"" . expand("%") . "\"" echo "html saved as " . expand("%:p:r") . ".html" endfunction command Md2Html call Md2Html() +" Save markdown as ODT file (.docx is also possible) + +function! Md2Odt ( ) + exe ":w" + exe ":! pandoc -s --toc -H ~/mahcode/markdown/pandoc/pandoc_style.html --highlight-style tango -o \"" . expand("%:r") . ".odt\"" . " \"" . expand("%") . "\"" + echo "ODT saved as " . expand("%:p:r") . ".odt" +endfunction + +command Md2Odt call Md2Odt() + + " Compiles and Runs a C++ project " TODO: how to add program's arguments or file redirectioning from command. diff --git a/vim/pack/mitsuo/README.md b/vim/pack/mitsuo/README.md new file mode 100644 index 0000000..172c269 --- /dev/null +++ b/vim/pack/mitsuo/README.md @@ -0,0 +1,12 @@ +Plugins I usually use and work fine together. + +- [NERDTree](https://github.com/preservim/nerdtree) + + <C-t> + +- [vim-fugitive](https://github.com/tpope/vim-fugitive) + + :G + :G blame + +Vim packages (version >= 8.2). See `:h packages` diff --git a/vim/viminfo b/vim/viminfo new file mode 100644 index 0000000..7651f85 --- /dev/null +++ b/vim/viminfo @@ -0,0 +1,31 @@ +# This viminfo file was generated by Vim 8.2. +# You may edit it if you're careful! + +# Viminfo version +|1,4 + +# Value of 'encoding' when this file was written +*encoding=utf-8 + + +# hlsearch on (H) or off (h): +~h +# Command Line History (newest to oldest): +:q +|2,0,1649356827,,"q" + +# Search String History (newest to oldest): + +# Expression History (newest to oldest): + +# Input Line History (newest to oldest): + +# Debug Line History (newest to oldest): + +# Registers: + +# File marks: + +# Jumplist (newest first): + +# History of marks within files (newest to oldest): @@ -21,6 +21,8 @@ let $VIMFILES=split(&rtp,",")[0] set undodir=$VIMFILES/undo set viminfofile=$VIMFILES/viminfo set viewdir=$VIMFILES/view +set directory=$VIMFILES/swap +set viminfofile=$VIMFILES/viminfo " Useful @@ -184,6 +186,9 @@ vmap gt :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g<CR><C-L> " output.) " :%!jq . +" NERDTree plugin +nnoremap <C-t> :NERDTreeToggle<CR> + " Yanking and pasting " ---------------------------------------------------------------------- |
