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:37] – 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 ===== | ||
+ | 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 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 187: | 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 203: | Line 336: | ||
</ | </ | ||
+ | |||
+ | **Disabled, using FZF** | ||
<file vim ~/ | <file vim ~/ | ||
nnoremap < | nnoremap < | ||
Line 211: | Line 346: | ||
+ | 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.1644921462.txt.gz · Last modified: 2022/02/15 10:37 by dodger