https://woliveiras.com.br/vimparanoobs/
https://www.youtube.com/watch?v=UUzW46SeLhg&t=1868s
vim
https://gist.github.com/felipedacs/78a0ad7dc57f216dacc92e9b95cc9b7e
-
:i / insert on cursor
:I / insert beginning line
:o / insert in new line down
:O / insert in new line up
:A /append end line
:S / substitute line with insert
:s / substitute
:q / quit
:q! / force quit
:w / write
:w <name> / save as
:wq / write and quit
w / jump word
b / jump back word
u / undo
ctrl r / redo
x / delete char
yw / copy word
yy / copy line
dd / cut line
p / paste
yy / copy line
:Vex / vertical folders
ctrl w w / trocar tela split
% / new file in Vex
d / new folder in Vex
gg / beginning file
G / ending file
gg"+yG / copy all
:PlugInstall / plugin installer
/<text> / Search a text [n for next word]
%s/old/new/g / all old for new
+ - / up and down
2k ou 2[seta-cima] / up 2 lines
2j ou 2[seta-baixo] / down 2 lines
v / visual mode
y / copy on visual mode
----
NERDTree
t - new tab
gt next tab
sudo apt-get install vim
mkdir ~/.vim
cd ~/.vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim ~/.vimrc
set runtimepath+=~/.vim/bundle/nerdtree
"au - auto cmd
au vimenter * NERDTree
au VimEnter * wincmd p
au vimenter * Tagbar
let g:nerdtree_tabs_open_on_gui_startup=1
let g:nerdtree_tabs_smart_startup_focus=1
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
let g:UltiSnipsEditSplit="vertical"
let g:UltiSnipsSnippetsDir = '~/.vim/plugged/vim-snippets/snippets'
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsListSnippets="<C-@>"
let g:nerdtree_tabs_open_on_gui_startup
let g:lightline = {
\ 'colorscheme': 'onedark',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }
set laststatus=2
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
call plug#begin()
Plug 'majutsushi/tagbar'
Plug 'jistr/vim-nerdtree-tabs'
"Plug 'sniphpets/sniphpets'
"Plug 'sniphpets/sniphpets-phpunit'
Plug 'vitchyny/im-gitbranch'
Plug 'itchyny/lightline.vim'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'joshdick/onedark.vim'
Plug 'sheerun/vim-polyglot'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'w0rp/ale'
Plug 'cohama/lexima.vim'
call plug#end()
colorscheme onedark
set hidden
set number
set relativenumber
set termguicolors
set mouse=a
set clipboard=unnamed
set expandtab
set shiftwidth=2
set showcmd
set cursorline
set hlsearch
set ignorecase
set autoindent
"let mapleader="\<space>"
"nnoremap <leader>; A;<esc>
"nnoremap <leader>sv :source $MYVIMRC<cr>
nnoremap <c-p> :Files<cr>
"nnoremap <c-f> :Ag<space>