linux:vim_dodger_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:vim_dodger_setup [2022/02/15 10:37] – dodger | linux:vim_dodger_setup [2022/12/14 08:52] – dodger | ||
---|---|---|---|
Line 11: | Line 11: | ||
====== Advanced vimrc (2022) edition====== | ====== Advanced vimrc (2022) edition====== | ||
+ | |||
+ | I have additionally [[https:// | ||
+ | |||
+ | |||
+ | |||
+ | ===== Globals ===== | ||
+ | This is the initial vimrc file. | ||
+ | <file vim ~/ | ||
+ | " ############################################## | ||
+ | " GLOBAL CONFIG | ||
+ | " ############################################## | ||
+ | set encoding=utf-8 | ||
+ | set nocompatible | ||
+ | |||
+ | " map leader with , to start combos | ||
+ | let mapleader = "," | ||
+ | |||
+ | </ | ||
+ | |||
+ | I'm remaping the leader key for convenience... | ||
===== vim-plug ===== | ===== vim-plug ===== | ||
Line 92: | Line 112: | ||
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 187: | Line 238: | ||
<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 203: | Line 311: | ||
</ | </ | ||
+ | |||
+ | **Disabled, using FZF** | ||
<file vim ~/ | <file vim ~/ | ||
nnoremap < | nnoremap < | ||
Line 211: | Line 321: | ||
+ | FZF: | ||
+ | <file vim ~/ | ||
+ | " https:// | ||
+ | nnoremap < | ||
+ | let g: | ||
+ | \ ' | ||
+ | \ ' | ||
+ | \ ' | ||
+ | </ | ||
+ | ===== 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