Skip to content

eyalk11/.vim

 
 

Repository files navigation

.vim

Has many improvements/adjustement over the original.

  • better shortcuts

  • fuzzyness all around!

see tip here: https://vim.fandom.com/wiki/Fuzzy_mappings_of_everything% (or the fuzzy mapping section below) or here: https://vim.fandom.com/wiki/Fuzzy_insert_mode_completion_(using_FZF)

  • Many snippetes for latex with skim. Works with vimtex.

  • Some unique functions for math.

General

  • m is kind of leader2 , with many options (\z does the original m )

    • mu for mundo
    • mp for pasting on new line
    • many more
  • , to search in fuzzy way (leaderF now)

  • Q to quit things (:c)

  • ~ to open command line (esc works normally)

  • c-/ to search easy-motion

  • :M keyword(or visual and then Y) to search in current doc and display all matches.

    • also M<motion> in normal mode
  • C-a for fast searching using FZF

    • m search mappings
    • d search last directories
    • c search last commands
  • SHIFT-L to display last paste registers

  • CTRL-L to recall last inserted text in insert mode or \oi in normal

  • :GL to look for pattern and execute python code

  • F , H , CTRL-F CTRL-H to execute python/bash code on visual selection

  • \c to close all other windows in cur tab \q to quit all other buffers

  • F13 for special insert mode (turns off automatically)

  • ` to insert a single letter

  • s for easy-motion

  • | navigate between buffers

  • c-f in insert mode recall

  • c-b in insert mode search easy-motion 1 char

  • c-c in insert mode search easy-motion 2 chars

  • c-a to complete command in commandline using last commands

  • c-b to go to command line windows

  • c-e for new line (normal)

  • :Tailf for tail -f

  • :C to open folder

  • TN for new tab

  • t for save in normal (\t does t in normal)

  • \ <num> to tab number <num>

Math

  • vim-tex supports.
  • math snippets taken from https://castel.dev/post/lecture-notes-1/
  • ~+letter for greek letters
    • ~a for alpha
  • @ for mathoperators
    • @c for \mathcal{ }
  • cmd+d for math functions , same as lyX bindings (in insert or normal mode)
  • cmd+b for letters

(make sure your vim gui supports <d- > for cmd)

Fuzzy mappings

  • ctrl+ac List of last executed commands (:) - it goes to the searched command in the command window
  • ctrl+aC defined commands in vim
  • ctrl+am all the customly defined key mapping(:map) - search by shortcutkey
  • ctrl+aM all mappings - by full text
  • ctrl+ab (or |) buffers - navigate to buffers.
  • ctrl+ad visted folders(useful) - does cd to the folder
  • ctrl+ag text in files in the current working folder
  • ctrl+al text in any open file in vim
  • ctrl+aH bash history
  • altBslash titles of open windows in vim - navigate to windows.
  • ctrl+as snippets - mainly by ultisnip.

Plugins

  • coc for syntax (tex,vim and more)

  • vim-visual-multi for multiple cursors

  • net-ranger with some shortcuts (better than NERDTree)

    • alt-> to search and enter dirs repeatedly
    • cd to go to dir
    • opens in split screen mode
  • vim-ctrl-space handles all the workspaces in single file(to fork) [saves workspace every couple of seconds]

  • leaderf with preview. I switched <up> <c-k> in code(to fork) . so c-, will look odd (last search basically).

  • nvim-ip - ipython support with cmdR to run a python line

Let me know if something is not working. Haven't really tested it on other enivornments other than mine.

About

My Vim/neovim repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 80.4%
  • Lua 9.8%
  • Vim Snippet 7.4%
  • Python 1.1%
  • Other 1.3%