git clone [email protected]:dogukanayd/.vim.git
vim .vimrc
.vimrc file should be like;
so ~/.vim/vimrc.vim
Open vim and;
:GoInstallBinaries
key strokes | command | details |
---|---|---|
leader rn | coc-rename | rename the selected |
leader gr | coc-references | go to the reference |
leader gf | :GoFmt | fix the styling of the Go files |
leader gd | :GoDef | go to the def with vim-go |
leader gat | :GoAddTags | add json tags to the struct |
leader gl | :GoMetaLinter | run all of the linters |
leader gt | :GoAlternate | go the the test file |
cmd+ctrl+r | :GoTestFunc | run the test function |
key strokes | command | details |
---|---|---|
leader gi | coc-implementation | go to the implementation of function |
leader space | :nohlsearch | highlight removal |
leader vdoc | open the readme file | |
ctrl+f | :echo expand("%:p") | print the full path |
cmd+1 | :NERDTreeToggle | toggle the NERDTree |
ctrl+6 | go to the latest location | |
Ag 'search keyword' | search a keyword | |
bufdo bd! | close every buffer | |
ctags -R | ctags -R | create ctags for the folder |
leader gcc | comment the selected lines |
key strokes | command | details |
---|---|---|
leader lm | php artisan make | |
leader lfc | open the controller folder | |
leader lfs | open the services folder | |
leader n | :call IPhpInsertUse | import classes |
leader pf | :call PhpCsFixerFixFile() | fix the file by psr2 |
- :Gsearch
- select all of the lines you want to change
- : s/{keyword}/{keyword}
- :Greplace
- press
a
to accept all of the replacements - :wa to save all of the changes
- cs ' " -> all of the single quotes on the selected line will be double quotes
- ds ' -> delete the surrounding single quotes
- Capital S -> surround the selected text with desired text
Select the text block that you want to sort and type :sort
brew install the_silver_searcher
brew install ctags
brew install php-cs-fixer
:CocInstall coc-markdown-preview-enhanced
:CocInstall coc-go
:CocInstall coc-webview