Last active
April 14, 2020 00:39
-
-
Save claudioacioli/f76ab00f43f183a570edf60c91532d9d to your computer and use it in GitHub Desktop.
Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Gerenciadores de Plugin | |
call plug#begin() | |
Plug 'arcticicestudio/nord-vim' | |
call plug#end() | |
execute pathogen#infect() | |
"Tamanho da identacao | |
set tabstop=2 | |
"Desativa quebra de linha | |
set nowrap | |
"Apresenta numero de linhas | |
set number ruler | |
"Troca tab por espaco | |
set expandtab | |
"Identifica o tipo de arquivo e identa | |
filetype plugin indent on | |
"Colore pela sintax | |
syntax on | |
"Tecla 'Enter' ter o mesmo tamanho do TAB | |
set shiftwidth=2 | |
"Comportamento usual do backspace | |
set backspace=2 | |
"Escolhe o tema | |
colorscheme onehalfdark | |
"colorscheme onehalflight | |
"Apresenta linhas relativas a linha atual | |
"set relativenumber | |
"Busca incremental | |
set incsearch | |
"Highlight todas combinacoes busca | |
set hlsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comands:
Visual Mode:
Line: Shift + v
Block: Shift + v
"/banana"
/ search (type n next, type Shift + n prev)
"%s/banana/apple/gc"
%s/search/replace/g(general)c(choice)
w walk for words rigth
b walk for words left
== indent
i insert
o insert in the next line
shif + o insert in the prev line
v select character
r replace character (r + [new character])
x cut
y copy
p paste
j down
k up
h left
l right
shift + g go to the end of file
gg got to the begin of file
dd delete line
shift + a go to end of line
nerdtree
s -> split
t -> tab
gt -> navigate between tabs
:vs /path/some/file split a file in vertical
:ps /path/some/file split a file in horizontal
ctrl + w + w navigate between the files
:w save
:q quit
:q! quit without save