114 lines
3.6 KiB
Markdown
114 lines
3.6 KiB
Markdown
# config
|
|
My dot config
|
|
|
|
## TODO
|
|
### For window WSL
|
|
git config --global core.autocrlf true
|
|
### To start terminator from WSL
|
|
DISPLAY=:0 terminator -u &
|
|
### To use chmod (git clone) from WSL
|
|
edit: /etc/wsl.conf
|
|
|
|
paste:
|
|
|
|
[automount]
|
|
options = "metadata"
|
|
###
|
|
|
|
## VIM
|
|
|
|
Is set to save automatically ;)
|
|
|
|
Usefull command:
|
|
* i : insert mode
|
|
* v : visual mode (selecting)
|
|
* shift-v : same but by line
|
|
* ctrl-v : block select
|
|
* d : cut (visual mode)
|
|
* y : copy (visual mode)
|
|
* p : past (normal mode)
|
|
* [esc] : exit modes
|
|
* :q : exit
|
|
* :w : save
|
|
* NERDTree : open files manager
|
|
* ? : NERDTREE help menu
|
|
* I : show hidden files
|
|
* ctrl-w ctrl-w : change split
|
|
* ctrl-w [arrows] : change split in this direction
|
|
* Bd : close file in buffer
|
|
* [tab] : cycle through buffers
|
|
* shift-[tab] : cycle through tabs
|
|
* shift-t : new tab
|
|
* shift-d : delete tab
|
|
* :split : open file in a split screen
|
|
* :hide : close a split
|
|
* :A : switch between .cpp and .hpp
|
|
* If ctrl-s and freeze, ctrl-q ;)
|
|
|
|
|
|
### a.vim
|
|
A few of quick commands to swtich between source files and header files quickly.
|
|
|
|
### ctlp
|
|
Full path fuzzy __file__, __buffer__, __mru__, __tag__, __...__ finder for Vim.
|
|
|
|
### delimitMate
|
|
This plug-in provides automatic closing of quotes, parenthesis, brackets, etc.
|
|
|
|
### neocomplete
|
|
Neocomplete is the abbreviation of "neo-completion with cache". It provides
|
|
keyword completion system by maintaining a cache of keywords in the current
|
|
buffer. neocomplete can be customized easily and has many more features than
|
|
Vim's built-in completion.
|
|
|
|
### nerdtree
|
|
The NERDTree is a file system explorer for the Vim editor. Using this plugin,
|
|
users can visually browse complex directory hierarchies, quickly open files for
|
|
reading or editing, and perform basic file system operations.
|
|
|
|
### syntastic
|
|
Syntastic is a syntax checking plugin for [Vim][vim] created by
|
|
[Martin Grenfell][scrooloose]. It runs files through external syntax checkers
|
|
and displays any resulting errors to the user. This can be done on demand, or
|
|
automatically as files are saved. If syntax errors are detected, the user is
|
|
notified and is happy because they didn't have to compile their code or execute
|
|
their script to find them.
|
|
|
|
### vim-airline-theme
|
|
Airline themes for vim
|
|
|
|
### vim-airline
|
|
When the plugin is correctly loaded, Vim will draw a nice statusline at the
|
|
bottom of each window. That line consists of several sections, each one displaying some piece of
|
|
information.
|
|
|
|
### vim-fugitive
|
|
A git wrapper
|
|
|
|
### vim-gitgutter
|
|
A Vim plugin which shows a git diff in the 'gutter' (sign column). It shows which lines
|
|
have been added, modified, or removed. You can also preview, stage, and undo individual hunks.
|
|
The plugin also provides a hunk text object.
|
|
|
|
### vim-nerdtree-tab
|
|
This plugin aims at making NERDTree feel like a true panel, independent of tabs.
|
|
|
|
### vim-tmux-navigator
|
|
This plugin is a repackaging of [Mislav Marohnić's][] tmux-navigator
|
|
configuration described in [this gist][]. When combined with a set of tmux
|
|
key bindings, the plugin will allow you to navigate seamlessly between
|
|
vim and tmux splits using a consistent set of hotkeys.
|
|
|
|
### Vundle
|
|
[Vundle] is short for _Vim bundle_ and is a [Vim] plugin manager.
|
|
[Vundle] allows you to...
|
|
* keep track of and [configure] your plugins right in the `.vimrc`
|
|
* [install] configured plugins (a.k.a. scripts/bundle)
|
|
* [update] configured plugins
|
|
* [search] by name all available [Vim scripts]
|
|
* [clean] unused plugins up
|
|
* run the above actions in a *single keypress* with [interactive mode]
|
|
[Vundle] automatically...
|
|
* manages the [runtime path] of your installed scripts
|
|
* regenerates [help tags] after installing and updating
|