What do you someone breaks something? I post the solution here...

Kubernetes (K8s/K3d) / Terraform / Ansible / Linux / AWS / Docker / Bash / Python / ELK / CI/CD / Java / Traefik / Nginx / CentOs / Ubuntu


VIM ( Vi IMproved ) The Superstar - - - DevOps IDE



Why vim ?
  • very low memory footprint which makes it super fast
  • popular , supports all programming languages
  • free and Open Source , Always available
Few Use Cases and Tips:

Edit Multiples Files


         I am big fan of vim. most of the time i have to work with multiple files and create them parallel , had to switch between the files and view the dependent variables. with vim it becomes easy and fast . In one my post https://osgroup-techies.blogspot.com/2020/05/elasticsearch-cluster-on-k3s-light_86.html I have provisioned es cluster now i will be creating manifests for kibana . i will be creating service , configmap and deployment in three different files using vim multiple screen feature although i can create the manifest in a single file, but i did so just to have proper readibility and understanding on k8s components for kibana.

      Lets See how it looks like: ~







Line Numbers and Highlighted Search


Comment N lines 

Theorem: 
  • Ctrl + v
  • select the lines by ( j / k ) or any other to move in respective direction from current position
  • Shit+i
  • Add the Comment directive(#) in my case 
  • Esc 


vimdiff:
   
      I mostly use vimdiff to compare configmaps, deployments and other similar files


Thank you !!! Keep Learning Keep Sharing
    Stay Home Stay Safe


No comments:

Powered by Blogger.