Skip to content

mctechnology17/vimtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mctechnology17.com

MC Technology | YouTube @mctechnology17 | Twitter @mctechnology17 | Instagram MC Technology17 | Facebook @mctechnology17 | Reddit


Intro | Fotos | Installation | Description | Integration | Donate | LICENSE


Intro

vimtools is a tool to complement your editor favorite text / code vim, vi, nvim, Gvim or MacVim. vimtools is fast and lightweight written in 100% vimscript with no outside dependencies.

vimtools is a set of functions and settings that will make it easy for you life. You are the one who decides what function or command is executed either automatically or by calling through the cmd of vim / nvim. That is why all the variables are available for you set the vimtools to your liking.

vimtools some features:

  • VimToolsMaxWindows the current window to have a more extended view of the information
  • VimToolsSpellMorseIdioms the best Spell administrator for VIM, using a dictionary in Vim was never so easy
  • VimToolsAssistant the best Asistant for the documentation for Vimscript
  • Rapid access to your VIMRC or to your init.vim
  • VimToolsState a preview to the information of your script
  • VimToolsMakeDirectories automatic directories for spell, backup copies, folding and others. You no longer have to worry about the annoying temporary files of backup copies, now everything is focused on a single place "$HOME/vimtools_tmp"
  • VimToolsMatheModus asistant for Mathematical Symbols
  • VimToolsEasyComment an indispensable complement to comment with the proper format
  • Others

Installation

Using Vundle:

Just add this line to your ~/.vimrc:

Plugin 'mctechnology17/vimtools'

And run :PluginInstall inside Vim.

Copy and paste in your shell:

cd ~/.vim/bundle
git clone https://github.com/mctechnology17/vimtools

Using vpm:

Run this command in your shell:

vpm insert mctechnology17/vimtools

Using Plug:

Just add this line to your ~/.vimrc inside plug call:

Plug 'mctechnology17/vimtools'

And run :PlugInstall inside Vim or vim +PlugInstall +qa from shell.

Description

Loading or deactivating global settings

All Tools are activated by default, if some reason you have problems with any, or you only need some, you can activate it and deactivate it easily as follows:

" 1 = activate 0 = deactivate
let g:vimtools_loaded = 1

Loading or deactivating specific settings

" activated by default
" 1 = activate 0 = deactivate
let g:vimtools_assistant = 1
let g:vimtools_directories = 1
let g:vimtools_mapsfolding = 1
let g:vimtools_closingbracke = 1
let g:vimtools_stateruler = 1
let g:vimtools_mathemodus = 1
let g:vimtools_spellmorse = 1
let g:vimtools_spellmorsesuggest = 1
let g:vimtools_easycomment = 1
let g:vimtools_maxwindows = 1

Maping recommended (Simple configuration)

If you want VimTools to work by default without any copy modification and paste these lines in your VIMRC or init.vim

" on/off SpellMorse
nnoremap <silent> <TAB>. :VimToolsSpellMorse<CR>
" next language
nnoremap <silent> <TAB>, :VimToolsSpellMorseIdioms<CR>
" on/off MatheModus
inoremap <silent> <TAB>m <Esc>:VimToolsMatheModus<CR>i<RIGHT>
" on/off MaxWindows
nnoremap <silent> <Leader>m :VimToolsMaxWindows<CR>

VimToolsAssistant

This add-on will help you with the official documentation of Vimscript. When you shut up under a function as a for, while or if (for example), keyword or something you do not know or the definition of vimscript, just press the <F1> key and the documentation of what is below will be automated of the cursor.

⚡ Usage:
" activated by default
" 1 = activate 0 = deactivate
let g:vimtools_assistant = 1
<F1>     " call documentation in VIM if it exists
<S-F1>   " call HELP
<F2>     " call .vimrc
<S-F2>   " call init.vim

VimToolsCleanUndoDir

With this add-on you can clean the "Undo" folder with the files that have more than 90 days of existing, if you want them to keep the archives simply do not invoke this command.

⚡ Usage:
" clear Undo-Directory
:VimToolsCleanUndoDir
" Make directory
:VimToolsMakeDirectories

VimToolsSpellMorse

Spell is a complement that is available to VIM, SpellMorse helps you from a very easy and intuitive to use it. In normal mode, simply press <TAB> + . Torque Aactivar the plugin and once activated you can change language with <TAB> + ,.

You can change to the language of your preference, consultation your language in specific here. Once you know which will be the default language, you can switch it by simply by modifying the word "in" by the language of your preference. For example:

  • en -> all regions
  • en_au -> Australia
  • en_ca -> Canada
  • en_gb -> Great Britain
  • en_nz -> New Zealand
  • en_us -> USA
  • de -> all German words accepted
  • de_de -> old and new spelling
  • de_19 -> old spelling
  • de_20 -> new spelling
  • de_at -> Austria
  • de_ch -> Switzerland
⚡ Usage:
" Mappings are enabled by default
" 1 = activate 0 = deactivate
let g:vimtools_spellmorse = 1
" 1 = 10 Best suggestions (default) 2 = 20 Best suggestions (default) 0 = all suggestions
let g:vimtools_spellmorsesuggest = 1
" on/off SpellMorse
nnoremap <silent> <TAB>. :VimToolsSpellMorse<CR>
" next language
nnoremap <silent> <TAB>, :VimToolsSpellMorseIdioms<CR>

VimToolsSpellMorseMaps

When SpellMorse is activated, then you can make movements with the following keys. The mappings of these keys are only active during the activation of SpellMourse, when the switch is turned off, the mapping of each key returns to its original state.

⚡ Usage:

Input -> Output

  • mm -> menu (z=)
  • n -> next word (]s)
  • b -> previus word ([S)
  • y -> add word (zg)
  • Y -> quit word (zug)
  • x -> quit bad word (zw)
  • X -> undo quit bad word (zuw)
  • . -> selection first option (1z=)
  • .. -> selection second option (2z=)
  • ... -> selection third option (3z=)

VimToolsMapsFolding

Mappings are enabled by default. You can read the documentation here. This mapping is activated by default, if you do not wish you can deactivate it by writing 0 instead of 1 in the following global variable.

⚡ Usage:
" Mappings are enabled by default
" 1 = activate 0 = deactivate
let g:vimtools_mapsfolding = 1
    " open/close folding
    nnoremap a za
    vnoremap a za
    " open/close all folding
    nnoremap s zM
    nnoremap S zR
    " visual: Operator to create a fold.
    vnoremap s zf
    " visual: Delete folds recursively at the cursor.
    vnoremap D zd

VimToolsMatheModus

With this plugin you can acquire mathematical unicode symbols simply by typing the abbreviation according to your symbol. These are the keywords added so far.

⚡ Usage:

Input -> Output (INSERT MODUS)

  • Alpha Α
  • Beta Β
  • Gamma Γ
  • Delta Δ
  • Epsilon Ε
  • Zeta Ζ
  • Eta Η
  • Theta Θ
  • Iota Ι
  • Kappa Κ
  • Lambda Λ
  • upMu Μ
  • upNu Ν
  • Xi Ξ
  • upOmicron Ο
  • Pi Π
  • Rho Ρ
  • Sigma Σ
  • Tau Τ
  • Upsilon Υ
  • Phi Φ
  • Chi Χ
  • Psi Ψ
  • Omega Ω
  • alpha α
  • beta β
  • gamma γ
  • delta δ
  • upepsilon ε
  • zeta ζ
  • eta η
  • theta θ
  • iota ι
  • kappa κ
  • lambda λ
  • mu μ
  • nu ν
  • xi ξ
  • upomicron ο
  • pi π
  • rho ρ
  • varsigma ς
  • sigma σ
  • tau τ
  • upsilon υ
  • varphi φ
  • chi χ
  • psi ψ
  • omega ω
  • upvarbeta ϐ
  • vartheta ϑ
  • phi ϕ
  • varpi ϖ
  • upoldKoppa Ϙ
  • upoldkoppa ϙ
  • Stigma Ϛ
  • upstigma ϛ
  • Digamma Ϝ
  • digamma ϝ
  • Koppa Ϟ
  • upkoppa ϟ
  • Sampi Ϡ
  • upsampi ϡ
  • varkappa ϰ
  • varrho ϱ
  • textTheta ϴ
  • epsilon ϵ
  • varepsilon ε
  • backepsilon ϶
  • sptilde ~
  • cent ¢
  • pounds £
  • yen ¥
  • neg ¬
  • lnot ¬
  • circledR ®
  • pm ±
  • Micro µ
  • euro €
  • mathbb{C} ℂ
  • Euler ℇ
  • mathcal{g} ℊ
  • mathcal{H} ℋ
  • mathfrak{H} ℌ
  • mathbb{H} ℍ
  • Planckconst ℎ
  • hslash ℏ
  • mathcal{I} ℐ
  • Im ℑ
  • mathcal{L} ℒ
  • ell ℓ
  • mathbb{N} ℕ
  • wp ℘
  • mathbb{P} ℙ
  • mathbb{Q} ℚ
  • mathcal{R} ℛ
  • Re ℜ
  • mathbb{R} ℝ
  • mathbb{Z} ℤ
  • tcohm Ω
  • mho ℧
  • mathfrak{Z} ℨ
  • turnediota ℩
  • Angstroem Å
  • mathcal{B} ℬ
  • mathfrak{C} ℭ
  • mathcal{e} ℯ
  • mathcal{E} ℰ
  • mathcal{F} ℱ
  • Finv Ⅎ
  • mathcal{M} ℳ
  • mathcal{o} ℴ
  • mathbb{\\pi} ℼ
  • mathbb{\\gamma} ℽ
  • mathbb{\\Gamma} ℾ
  • mathbb{\\Pi} ℿ
  • mathbb{\\Sigma} ⅀
  • Game ⅁
  • sansLturned ⅂
  • sansLmirrored ⅃
  • Yup ⅄
  • CapitalDifferenti ⅅ
  • DifferentialD ⅆ
  • ExponetialE ⅇ
  • ComplexI ⅈ
  • ComplexJ ⅉ
  • PropertyLine ⅊
  • invamp ⅋
  • leftarrow ←
  • uparrow ↑
  • rightarrow →
  • to →
  • downarrow ↓
  • leftrightarrow ↔
  • updownarrow ↕
  • nwarrow ↖
  • nearrow ↗
  • searrow ↘
  • swarrow ↙
  • Leftarrow ⇐
  • Uparrow ⇑
  • Rightarrow ⇒
  • Downarrow ⇓
  • Leftrightarrow ⇔
  • Updownarrow ⇕
  • Nwarrow ⇖
  • Nearrow ⇗
  • Searrow ⇘
  • Swarrow ⇙
  • mathord ⍹
  • forall ∀
  • complement ∁
  • partial 𝜕
  • exists ∃
  • nexists ∄
  • varnothing ∅
  • emptyset ∅
  • increment ∆
  • nabla ∇
  • in ∈
  • notin ∉
  • smallin ∊
  • ni ∋
  • nni ∌
  • smallni ∍
  • prod ∏
  • coprod ∐
  • sum ∑
  • sqrt √
  • sqrt[3] ∛
  • sqrt[4] ∜
  • propto ∝
  • infty ∞
  • wedge ∧
  • vee ∨
  • land ∧
  • lor ∨
  • cap ∩
  • cup ∪
  • int ∫
  • iint ∬
  • iiint ∭
  • approx ≈
  • napprox ≉
  • not\\eq ≠
  • equiv ≡
  • nequiv ≢
  • Equiv ≣
  • leq ≤
  • geq ≥
  • leqq ≦
  • geqq ≧
  • lneqq ≨
  • gneqq ≩
  • ll ≪
  • gg ≫
  • subset ⊂
  • supset ⊃
  • nsubset ⊄
  • nsupset ⊅
  • subseteq ⊆
  • supseteq ⊇
  • nsubseteq ⊈
  • nsupseteq ⊉
  • subsetneq ⊊
  • supsetneq ⊋
  • diameter ⌀
  • house ⌂
  • lceil ⌈
  • rceil ⌉
  • lfloor ⌊
  • rfloor ⌋
  • invneg ⌐
  • turnednot ⌙
  • lparenuend ⎛
  • lparenextender ⎜
  • lparenlend ⎝
  • rparenuend ⎞
  • rparenextender ⎟
  • rparenlend ⎠
  • lbrackuend ⎡
  • lbrackextender ⎢
  • lbracklend ⎣
  • rbrackuend ⎤
  • rbrackextender ⎥
  • rbracklend ⎦
  • lbraceuend ⎧
  • lbracemid ⎨
  • lbracelend ⎩
  • vbraceextender ⎪
  • rbraceuend ⎫
  • rbracemid ⎬
  • rbracelend ⎭
  • intextender ⎮
  • mathbb{A} 𝔸
  • mathbb{B} 𝔹
  • mathbb{D} 𝔻
  • mathbb{E} 𝔼
  • mathbb{F} 𝔽
  • mathbb{G} 𝔾
  • mathbb{I} 𝕀
  • mathbb{J} 𝕁
  • mathbb{K} 𝕂
  • mathbb{L} 𝕃
  • mathbb{M} 𝕄
  • mathbb{O} 𝕆
  • mathbb{S} 𝕊
  • mathbb{T} 𝕋
  • mathbb{U} 𝕌
  • mathbb{V} 𝕍
  • mathbb{W} 𝕎
  • mathbb{X} 𝕏
  • mathbb{Y} 𝕐
  • ^0 ⁰
  • ^1 ¹
  • ^2 ²
  • ^3 ³
  • ^4 ⁴
  • ^5 ⁵
  • ^6 ⁶
  • ^7 ⁷
  • ^8 ⁸
  • ^9 ⁹
  • ^+ ⁺
  • ^- ⁻
  • ^= ⁼
  • ^( ⁽
  • ^) ⁾
  • ^a ᵃ
  • ^b ᵇ
  • ^c ᶜ
  • ^d ᵈ
  • ^e ᵉ
  • ^f ᶠ
  • ^g ᵍ
  • ^h ʰ
  • ^i ⁱ
  • ^j ʲ
  • ^k ᵏ
  • ^l ˡ
  • ^m ᵐ
  • ^n ⁿ
  • ^o ᵒ
  • ^p ᵖ
  • ^r ʳ
  • ^s ˢ
  • ^t ᵗ
  • ^u ᵘ
  • ^v ᵛ
  • ^w ʷ
  • ^x ˣ
  • ^y ʸ
  • ^z ᶻ
  • ^A ᴬ
  • ^B ᴮ
  • ^D ᴰ
  • ^E ᴱ
  • ^G ᴳ
  • ^H ᴴ
  • ^I ᴵ
  • ^J ᴶ
  • ^K ᴷ
  • ^L ᴸ
  • ^M ᴹ
  • ^N ᴺ
  • ^O ᴼ
  • ^P ᴾ
  • ^R ᴿ
  • ^T ᵀ
  • ^U ᵁ
  • ^V ⱽ
  • ^W ᵂ
  • _0 ₀
  • _1 ₁
  • _2 ₂
  • _3 ₃
  • _4 ₄
  • _5 ₅
  • _6 ₆
  • _7 ₇
  • _8 ₈
  • _9 ₉
  • _+ ₊
  • _- ₋
  • _= ₌
  • _( ₍
  • _) ₎
  • _a ₐ
  • _e ₑ
  • _h ₕ
  • _i ᵢ
  • _j ⱼ
  • _k ₖ
  • _l ₗ
  • _m ₘ
  • _n ₙ
  • _o ₒ
  • _p ₚ
  • _r ᵣ
  • _s ₛ
  • _t ₜ
  • _u ᵤ
  • _v ᵥ
  • _x ₓ
  • frac{1}{2} ½
  • frac{1}{4} ¼
  • frac{3}{4} ¾
" activated by default
" 1 = activate 0 = deactivate
let g:vimtools_mathemodus = 1
" on/off MatheModus
inoremap <silent> <TAB>m <Esc>:VimToolsMatheModus<CR>i<RIGHT>
nnoremap <silent> <TAB>m :VimToolsMatheModus<CR>

VimToolsMaxWindows

Enlarge and restore the current window.

⚡ Usage:
" activated by default
" 1 = activate 0 = deactivate
let g:vimtools_maxwindows = 1
" on/off MaxWindows
nnoremap <silent> <Leader>m :VimToolsMaxWindows<CR>

VimToolsEasyComment

Simply select in visual mode the lines of code you want to comment on and then press the c key. This is adapted so that it works in an easy, fast and practical way in all scripts.

List of Scripts added so far:

vim, cpp, c, go, java, javascript, scala, php, rust, jsonc, json
python, r, ruby, sh, desktop, fstab, profile, text, tmux, make, dockerfile
bashrc, zsh, zshrc, bash_profile, gitignore, yaml, gdb, gitconfig, vimwiki
html, xml, tex, mail, dosbatch, autohotkey, lua
⚡ Usage:

Input -> Output (VISUAL MODUS)

Select the block or line you want to comment on in visual mode and then press the c key

  • C -> comment in the format of ScriptType / FileType

Integration

Adding this line, you can see when SpellMorse is activated. Note: You have to have "AIRLINE" installed

let g:airline_symbols.spell = 'SpellMorse'

Donate

If you're enjoy my work, feel free to donate or become a sponsor.

Ambassador and creator/maintainer of vimtools, GitManager and more, that are easy to integrate, but very powerful work tools that allow you to improve your workflow, integrating with all operating systems and all possible shells.

Here you can see another recently published project:

  • vimtools swiss army knife for vim (functions and settings that will make it easy for you life)
  • gm manager for GIT multi platform with a friendly user interface
  • vim-better-header better automated template
  • vim-executor multilanguage code executor.

Released under the GNU General Public License v3.0.

Copyright (c) 2022 Marcos Chow Castro

Releases

No releases published

Packages

No packages published