投稿時間:2021-06-01 23:34:37 RSSフィード2021-06-01 23:00 分まとめ(34件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 「iPhone 13」シリーズのモデル番号とバッテリー容量が明らかに?! https://taisy0.com/2021/06/01/141215.html iphone 2021-06-01 13:50:33
AWS AWS Government, Education, and Nonprofits Blog AWS launching new Region in UAE in 2022 https://aws.amazon.com/blogs/publicsector/aws-launching-new-region-in-uae-in-2022/ AWS launching new Region in UAE in The new AWS Region in the Middle East brings new infrastructure to the United Arab Emirates UAE and will consist of three Availability Zones giving local customers more choice and flexibility to leverage advanced cloud technologies Learn more about how organizations in the UAE public sector are already innovating with AWS at home and in space 2021-06-01 13:37:30
js JavaScriptタグが付けられた新着投稿 - Qiita SNSシェアボタンにUTMパラメーターを付与する方法 https://qiita.com/tommy0424/items/d442ec9fc03ced829a0b SNSシェアボタンにUTMパラメーターを付与する方法概要行動分析のためのGAのUTMパラメーターをTwitterシェアのURLに追加したところ、ツイート内に期待していたURLが出てこなかったため一工夫した話期待していたURLutmmediumfugafugaamputmcampaignpiyopiyoツイート内に含まれていたURLampで区切られてutmmedium以降は不要なパラメーターとして捨てられてしまっています。 2021-06-01 22:24:17
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) EXCELからSQL文を作成するには https://teratail.com/questions/341632?rss=all EXCELからSQL文を作成するにはDBより、抽出した結果を以下のようにEXCELでまとめたものがあったとします。 2021-06-01 23:00:14
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) EC2(AWS)のRailsを起動し、手動デプロイできるように設定したい。 https://teratail.com/questions/341631?rss=all ECAWSのRailsを起動し、手動デプロイできるように設定したい。 2021-06-01 22:50:13
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) エディタでjavascriptで定義された関数名を色分けするには? https://teratail.com/questions/341630?rss=all エディタでjavascriptで定義された関数名を色分けするにはWeb上で個人の方々が解説なさっているjavascriptコードを参考にコーディングしていますが初心者なのでプログラマーが変えて良い部分と変えてはいけない部分が区別できません。 2021-06-01 22:42:27
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) バッチファイルで特定の文字列を置換する際に想定外の文字が削除されてしまう https://teratail.com/questions/341629?rss=all バッチファイルで特定の文字列を置換する際に想定外の文字が削除されてしまう前提・実現したいこと特定の文字列を置換してファイルを出力するバッチファイルの作成を行っているのですが、想定外の文字列「エクスクラメーションマーク」が削除されて困っています。 2021-06-01 22:38:46
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) atomで入力補完がされ過ぎてしまうことについて https://teratail.com/questions/341628?rss=all atomで入力補完がされ過ぎてしまうことについてatomを、プログラミングと一般の文章を書く用の兼用のエディタとして使っています。 2021-06-01 22:27:41
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Githubで受け取ったプルリクを、サブモジュールごとローカルでテストする方法が分かりません。 https://teratail.com/questions/341627?rss=all Githubで受け取ったプルリクを、サブモジュールごとローカルでテストする方法が分かりません。 2021-06-01 22:23:07
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) JavaScriptでkeydownとclickを同時に使い分ける https://teratail.com/questions/341626?rss=all JavaScriptでkeydownとclickを同時に使い分ける実現したいこと上記のチャプターでは処理が途中ですが実現したいことは以下のことです。 2021-06-01 22:14:48
AWS AWSタグが付けられた新着投稿 - Qiita はじめての可観測性ハンズオン + ハンズオン後、担当システムにLambda Insights適用 https://qiita.com/cof123/items/854277a2dfc20f8f35ca 一通り手順書にざっと目を通してからやったほうがいいかも手順実行する上でVPCはつ新規に作成されるので余裕がつ以上必要Cloud用のVPC観測対象のサービスをホストするVPCmemoCloudWatchServiceLensとXRayは実体は同じもの。 2021-06-01 22:45:34
GCP gcpタグが付けられた新着投稿 - Qiita Google Cloud アップデート (5/27-6/2 2021) https://qiita.com/kenzkenz/items/8fcdc240d4610e067543 GoogleCloudアップデートKfMayレコンサイルでSpaceがない場合にパニックになるのを修正したよResourceManagerMayプロジェクトをorg間で移動できる機能がGAになったよCloudAssetInventoryAnalyzeMoveAPI使って影響が確認できるよ前は依頼して作業してもらってたのが自分でできるようになったMemorystoreforMemcachedMayvメモリオーバヘッドで利用されるメモリ量を調節できるReservedMemoryを設定ができるようになったよAnthosConfigManagementMayHierarchyコントローラがHNCを使うようになったよreconcilerのメモリ上限をMiに拡張したよnomoshydrateコマンドのバグ修正CloudSpannerMayコンソールからスキーマの管理をするのが楽になったよCloudAssetInventoryMayExportAPIでArtifactRegistryのAPI追加ConfigConnectorMayリリースバグフィックスAnthosclustersonVMwareMaygkeリリースkubernetesはgkeで湿布されるUbuntuのノードイメージがCISLサーバベンチマーク対応したよCVE修正に共有されたログが大量に出るバグの修正証明書の期限切れでクラスタのアップグレードが失敗する可能性があるよここみて修正してねCloudDataFusionMayリリースBigQueryでDatetimeをサポート複数のバグフィックスGKEMayRアップデートRapidでが利用可能にCronJobPodDisruptionBudgetEndpointSliceのGAとかAPIが色々変わってたりするのでドキュメント見てね。 2021-06-01 22:22:40
技術ブログ Developers.IO [Swift]グラフを作成するライブラリChartsを使って折れ線グラフを描画してみた https://dev.classmethod.jp/articles/charts-line-graph-sample/ charts 2021-06-01 13:46:47
海外TECH DEV Community Frontend challenge - Car bidders dashboard. https://dev.to/rajeshroyal/frontend-challenge-car-bidders-dashboard-mia Frontend challenge Car bidders dashboard I had an Interview with Travclan and for the technical round I had to submit a solution for this frontend challenge Front end Test Task TaskDevelop a Single page application with following mentioned featuresbut not necessarily limited to it Must Display a list of customers with pagination Each customer bas several bids by default only the maximum bidshould be displayed Also add a toggle button so that on switchingtoggle only the minimum bid is displayed Enable sorting of customer list by bid amount Front end part should be developed as SPA with ES React Hooks Good to have Using Context Api or Custom Hooks will be a big plus Clicking on any row should redirect to a separate url where all theselected customer s bids should be displayed use your creativity onhow to display the data Styling is not a priority but using Material Ui https material ui com entirely will be a plus Use following API to retrieve the data https intense tor herokuapp com merchants Data structure exampleCustomer id string firstname string lastname string avatarUrl string email string phone string hasPremium boolean bids Array lt Bid gt Bid id string carTitle string amount number created string Table expected Customer name with avtar Email Phone Premium Max Min bid My solution live Car Bidders Dashboard Netlify GitHub Car Bidders List Rajesh Royal car bidding system react Car bidding system ReactJS TravClan Car bidding web App This project Is bootstrapped with Create React App and using tailwindcss for UI library Available Scripts This project usages Yarn as package manager and in the project directory you can run ScriptDescriptionstart devStarts the development serverbuildProduction buildtestRuns unit testsejectReact EjectlintShows all the linting errors in codebaselint fixFix all the liting errorsHusky hooks will lint code before commiting it What s inside A quick look at the top level files and directories you ll see in this project ├ー vscode├ーnode modules├ーpublic├ーsrc ├ーassets ├ーcomponents ├ーcontainer ├ーcontext ├ーpages ├ーroutes ├ーutils├ー redirects├ーnetlify toml├ー eslintrc json├ー gitignore├ー prettierrc├ーcraco config js├ーpackage json├ーREADME md├ーtailwind config js└ーyarn lock vscode This directory contains all of the workspace setting for vscode Deploy View on GitHubResult I was not selected for next round 2021-06-01 13:28:09
海外TECH DEV Community A Vim Guide for Advanced Users https://dev.to/phantas0s/a-vim-guide-for-advanced-users-1ddk A Vim Guide for Advanced UsersWelcome to the third part of this series aimed to help you unleash a power never seen on Earth using the Almighty Vim Vim for BeginnersVim for Intermediate UsersVim for Advanced UsersVim for Adept UsersWe ll see together in this article Some nice keystrokes beginning with g What ranges are and how to use them The quickfix list and the location lists The marvelous substitute command The crazy useful global or g command What marks are and what you can do with them How to increase and decrease numbers with a single keystroke How to sort text with a nice command But before going into the juicy content of this article I ve some recommendations for you dear reader Fire up your Vim and play around with the commands and keystrokes while reading It s the best way for you to remember everything which blew you away You ll then be able to be blown away whenever you like for the rest of your life Don t use a cheatsheet write your own as you read It will allow you to come back easily to the commands you find the most useful for your own needs Enough rambling Let s begin Useful g KeystrokesLet s begin gently with a mixed bag of keystrokes starting with g There are many of these g commands in Vim and we already saw some of them in the previous articles Can you recall them You can use these keystrokes in NORMAL mode gf Edit the file located at the filepath under your cursor You can use CTRL W CTRL F to open the file in a new window It can open the URL under your cursor if you have the plugin netrw gx Open the file located at the filepath under your cursor It will use the default application used by your OS for this filetype It works with URLs too It will open your favorite browser and load the website It only works if you have the plugin netrw gi Move to the last insertion you did and switch to INSERT mode Pretty useful if you stopped your editing to look at some other file It uses marks under the hood more on that later in this article gv Start VISUAL mode and use the selection made during the last VISUAL mode gn Select the match of your last search Move to the last searched match Switch to VISUAL mode if you weren t in VISUAL mode already Select the match You can continue to hit n or gn to select the area between the current match and the next match gI Insert text at the beginning of the line no matter what the first characters are The keystroke I insert text just before the first non blank characters of the line ga Print the ascii value of the character under the cursor in decimal hexadecimal or octal gu Lowercase using a motion for example guiw gU Uppercase using a motion for example gUiw To try out gf and gx you can write for example in Vim place your cursor on it and hit the keystrokes Don t forget the trailing slash in your URL You ll soon discover an inconvenience with gx when you use it on a filepath Vim will hang till you close the file That s why I ve created the following mapping you can add to your vimrc nnoremap gX silent execute xdg open expand p h expand lt cfile gt amp lt cr gt It maps the keystroke gX to use xdg open with a relative filepath under your cursor It will open the file with your favorite application in the background The program xdg open will only work on Linux based systems for MacOS try open instead Vim Help help reference help g RangesNow that we re done with the appetizers let s discover the first real dish of our Vim feast the ranges You can apply them to many commands making them terribly powerful BasicsIn Vim s help every command accepting a range will have the string of characters range in front of them Multiple line specifiers are possible separated by commas Here are the most interesting ranges you can use lt number gt Any number lt number gt in your range refers to a line number Represent the current line often the default range Represent the last line of the current buffer Represent the entire file same as Use the last selection you ve made during the last VISUAL mode For example using the command d d Delete line to included d Delete every line from the second one till the end of the file d Delete every line from the current one till the end of the file d Delete every line You can also do some arithmetic with ranges if you want For example let s imagine your cursor is on the line the range will be equivalent to the range Visual Mode and RangeIf you switch to COMMAND LINE mode after doing some selection in VISUAL mode you ll see these two symbols appearing lt and gt with a comma in between This is a range too The symbols lt represents the first line you ve selected and gt the last line Each of these are marks again we ll see more about marks below In practice the ranges lt gt and are synonym but you ll have more flexibility with the first For example you can execute a command from the first line you ve selected till the end of the file with the range lt Vim Help help range help v help lt help gt Vim s Quickfix And Location ListNow let s talk about a very useful data structure available in Vim the quickfix list Don t confuse the quickfix list and the quickfix window these are two different entities The first is a data structure the second can display this data structure Quickfix ListsYou can think of a quickfix list as a set of positions in one or multiple files BasicsLet s take an example what happens if you run the command vimgrep hello It will search the pattern hello in every file of your working directory It will populate a quickfix list with every position matching your pattern hello It will move your cursor to the first position of the quickfix list If you want to know more about vimgrep and other tools you can search with I wrote an article about that Other commands like make or grep also populate automatically a quickfix list Let s expand the mystery around marks these positions in the quickfix list are in fact hidden mark The quickfix list is often used to display specific errors in a codebase often spit out from a compiler or a linter via the command make for example but not only as we just saw I call the entries of a quickfix list positions to be more general but sometimes Vim s help will refer to them as errors Don t be confused it s the same idea Among other conditions a quickfix list entry needs to have a filename for you to be able to jump to its position Otherwise the entry doesn t point to anything Difficult to move to anything Useful CommandsHere are the commands you can use to navigate through the current quickfix list cl or clist Display all valid entries of the current quickfix list You can add a range as argument only numbers cc lt number gt Move to the lt number gt th entry of the current quickfix list cnext or cn Move to the next entry of the current quickfix list cprevious or cp Move to the previous entry of the current quickfix list cfirst or cfir Move to the first entry of the current quickfix list clast or clas Move to the last entry of the current quickfix list Here are additional commands which make quickfix lists really powerful cdo lt cmd gt Execute a command lt cmd gt on each valid entry of the current quickfix list cexpr lt expr gt or cex lt expr gt Create a quickfix list using the result of evaluating the Vimscript expression lt expr gt caddexpr lt expr gt or cadde lt expr gt Appends the result of evaluating the Vimscript expression lt expr gt to the current quickfix list If you have no clue how to use the last two commands you can do for example cex Empty the current quickfix list cex system lt cmd gt Populate your quickfix list with any shell command lt cmd gt You can try it with ls for example The Quickfix WindowWhat about displaying the current quickfix list in a new buffer You can do that with the following command copen or cope Open a window with a special buffer to show the current quickfix list You can only have one quickfix window open To move to the position of the selected entry of the quickfix list in the quickfix window hit ENTER or cc Location ListsA location list is similar to a quickfix list except that the first is local to a window and the second is global to your Vim instance In other words you can have multiple location lists available at the same time one per window open but you can only have access to one quickfix list The commands for location lists are similar to the ones for the quickfix lists often you ll only have to replace the first c quicfix of the command with l location For example lli or llist Display all valid entries of the current location list You can add a range as argument only numbers ll lt number gt Move to the entry lt number gt of the current location list lnext or lne Move to the next entry of the current quickfix list To populate your location list you can also use the commands lvimgrep or lmake for example Often Vim users will use the quickfix list for anything related to errors in their codebase and the location list for search results But it s up to you at the end of the day With Vim you re the master of your destiny Vim Help help quickfix help quickfix window help location list help location list window help expr help system Vim s RegistersThe registers are another big dish in our Vim feast You can think of registers as places where you can read or write some text I like to think about them as Vim s clipboards Specifying a RegisterHere s a command and a NORMAL mode keystroke to display and specify registers registers or reg Display the content of your registers lt reg gt This keystroke specifies the register lt reg gt to be read or written How do you know when the register lt reg gt is read or written using the keystroke It depends of the keystroke you use afterward For example To write the register a Hit a in NORMAL mode to specify what register you want to write on Yank change or delete some content for example by using dd in NORMAL mode to write it to a To read the register a Hit a in NORMAL mode to specify what register you want to read Use a put keystroke in NORMAL mode for example p or P to spit out the content of the register in your current buffer We take the example of register a here but it will work for any writable register The Types of RegistersThere are different types of registers in Vim The unnamed register Contain the last deleted changed or yanked content even if one register was specified The numbered registers from to contains the content of the last yank to is a stack containing the content you ve deleted or changed Each time you delete or change some content it will be added to the register The previous content of the register will be assigned to register the previoius content of to When something is added to the register the content of the register is lost None of these registers are written if you ve specified one before with the keystroke The small delete register Contains any deleted or changed content smaller than one line It s not written if you specified a register with The named registers range from a to z Vim will never write to them if you don t specify them with the keystroke You can use the uppercase name of each register to append to it instead of overwriting it The read only registers and contains the last inserted text contains the name of the current file contains the most recent command line executed The alternate buffer register Contain the alternate buffer for the current window The expression register Store the result of an expression More about this register below The selection registers and is synchronized with the system clipboard is synchronized with the selection clipboard only on nix systems The black hole register Everything written in there will disappear forever The last search pattern register This register contains your last search As you can see even if you don t specify any register with the keystroke the content you delete change or yank will automatically overwrite one or multiple of them So if you don t want the content you write to your registers to be silently overwritten by Vim always write in the named registers Using a put command without specifying any register will spit the content of the unnamed register by default But you might have this line in your vimrc clipboard unnamedplusIn that case the content you change delete or yank will go directly in the unnamed register and the register Using put commands will directly output the register too Many find it useful including me to access your OS clipboard more easily without the need to specify the register for reading or writing it Appending a RecordingWe ve seen in the previous article that you can record your keystrokes using q Now that you know how to use registers you can manipulate these keystrokes If you made a mistake during the recording you can spit the whole register modify it and save it back You can append to your recording by using the uppercase variant of your register For example Hit qa and record whatever keystrokes you want Stop the recording by hitting q again You realize that you forgot a couple of keystrokes Execute your keystrokes to be sure you re at the last position of your recording Hit qA to append to your register a When you re done hit q again You ve just gained even more flexibility for your macros Using Registers in INSERT and COMMAND LINE modesThe magical keystroke is great for NORMAL mode but what about spitting the content of a register in INSERT mode or COMMAND LINE mode For that you can use CTRL R lt reg gt to put the content of register lt reg gt in your current buffer For example if you hit CTRL R in INSERT mode you ll put the content of the register in your current buffer The Insane Expression RegisterIf you don t know the expression register I m about to revolution your life I hope you re ready Try this Switch to INSERT mode and hit the keystroke CTRL r You ll move to Vim s command line From there you can type any Vimscript expression you want like system ls we saw above or Hit ENTER to run the expression and you ll see the output of the shell command ls directly inserted in your buffer It s useful to evaluate some custom functions you ve defined while staying in insert mode If you use Neovim you can use the function luaeval to evaluate some Lua too Clearing a RegisterA last little trick about registers if you want to empty one you can do qaqBeginning a recording also deletes everything which is in this register So you just need to stop the recording by hitting q again to have an empty register Vim Help help registers help clipboard help clipboard unnamed help clipboard unnamedplus The Substitute CommandsLet s continue our ascension to become The Vim God or Goddess The substitute command is next on the menu BasicsIf you re already familiar with the CLI sed this command will remind you some good old memories A substitution is a way to replace some content with some other content using a range and a count The count will decide how many lines is affected by your substitution from the last line of your range Like many other commands the default range is the current line if you don t specify it Here s the pattern of the command itself s pattern replacement flagsWhat does this mean The pattern is the search you want to match The replacement will replace the first match of the pattern on each line The flag modify the behavior of the command There s another element represented here with a slash the separator It doesn t have to be a slash it can be any character except An alphanumerical character a character included in the range a z A Z and A double quote A pipe The replacement is not mandatory if you omit it the substitute command will delete the pattern matched You can also run s without any range pattern replacement flags or count In that case it will repeat the last substitution you ve done without the flags you can add new flags except amp and a count if you want to Let s see some examples to understand how it works s pattern replacement Substitute the first occurrence of pattern on the current line with replacement s pattern replacement Equivalent substitution to the one just above Handy if you have some URLs in your pattern or your replacement s pattern delete the first occurrence of pattern on the current line s pattern replacement g Substitute every occurrence of pattern on the current line You can also add a range as prefix and a count as suffix s pattern replacement Substitute every first occurrence of pattern on each line of the current buffer s pattern replacement g Substitute every occurrence of pattern on each line of the current buffer s pattern replacement Substitute every first occurrence of pattern on the first ten lines of the current buffer s pattern replacement Substitute every first occurrence of pattern for the current line and the next lines s pattern replacement Substitute every first occurrence of pattern on the first ten lines and on the five lines below the last line of the range s g Repeat the last substitution without its flag and add a new flag g It will affect the lines after the last line of the last substitute command Vim s Magical PatternsA pattern in that case is a regular expression But it s not the good old regex engine you re familiar with from high level programming languages Vim has its own regex engine actually it has two which can be quite confusing Regexes in Vim are more or less magic You think I m kidding I m not Here s what I find useful to remember To have access to all regex metacharacters you can prefix your pattern with v very magic To have access to almost all regex metacharacters except and use the command sm instead of s substitute magic To have access to none of the metacharacters except use sno instead of s substitute nomagic To have access to none of the metacharacters you can prefix your pattern with V Very nomagic For example if I want to delete all opening parenthesis in my buffer I can run one of these three equivalent commands s V sm s If you know your regex metacharacters you might wonder what s the metacharacter It s the latest substituted string in Vim s world In fact you can use many more metacharacters called atoms and character classes in your Vim s regex If don t know you re regex metacharacters I ve recorded a couple of videos explaining the basics of regular expressions using grep The next article in this series dive into Vim s regexes a bit deeper Additional CommandsHere are two other commands I find useful amp amp Repeat the last substitute with its flags Repeat the last substitute command with the same replacement but with the last used search pattern For example let s say that you execute successively the following in Vim s pattern replacement hello The last command will substitute hello with replacement You can also use these useful keystrokes in NORMAL mode amp Repeat the last substitute without its range and its flags g amp Repeat the last substitute with its range as well as its flags and replace its pattern with the last search pattern The Substitutes FlagsHere are some flags which can be useful amp Use the flag s from the previous substitute command c Ask you to confirm each substitution g Replace all occurrences in each line not only the first one i The pattern is case insensitive I The pattern is case sensitive n Only report the number of match without substitute You can now substitute like crazy to your heart s content Vim Help help substitute help sm help sno help s flags The Global CommandYou don t have enough You want even more power Behold the Holy Global Command It works similarly to the substitute command except that it will execute a command instead of replacing a pattern BasicsHere s the pattern of the command itself g pattern commandYou can also prefix it with a range if you want to As an example let s imagine that you have the urge to delete all the lines of your current buffer containing the pattern useless To do that you can run g useless dNice but I can give you even more power Normal mode CommandsDo you know the command norm You can give to it some NORMAL mode keystrokes and it will apply them for you as if you were hitting them in NORMAL mode For example the following will delete the word under the cursor norm dawLet s now combine a normal mode command with the global command g useless norm gu This will lowercase every line containing the pattern useless When I first heard about that I saw the Universe the Big Bang the cycle of creation and destruction I understood life and death I became blessed chanting the power of Vim in every free cities A last tip norm use the key mappings you ve defined If you only want to use Vim s default mapping you can use norm instead If you write a plugin always use norm You don t know what mappings have your users Vim Help help global help normal MarksIt s time to answer the question haunting your incredible mind what are marks BasicsYou can think of a mark as a specific position in a buffer To set one you can use m in NORMAL mode followed by a character in the following ranges a z These marks are local to one buffer A Z These marks are global to multiple buffers If you have a viminfo file set via the option viminfo in Vim or if you have a shada file set via the option shada in Neovim these marks are persisted This means that you can come back to them even if you closed the file If you wonder what are Vim s options and how to display their values I wrote about it in the first article of this series There are also read only marks in the range They are only available when using a viminfo file for Vim or a shada file for Neovim They store the position of your cursor each time you quit a file the mark has the last position the mark has the position before the last one and so on To move to a mark you can use these keystrokes in NORMAL mode lt mark gt Move to the first non blank character of the line where the mark lt mark gt was set lt mark gt Move to the exact position where the mark lt mark gt was set g lt mark gt Move to the mark lt mark gt without changing the jump list I ve written about the jump list in the previous article of this series Useful CommandsAs you might imagine there are also some useful commands for displaying or manipulating marks marks Display the marks set marks lt marks gt Display some specific marks lt marks gt delmarks lt mark gt or delm lt mark gt Delete the mark lt mark gt delmarks or delm Delete all the marks in the range a z For example marks lt gt will display the two marks lt and gt You can also use marks as ranges For example a bs pattern replacement This will substitute the first match of pattern with replacement from the exact position of the mark a to the exact position of the mark b Special MarksLet s now introduce special marks with these keystrokes m lt or m gt Set the marks lt and gt we saw above It can be handy for the keystroke gv Move to the first character of the previously changed deleted or yanked content Move to the last character of the previously changed deleted or yanked content Move to the position were you ve closed the current file for the last time Move to the position where you ve used INSERT mode for the last time this mark is used by the keystroke gi under the hood For every keystroke described above using a backtick you can use a single quote instead with the differences we saw above Vim Help help mark motions Manipulating NumbersAfter these register substitution and mark shenanigans here s a lighter subject adding or subtracting numbers Here s a bunch of NORMAL mode keystrokes to do exactly that CTRL a Increase the first digit or number on the line CTRL x Decrease the first digit or number on the line You can also use these keystrokes in VISUAL mode g CTRL a Same as CTRL a unless you have several lines selected In that case the first number of each line will be incremented sequentially g CTRL x Same as CTRL x unless you have several lines selected In that case the first number of each line will be decremented sequentially To illustrate a bit better the last two keystrokes let s say that you have this amazing content in your beloved Vim Take some red flowers Add some eggs Forget about it and go back to your computer If you select in VISUAL mode the last two lines and hit g CTRL a you ll get Take some red flowers Add some eggs Forget about it and go back to your computer You can also prefix a count to the command to add a precise amount For example CTRL a will add to the first number of the current line An important note these keystrokes can also work on unsigned binary octal and hexadecimal numbers as well as alphabetical characters Their behaviors depend on the value of the option nrformats For these keystrokes to behave as described in this article you shouldn t have alpha as part of the value of nrformats or you ll increment or decrement the first alphabetical character of the line Personally I think it s better to exclude alphabetical characters but in any case I would recommend you to read Vim s help to learn more about that As always Vim Help help CTRL A help CTRL X help nrformats Sorting TextWhat about a little dessert A nice command to sort text directly in Vim perhaps Here are the commands sort or sor Sort lines depending on a range If no range is given all lines are sorted sort or sor Reverse the order You can add some options to this command Here are the most useful ones i Ignore Case n Sort depending on the first decimal on the line f Sort depending on the first float on the line pattern Sort depending on what comes after the match r Combined with pattern the sort depending on the matching pattern For example if you have a CSV with comma as separator and you want to sort every line depending on the second column you can run something like this sort How about sorting the following list depending on the numbers of each line Take some red flowers Forget about it and go back to your computer Add some eggs Running sort n will have the following result Take some red flowers Add some eggs Forget about it and go back to your computer As always there are many subtleties involved here If you want to dig deeper you know what you should do fire up this Vim s help and enjoy the depth of its infinity Vim Help help sort Are You a Vim Master Now We can now make two assumptions Compared to your old self you might be more of a master than before Compared to many you still have a long road ahead of practice and learning But here s the most important you shouldn t care about the second point Always compare yourself to your past self not to the others Continue to walk on your own road and you ll get your enlightenment You ll then build your own Mouseless Development environment you ll move to a comfy cave in the Himalaya alone living a life of vow giving your whole soul to the study of the Almighty Vim What did we learn in this article The letter g in Vim is a bit like a magic wand There are many useful keystrokes which begin with g The flag g is often used with the substitute command The global command g is really powerful to apply a command to some precise content Ranges allow you to execute many commands on a bunch of contiguous lines The quickfix list is a global list of positions in different files You can apply any command to them with cdo You can see the entries of a quickfix list using the quickfix window Location lists are similar to quickfix lists except that you can have one location list and one location window per window open You can use the substitute command s to replace a pattern regex with a replacement Prefer sm if you want to use a regex or sno if you don t You can use marks to add some surgical precision in what you want to do To reward your tenacity and resilience for reading the whole article I ve a last tip for you help ex cmd index will list all the commands available in Vim Vim is easy to learn but hard to master that s great because we never stop improving Related SourcesAt least one Vim trick you might not know Hillel WayneVim Macro Trickz Hillel WayneVim Search Find and Replace a Detailed Guide Your obedient servant Becoming MouselessDo you want to build a Mouseless Development Environment where the Linux shell and Vim have a central role Switching between the keyboard and the mouse costs cognitive energy This book will guide you step by step to set up a Linux based development environment that keeps your hands on your keyboard Take the brain power you ve been using to juggle input devices and focus it where it belongs on what you create 2021-06-01 13:27:48
海外TECH DEV Community Let's Build a Jamstack App Together! https://dev.to/5t3ph/let-s-build-a-jamstack-app-together-5hkp Let x s Build a Jamstack App Together Join me on Twitch as we build an RSS Reader using Eleventy and Modern CSSWe ll start from absolute zero and create project requirements architect the Eleventy ty project design in the browser using modern CSS and all the other bits required to get a project launched Building an RSS feed reader will let us explore Setting up an ty static site projectCreating data sourcesUsing modern CSS to create a functional UIPossibly serverless functions TBD pending app architecture Other features as determined by the chat participants Stream ScheduleThere will be two streams this week follow on Twitch for go live notifications Tuesday June PM CT check local time​Thursday June AM CT check local time​Sometimes I need to change stream times which I announce over on Twitter To find out about future streams and keep updated on my many other projects subscribe to my newsletter 2021-06-01 13:07:10
Apple AppleInsider - Frontpage News Deal: Mac App Bundle with Parallels drops to record low $35 https://appleinsider.com/articles/21/06/01/deal-mac-app-bundle-with-parallels-drops-to-record-low-35?utm_medium=rss Deal Mac App Bundle with Parallels drops to record low Shoppers on the hunt for the best Parallels deal can pick up a Parallels Desktop year subscription in addition to four Mac apps to boost productivity for just with our exclusive coupon Mac App bundle with Parallels now For a limited time AppleInsider readers can snap up a Mac App Bundle featuring Parallels Pro for just with promo code INSIDER Read more 2021-06-01 13:56:00
Apple AppleInsider - Frontpage News Tim Cook's 2020 pay of $14.7M is about average for a S&P 500 CEO https://appleinsider.com/articles/21/06/01/tim-cooks-2020-pay-of-147m-is-about-average-for-a-sp-500-ceo?utm_medium=rss Tim Cook x s pay of M is about average for a S amp P CEOApple CEO Tim Cook s compensation for heading up the most valuable company in the United States is relatively modest placed in st position in rankings of S amp P CEO earnings Apple is at the top of the Standard Poor s rankings in terms of market capitalization but CEO Tim Cook s direct pay from the company is far lower than many others in the list Compiling the compensation data for CEOs from the companies on that list Tim Cook s total pay for was according to the Wall Street Journal Despite seeming high and also rising from his compensation this only puts Cook in position on the list Read more 2021-06-01 13:22:19
海外TECH Engadget The best gifts for dad under $50 https://www.engadget.com/best-gifts-for-dad-under-50-113033738.html?src=rss_b2c engadget 2021-06-01 13:45:07
海外TECH Engadget Rimac unveils the production version of its 1,900HP electric hypercar https://www.engadget.com/rimac-nevera-electric-hypercar-133154887.html?src=rss_b2c hypercar 2021-06-01 13:31:54
海外TECH Engadget Far Cry comes to Zero Latency's VR arcades https://www.engadget.com/far-cry-vr-zero-latency-131026387.html?src=rss_b2c latency 2021-06-01 13:10:26
海外TECH Engadget Alessandro Cortini on designing a new instrument, the Strega https://www.engadget.com/alessandro-cortini-scuro-chiaro-make-noise-strega-synthesizer-130053995.html?src=rss_b2c chiaro 2021-06-01 13:00:53
金融 RSS FILE - 日本証券業協会 新型コロナウイルス感染症への証券関係機関等・各証券会社の対応について(リンク集) https://www.jsda.or.jp/shinchaku/coronavirus/link.html 新型コロナウイルス 2021-06-01 14:15:00
ニュース BBC News - Home Much of Scotland's central belt to remain in level two https://www.bbc.co.uk/news/uk-scotland-57315436 central 2021-06-01 13:33:10
ニュース BBC News - Home Covid-19: Job not done despite vaccination success, scientist warns https://www.bbc.co.uk/news/uk-57313399 covid 2021-06-01 13:40:53
ニュース BBC News - Home Daniel Boulton: Murder suspect arrested over Louth deaths https://www.bbc.co.uk/news/uk-england-lincolnshire-57318698 boulton 2021-06-01 13:27:57
LifeHuck ライフハッカー[日本版] コインスペースに2つの取り出し口を配置。便利すぎなアイデアウォレット「-nu-ヌウ」が登場! https://www.lifehacker.jp/2021/06/235713-machi-ya-nu-start.html 取り出し 2021-06-01 23:00:00
LifeHuck ライフハッカー[日本版] 仕事を抱えこむ前に同僚に任せる方法 https://www.lifehacker.jp/2021/06/how-perfectionists-can-learn-to-delegate-and-relinquish.html 完璧主義 2021-06-01 22:05:00
北海道 北海道新聞 同性間「扶養認めないのは違憲」 元職員が道提訴へ https://www.hokkaido-np.co.jp/article/550688/ 関係 2021-06-01 22:10:00
北海道 北海道新聞 広3―7日(1日) 上沢が5勝目 https://www.hokkaido-np.co.jp/article/550674/ 日本ハム 2021-06-01 22:05:06
北海道 北海道新聞 道内人口522万人 過去最大15万人減 国勢調査 https://www.hokkaido-np.co.jp/article/550679/ 国勢調査 2021-06-01 22:03:48
北海道 北海道新聞 NY円、109円後半 https://www.hokkaido-np.co.jp/article/550687/ 外国為替市場 2021-06-01 22:02:00
北海道 北海道新聞 神2―5オ(1日) オリックスが競り勝つ https://www.hokkaido-np.co.jp/article/550686/ 安達 2021-06-01 22:02:00
北海道 北海道新聞 7国立大で学生らに先行接種へ 日航も検討、21日目指す https://www.hokkaido-np.co.jp/article/550685/ 検討 2021-06-01 22:02:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)