SlideShare ist ein Scribd-Unternehmen logo
1 von 24
let s:hoge = "s:hoge"

function Hoge(hoge)
   let hoge = "l:hoge"
   python <<EOM
# coding=utf-8
import vim
print vim.eval('s:hoge') # s:hoge
print vim.eval('a:hoge') # a:hoge
print vim.eval('hoge') # l:hoge

vim.command('let s:hoge = "s:fuga"')
vim.command('let hoge = "l:fuga"')
EOM
  return hoge
endfunction

echo Hoge('a:hoge') " l:fuga
echo s:hoge       " s:fuga
python <<EOM
import vimutil
@vimutil.vimfunc('Hoge')
def vimutil_hoge(args):
   print “,”.join(args)
EOM
call Hoge(‘a’, ‘b’, ‘c’) “ a,b,c
関西Vim勉強会#7 lingr.vimとその中身

Weitere ähnliche Inhalte

Was ist angesagt?

The groovy puzzlers (as Presented at JavaOne 2014)
The groovy puzzlers (as Presented at JavaOne 2014)The groovy puzzlers (as Presented at JavaOne 2014)
The groovy puzzlers (as Presented at JavaOne 2014)
GroovyPuzzlers
 
PFDS 8.4.1
PFDS 8.4.1PFDS 8.4.1
PFDS 8.4.1
rf0444
 
basic shell_programs
 basic shell_programs basic shell_programs
basic shell_programs
madhugvskr
 

Was ist angesagt? (18)

String
StringString
String
 
Problemas de Arreglos en c++
Problemas de Arreglos en c++Problemas de Arreglos en c++
Problemas de Arreglos en c++
 
The groovy puzzlers (as Presented at JavaOne 2014)
The groovy puzzlers (as Presented at JavaOne 2014)The groovy puzzlers (as Presented at JavaOne 2014)
The groovy puzzlers (as Presented at JavaOne 2014)
 
A simple snake game project
A simple snake game projectA simple snake game project
A simple snake game project
 
Hangman Game Programming in C (coding)
Hangman Game Programming in C (coding)Hangman Game Programming in C (coding)
Hangman Game Programming in C (coding)
 
Let's golang
Let's golangLet's golang
Let's golang
 
Javascript - The basics
Javascript - The basicsJavascript - The basics
Javascript - The basics
 
CS50 Lecture2
CS50 Lecture2CS50 Lecture2
CS50 Lecture2
 
Linux shell script-1
Linux shell script-1Linux shell script-1
Linux shell script-1
 
Yahoo! JAPANとKotlin
Yahoo! JAPANとKotlinYahoo! JAPANとKotlin
Yahoo! JAPANとKotlin
 
C to perl binding
C to perl bindingC to perl binding
C to perl binding
 
Ping pong game
Ping pong  gamePing pong  game
Ping pong game
 
PFDS 8.4.1
PFDS 8.4.1PFDS 8.4.1
PFDS 8.4.1
 
Clojure入門
Clojure入門Clojure入門
Clojure入門
 
basic shell_programs
 basic shell_programs basic shell_programs
basic shell_programs
 
Stop Programming in JavaScript By Luck
Stop Programming in JavaScript By LuckStop Programming in JavaScript By Luck
Stop Programming in JavaScript By Luck
 
[EN] Ada Lovelace Day 2014 - Tampon run
[EN] Ada Lovelace Day 2014  - Tampon run[EN] Ada Lovelace Day 2014  - Tampon run
[EN] Ada Lovelace Day 2014 - Tampon run
 
C++ question 6 || solution of Programming Problem
C++ question 6 || solution of Programming Problem C++ question 6 || solution of Programming Problem
C++ question 6 || solution of Programming Problem
 

Andere mochten auch

Trabalho de física 1ºbim13 turma 2001-2004 e 2005
Trabalho de física 1ºbim13 turma 2001-2004 e 2005Trabalho de física 1ºbim13 turma 2001-2004 e 2005
Trabalho de física 1ºbim13 turma 2001-2004 e 2005
Paulo Cezar Rangel de Lima
 
2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano
2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano
2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano
O mundo da FÍSICA
 
Processos de transmissão de calor
Processos de transmissão de calorProcessos de transmissão de calor
Processos de transmissão de calor
O mundo da FÍSICA
 

Andere mochten auch (10)

Conceitos Iniciais da Termologia e Escalas Termométricas
Conceitos Iniciais da Termologia e Escalas TermométricasConceitos Iniciais da Termologia e Escalas Termométricas
Conceitos Iniciais da Termologia e Escalas Termométricas
 
Equilíbrio Térmico - Balanço Energético da Terra
Equilíbrio Térmico - Balanço Energético da TerraEquilíbrio Térmico - Balanço Energético da Terra
Equilíbrio Térmico - Balanço Energético da Terra
 
Física do cotidiano
Física do cotidianoFísica do cotidiano
Física do cotidiano
 
Trabalho de física 1ºbim13 turma 2001-2004 e 2005
Trabalho de física 1ºbim13 turma 2001-2004 e 2005Trabalho de física 1ºbim13 turma 2001-2004 e 2005
Trabalho de física 1ºbim13 turma 2001-2004 e 2005
 
2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano
2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano
2° Etapa_1° Avaliação_Substitutiva_Tipo I_2° Ano
 
Processos de transmissão de calor
Processos de transmissão de calorProcessos de transmissão de calor
Processos de transmissão de calor
 
Questões Corrigidas, em Word: Transmissão de Calor - Conteúdo vinculado ao ...
Questões Corrigidas, em Word:  Transmissão de Calor  - Conteúdo vinculado ao ...Questões Corrigidas, em Word:  Transmissão de Calor  - Conteúdo vinculado ao ...
Questões Corrigidas, em Word: Transmissão de Calor - Conteúdo vinculado ao ...
 
Problemas de Física - Termologia
Problemas de Física - TermologiaProblemas de Física - Termologia
Problemas de Física - Termologia
 
Questões Corrigidas, em Word: Temperatura e Dilatação - Conteúdo vinculado ...
Questões Corrigidas, em Word: Temperatura e Dilatação   - Conteúdo vinculado ...Questões Corrigidas, em Word: Temperatura e Dilatação   - Conteúdo vinculado ...
Questões Corrigidas, em Word: Temperatura e Dilatação - Conteúdo vinculado ...
 
Gabarito das questões de Termologia - 2º Ano
Gabarito das questões de Termologia - 2º AnoGabarito das questões de Termologia - 2º Ano
Gabarito das questões de Termologia - 2º Ano
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

関西Vim勉強会#7 lingr.vimとその中身

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. let s:hoge = "s:hoge" function Hoge(hoge) let hoge = "l:hoge" python <<EOM # coding=utf-8 import vim print vim.eval('s:hoge') # s:hoge print vim.eval('a:hoge') # a:hoge print vim.eval('hoge') # l:hoge vim.command('let s:hoge = "s:fuga"') vim.command('let hoge = "l:fuga"') EOM return hoge endfunction echo Hoge('a:hoge') " l:fuga echo s:hoge " s:fuga
  • 19.
  • 20.
  • 21.
  • 22.
  • 23. python <<EOM import vimutil @vimutil.vimfunc('Hoge') def vimutil_hoge(args): print “,”.join(args) EOM call Hoge(‘a’, ‘b’, ‘c’) “ a,b,c

Hinweis der Redaktion

  1. \n \n
  2. \n \n
  3. \n \n
  4. \n \n
  5. \n \n
  6. \n \n
  7. \n \n
  8. \n \n
  9. \n \n
  10. \n \n
  11. \n \n
  12. \n \n
  13. \n \n
  14. \n \n
  15. \n \n
  16. \n \n
  17. \n \n
  18. \n \n
  19. \n \n
  20. \n \n
  21. \n \n
  22. \n \n