linux:vim_dodger_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:vim_dodger_setup [2022/02/15 10:49] – [Cheatsheet generated] dodger | linux:vim_dodger_setup [2022/12/14 10:32] (current) – [Globals] dodger | ||
---|---|---|---|
Line 11: | Line 11: | ||
====== Advanced vimrc (2022) edition====== | ====== Advanced vimrc (2022) edition====== | ||
+ | |||
+ | I have additionally [[https:// | ||
+ | |||
+ | |||
+ | |||
+ | ===== System Packages (not bundled) ===== | ||
+ | |||
+ | ==== ubuntu ==== | ||
+ | < | ||
+ | vim | ||
+ | vim-addon-manager | ||
+ | vim-airline | ||
+ | vim-airline-themes | ||
+ | vim-common | ||
+ | vim-fugitive | ||
+ | vim-nox | ||
+ | vim-puppet | ||
+ | vim-python-jedi | ||
+ | vim-runtime | ||
+ | vim-syntastic | ||
+ | vim-syntax-docker | ||
+ | vim-tiny | ||
+ | vim-youcompleteme | ||
+ | </ | ||
+ | One line: | ||
+ | <code bash> | ||
+ | apt install vim vim-addon-manager vim-airline vim-airline-themes vim-common vim-fugitive vim-nox vim-puppet vim-python-jedi vim-runtime vim-syntastic vim-syntax-docker vim-tiny vim-youcompleteme | ||
+ | </ | ||
+ | |||
===== Globals ===== | ===== Globals ===== | ||
Line 108: | Line 137: | ||
That will install all the above plugins: | That will install all the above plugins: | ||
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
- | * ' | + | * '' |
+ | |||
+ | |||
+ | |||
+ | ===== Additional syntax/ | ||
+ | ==== Tagbar ==== | ||
+ | Used for function/ | ||
+ | |||
+ | <code bash> | ||
+ | cd ~/ | ||
+ | git clone https:// | ||
+ | </ | ||
+ | And add to '' | ||
+ | <code vim> | ||
+ | " tagbar | ||
+ | nmap <F8> : | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== terraform syntax ==== | ||
+ | From [[https:// | ||
+ | <code bash> | ||
+ | git clone https:// | ||
+ | </ | ||
+ | |||
+ | ==== Puppet syntax ==== | ||
+ | From [[https:// | ||
+ | <code bash> | ||
+ | git clone https:// | ||
+ | </ | ||
Line 203: | Line 263: | ||
<file vim ~/ | <file vim ~/ | ||
+ | " https:// | ||
+ | " | ||
+ | " | ||
+ | |||
+ | " Window layout | ||
+ | " style 1 | ||
+ | " +----------+------------------------+ | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " | undotree | | | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " +----------+ | ||
+ | " | | | | ||
+ | " | | ||
+ | " | | | | ||
+ | " +----------+------------------------+ | ||
+ | " Style 2 | ||
+ | " +----------+------------------------+ | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " | undotree | | | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " +----------+------------------------+ | ||
+ | " | | | ||
+ | " | | ||
+ | " | | | ||
+ | " +-----------------------------------+ | ||
+ | " Style 3 | ||
+ | " +------------------------+----------+ | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " | | undotree | | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " | +----------+ | ||
+ | " | | | | ||
+ | " | | | ||
+ | " | | | | ||
+ | " +------------------------+----------+ | ||
+ | " Style 4 | ||
+ | " +-----------------------++----------+ | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " | | undotree | | ||
+ | " | | | | ||
+ | " | | | | ||
+ | " +------------------------+----------+ | ||
+ | " | | | ||
+ | " | diff | | ||
+ | " | | | ||
+ | " +-----------------------------------+ | ||
+ | if !exists(' | ||
+ | let g: | ||
+ | endif | ||
+ | |||
if has(" | if has(" | ||
let target_path = expand(' | let target_path = expand(' | ||
Line 219: | Line 336: | ||
</ | </ | ||
+ | |||
+ | **Disabled, using FZF** | ||
<file vim ~/ | <file vim ~/ | ||
nnoremap < | nnoremap < | ||
Line 227: | Line 346: | ||
+ | FZF: | ||
+ | <file vim ~/ | ||
+ | " https:// | ||
+ | nnoremap < | ||
+ | let g: | ||
+ | \ ' | ||
+ | \ ' | ||
+ | \ ' | ||
+ | </ | ||
===== Cheatsheet generated ===== | ===== Cheatsheet generated ===== | ||
+ | |||
+ | In my config: | ||
+ | * '' | ||
+ | * ''< | ||
+ | |||
^ ##############''' | ^ ##############''' | ||
- | |''< | + | |''< |
- | |''< | + | | inside fzf -> ''< |
- | |''< | + | | inside fzf -> ''< |
- | |''< | + | | inside fzf -> ''< |
+ | |''< | ||
+ | |''< | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | ''< | ||
+ | | ''< | ||
+ | | ''< | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
====== Simple vimrc ====== | ====== Simple vimrc ====== | ||
linux/vim_dodger_setup.txt · Last modified: 2022/12/14 10:32 by dodger