Giter Site home page Giter Site logo

.vim's Introduction

Vim Configuration File

Installation

git clone [email protected]:dogukanayd/.vim.git
vim .vimrc

.vimrc file should be like;

so ~/.vim/vimrc.vim

Open vim and;

:GoInstallBinaries

Mappings

Go

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

Vim

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

Php

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

How to?

How to find and replace in all files?

  1. :Gsearch
  2. select all of the lines you want to change
  3. : s/{keyword}/{keyword}
  4. :Greplace
  5. press a to accept all of the replacements
  6. :wa to save all of the changes

How to change surround?

  1. cs ' " -> all of the single quotes on the selected line will be double quotes
  2. ds ' -> delete the surrounding single quotes
  3. Capital S -> surround the selected text with desired text

How to sort with Vim?

Select the text block that you want to sort and type :sort

Brew packages

brew install the_silver_searcher
brew install ctags
brew install php-cs-fixer

COC packages

:CocInstall coc-markdown-preview-enhanced
:CocInstall coc-go
:CocInstall coc-webview

Notes

.vim's People

Contributors

dogukanayd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.